Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Current panics



On Fri, Nov 20, 2009 at 08:54:00PM +0300, Aleksej Saushev wrote:
> > I can't see from where the _atomic_inc_32 could come from in
> > vn_open(). Could you see what is the address of vn_open() in your kernel
> > (nm /netbsd |grep vn_open should tell) ?
> 
> c0462e4d B vn_open
> 
> Is there any way to associate addresses to line numbers?

The only way I know is with gdb, but this needs a kernel compiled with -g.
Here this would give:
(gdb) l *(vn_open+320) 
0xc0665050 is in vn_open (/home/bouyer/HEAD/src/sys/kern/vfs_vnops.c:149).
144             if (fmode & O_CREAT) {
145                     ndp->ni_cnd.cn_nameiop = CREATE;
146                     ndp->ni_cnd.cn_flags |= LOCKPARENT | LOCKLEAF;
147                     if ((fmode & O_EXCL) == 0 &&
148                         ((fmode & O_NOFOLLOW) == 0))
149                             ndp->ni_cnd.cn_flags |= FOLLOW;
150             } else {
151                     ndp->ni_cnd.cn_nameiop = LOOKUP;
152                     ndp->ni_cnd.cn_flags |= LOCKLEAF;
153                     if ((fmode & O_NOFOLLOW) == 0)

So it doesn't make sense.
Could you send me your kernel config file (if it's not GENERIC) ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index