[Gluster-devel] Segfault in glusterfsd

Anand Avati avati at zresearch.com
Sun Jun 24 19:36:46 UTC 2007


Andrey,
  I just noticed that you were using glusterfs--mainline--2.4-patch-163 and
using posix-locks. But patch-171 had a critical bugfix in posix-locks which
is likely to be the cause of your segfault. please upgrade.
thanks,
avati

2007/6/18, NovA <av.nova at gmail.com>:
>
> Avati,
>   Here there is the gdb output:
> ---
> Core was generated by `[glusterfsd]
>                               '.
> Program terminated with signal 11, Segmentation fault.
> #0  dict_destroy (this=0x2aaab0000f70) at dict.c:251
> 251     dict.c: No such file or directory.
>         in dict.c
> (gdb) p *this
> $1 = {is_static = 0 '\0', hash_size = 15, count = 5, refcount = 0,
> members = 0x2aaab0000b10, members_list = 0x2aaab00012a0,
>   extra_free = 0x0, lock = 0x2aaab00017a0}
> (gdb) up
> #1  0x00002aaaab0be69f in proto_srv_notify (this=<value optimized
> out>, trans=0x612340, event=1) at proto-srv.c:2781
> 2781    proto-srv.c: No such file or directory.
>         in proto-srv.c
> (gdb) p *trans
> $2 = {ops = 0x2aaaab4cd140, private = 0x612ed0, xl_private = 0x6138d0,
> lock = {__data = {__lock = 0, __count = 0, __owner = 0,
>       __nusers = 0, __kind = 0, __spins = 0, __list = {__prev = 0x0,
> __next = 0x0}}, __size = '\0' <repeats 39 times>, __align = 0},
>   refcount = 2, xl = 0x60a1b0, buf = 0x612070, init = 0, peerinfo =
> {sockaddr = {sin_family = 2, sin_port = 62467, sin_addr = {
>         s_addr = 117440778}, sin_zero =
> "\000\000\000\000\000\000\000"}}, fini = 0x2aaaab2cb2a0
> <gf_transport_fini>,
>   notify = 0x2aaaab0be400 <proto_srv_notify>}
> (gdb) p *blk
> $3 = {callid = 3229, type = 0, op = 0, name = '-' <repeats 32 times>,
> size = 136, data = 0x0, dict = 0x2aaab0000f70}
> (gdb) p frame->root->req_refs
> No symbol "frame" in current context.
> ---
>
> Hope this helps...
>
> WBR,
>   Andrey
>
> 2007/6/15, Anand Avati <avati at zresearch.com>:
> > Andrey, few more checks if you dont mind.
> >
> > in gdb, do these -
> >
> > p *this
> > up
> > p *trans
> > p *blk
> > p frame->root->req_refs
> > p *frame->root->req_refs
> >
> > and send the output.
> >
> > thanks in advance,
> > avati
>



-- 
Anand V. Avati



More information about the Gluster-devel mailing list