Bug 762215 (GLUSTER-483)

Summary: booster unfsd segfault
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: libglusterfsclientAssignee: Shehjar Tikoo <shehjart>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: gluster-bugs, lakshmipathi, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTNR Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Amar Tumballi 2009-12-17 00:36:10 UTC
(gdb) bt
#0  fd_unref (fd=0x7500000000) at fd.c:447
#1  0x0000003953222c0a in call_stub_destroy_wind (stub=<value optimized out>) at call-stub.c:4005
#2  call_stub_destroy (stub=<value optimized out>) at call-stub.c:4280
#3  0x00007f47f98dea96 in libgf_client_fsetattr (ctx=<value optimized out>, fd=0x1d42d50, stbuf=<value optimized out>,
    valid=<value optimized out>) at libglusterfsclient.c:5730
#4  0x00007f47f98debe8 in glusterfs_fchmod (fd=0x1d42d50, mode=436) at libglusterfsclient.c:5755
#5  0x00007f47f9b08df7 in fchmod (fd=1, mode=436) at booster.c:1295
#6  0x0000000000403441 in inet_addr ()
#7  0x00000000004097ab in inet_addr ()
#8  0x0000000000403b69 in inet_addr ()
#9  0x0000003952f0a8a9 in svc_getreq_common_internal () from /lib64/libc.so.6
#10 0x0000003952f0a231 in svc_getreq_poll_internal () from /lib64/libc.so.6
#11 0x000000000040479b in inet_addr ()
#12 0x0000003952e1ea2d in __libc_start_main () from /lib64/libc.so.6
#13 0x0000000000402b79 in inet_addr ()
#14 0x00007fff3b71f298 in ?? ()
#15 0x000000000000001c in ?? ()
#16 0x0000000000000005 in ?? ()
(gdb) fr 2
(gdb) p stub->args->fsetattr
$1 = {fn = 0, fd = 0x7500000000, stbuf = {st_dev = 5415628867455268969, st_ino = 16515907, st_nlink = 1, st_mode = 33204,
    st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 0, st_blksize = 4096, st_blocks = 0, st_atim = {
      tv_sec = 4294967270, tv_nsec = 0}, st_mtim = {tv_sec = 21525, tv_nsec = 0}, st_ctim = {tv_sec = 1261005498,
      tv_nsec = 0}, __unused = {0, 0, 0}}, valid = 77}

Notice the wrong value for 'fd'.

Comment 1 Vijay Bellur 2009-12-17 13:41:07 UTC
PATCH: http://patches.gluster.com/patch/2617 in master (bug fixes in call-stub creation for {fsetattr, fxattrop}_cbk())