gluster / glusterfs

Gluster Filesystem : Build your distributed storage in minutes
https://www.gluster.org
GNU General Public License v2.0
4.53k stars 1.07k forks source link

core: glusterfs encounter a SIGSEGV in __gf_free #4250

Closed mohit84 closed 7 months ago

mohit84 commented 7 months ago

glusterfs encounter a SIGSEGV in __gf_free called from glusterfs_volfile_fetch_on

The glusterfs(fuse client) is showing a below stacktrace

Program terminated with signal 11, Segmentation fault. 326 if (!num_allocs) { (gdb) bt at ../../libglusterfs/src/glusterfs/stack.h:199 at glusterfsd-mgmt.c:2269 at glusterfsd-mgmt.c:2293 at ../sysdeps/unix/sysv/linux/makedev.c:37 (gdb)

Solution: Avoid frame cleanup in case of error return by mgmt_submit_request.

Fixes: #4190 Change-Id: I49602280e857108cfe2db7a548818a81d6c605e0 Credits: Xavi Hernandez xhernandez@gmail.com Signed-off-by: Mohit Agrawal moagrawa@redhat.com (Reviwed on upstream link https://github.com/gluster/glusterfs/pull/4191)

Fixes: #4190 Change-Id: I49602280e857108cfe2db7a548818a81d6c605e0 Fixes: #4190

mohit84 commented 7 months ago

/run regression