[Gluster-users] segfault in glustershd
符永涛
yongtaofu at gmail.com
Mon Apr 8 13:16:45 UTC 2013
Hi Toby,
According to the crash log, the cause may be the following:
glusterfsd/src/glusterfsd-mgmt.c line 1394
static char oldvolfile[131072];
so if the volume
file(/var/lib/glusterd/glustershd/glustershd-server.vol) is larger
than 128K then it simply crashes. This happens if there're a lot of
volumes on the server and the server volume file is larger than 128k.
on the line 1629
memcpy (oldvolfile, rsp.spec, size);
It should be a bug.
You can download glusterfs*.tar.gz and fix the problem and rebuild
rpm. Then upgrade glusterfs server one by one.
rpm -ivhU *.rpm --force
Make sure execute above command on all the server one by one and check
the /var/log/glusterfs/glusterd.log util the upgrade finished on one
server then do it on another server.
FYI
2013/4/3, Toby Corkindale <toby.corkindale at strategicdata.com.au>:
> We experienced the gluster self-heal daemon crashing on us after a
> reboot of the server.. Logs are below.
> Is this a known issue:
>
>
> [2013-04-03 20:54:06.500173] E [dict.c:2424:dict_unserialize]
> (-->/lib/libc.so.6(+0x41600) [0x7f6fff533600]
> (-->/usr/lib/libglusterfs.so.0(synctask_wrap+0x12) [0x7f700028d9d2]
> (-->/usr/sbin/glusterfs(glusterfs_handle_translator_op+0x16f)
> [0x7f70006e520f]))) 0-dict: undersized buffer passed. available
> (140118480393855) < required (140118936926502)
> pending frames:
>
> patchset: git://git.gluster.com/glusterfs.git
> signal received: 11
> time of crash: 2013-04-03 20:54:06
> configuration details:
> argp 1
> backtrace 1
> dlfcn 1
> fdatasync 1
> libpthread 1
> llistxattr 1
> setfsid 1
> spinlock 1
> epoll.h 1
> xattr.h 1
> st_atim.tv_nsec 1
> package-string: glusterfs 3.3.1
> /lib/libc.so.6(+0x32230)[0x7f6fff524230]
> /lib/libc.so.6(memcpy+0x3f3)[0x7f6fff571f23]
> /usr/lib/libglusterfs.so.0(dict_unserialize+0x27f)[0x7f7000258ccf]
> /usr/sbin/glusterfs(glusterfs_handle_translator_op+0x16f)[0x7f70006e520f]
> /usr/lib/libglusterfs.so.0(synctask_wrap+0x12)[0x7f700028d9d2]
> /lib/libc.so.6(+0x41600)[0x7f6fff533600]
> ---------
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-users
>
--
符永涛
More information about the Gluster-users
mailing list