Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Feb 2004 10:46:45 +0100
From:      Frode Nordahl <frode@nordahl.net>
To:        "Andrew P. Lentvorski, Jr." <bsder@allcaps.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: rpc.lockd(8) seg faults on 5.2-RELEASE
Message-ID:  <E0D094EB-562D-11D8-95DC-000A95A9A574@nordahl.net>
In-Reply-To: <20040129135653.H21660@mail.allcaps.org>
References:  <3DC16400-517B-11D8-9CB2-0005028F6AEB@TrueStep.com> <B6959364-5240-11D8-91E0-000A95A9A574@nordahl.net> <68FC202A-525D-11D8-B122-000A95A9A574@nordahl.net> <20040129135653.H21660@mail.allcaps.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

Got a better backtrace now:
(gdb) bt
#0  0x280b51bc in bcmp () from /lib/libc.so.5
#1  0x08073080 in ?? ()
#2  0x0804ed3b in unlock_nfslock (fl=0xbfbfe0a0, 
released_lock=0xbfbfe04c,
     left_lock=0xbfbfe054, right_lock=0xbfbfe050) at lockd_lock.c:976
#3  0x0804f778 in unlock_partialfilelock (fl=0xbfbfe0a0) at 
lockd_lock.c:1477
#4  0x0804fd6d in do_unlock (fl=0xbfbfe0a0) at lockd_lock.c:1788
#5  0x08050181 in unlock (lock=0xbfbfe568, flags=2) at lockd_lock.c:1967
#6  0x0804d338 in nlm4_unlock_4_svc (arg=0xbfbfe560, rqstp=0xbfbfeab0)
     at lock_proc.c:1120
#7  0x0804b449 in nlm_prog_4 (rqstp=0xbfbfeab0, transp=0x8073080)
     at nlm_prot_svc.c:436
#8  0x280f67d8 in svc_getreq_common () from /lib/libc.so.5
#9  0x280f65af in svc_getreqset () from /lib/libc.so.5
#10 0x280b5ea4 in svc_run () from /lib/libc.so.5
#11 0x0804b97c in main (argc=1, argv=0xbfbfed10) at lockd.c:212
#12 0x08049962 in _start ()
(gdb) frame 2
#2  0x0804ed3b in unlock_nfslock (fl=0xbfbfe0a0, 
released_lock=0xbfbfe04c,
     left_lock=0xbfbfe054, right_lock=0xbfbfe050) at lockd_lock.c:976
976             mfl = get_lock_matching_unlock(fl);
(gdb)

bcmp call in get_lock_matching_unlock():
                 if (bcmp(&fl->filehandle, &ifl->filehandle, 
sizeof(fhandle_t)))
                         continue;

Since it dies on bcmp, it seems like a null lock gets into the list for 
some reason.


Mvh,
Frode

On Jan 29, 2004, at 23:29, Andrew P. Lentvorski, Jr. wrote:

> On Thu, 29 Jan 2004, Frode Nordahl wrote:
>
>> Caught a new and different core dump from rpc.lockd today.
>>
>> (gdb) bt
>> #0  dump_filelock (fl=0x809c000) at lockd_lock.c:318
>> #1  0x0804e0a1 in lock_nfslock (fl=0x8080815) at lockd_lock.c:875
>
> Your line numbering seems off.  You might want to provide a little more
> context of what line actually failed.  ie. line 875 indicates a
> test_nfslock() call and 318 is an initial function bracket
>
> Nonetheless, the reasons for your core dumps elude me.  In both cases, 
> the
> fl should have caused a core dump *before* the line you are indicating.
>
> -a
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to 
> "freebsd-current-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0D094EB-562D-11D8-95DC-000A95A9A574>