Bug 762950 (GLUSTER-1218) - Crash in client_fdctx_destroy
Summary: Crash in client_fdctx_destroy
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-1218
Product: GlusterFS
Classification: Community
Component: protocol
Version: mainline
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Anush Shetty
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-26 09:30 UTC by Anush Shetty
Modified: 2015-12-01 16:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description Anush Shetty 2010-07-26 09:30:24 UTC
This crashed while running dbench ( dbench -s 10 -D /mnt/gluster) over a 4-replica setup.

time of crash: 2010-07-26 14:31:53
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.1.0git
/lib/libc.so.6[0x7f4fb75a2530]
/gluster/3.1/lib/glusterfs/3.1.0git/xlator/protocol/client.so(client_fdctx_destroy+0x1aa)[0x7f4fb60de8f3]
/gluster/3.1/lib/glusterfs/3.1.0git/xlator/protocol/client.so(client3_1_reopen_cbk+0x1ff)[0x7f4fb60deb07]
/gluster/3.1/lib/glusterfs/3.1.0git/xlator/protocol/client.so(client3_1_open_cbk+0xd0)[0x7f4fb60d7884]
/gluster/3.1/lib/libgfrpc.so.0(saved_frames_unwind+0x260)[0x7f4fb7f274ef]
/gluster/3.1/lib/libgfrpc.so.0(saved_frames_destroy+0x18)[0x7f4fb7f27581]
/gluster/3.1/lib/libgfrpc.so.0(rpc_clnt_connection_cleanup+0xfa)[0x7f4fb7f279d6]
/gluster/3.1/lib/libgfrpc.so.0(rpc_clnt_notify+0x132)[0x7f4fb7f28206]
/gluster/3.1/lib/libgfrpc.so.0(rpc_transport_notify+0xbf)[0x7f4fb7f25dec]
/gluster/3.1/lib/glusterfs/3.1.0git/rpc-transport/socket.so(socket_event_poll_err+0x7d)[0x7f4fb51fa163]
/gluster/3.1/lib/glusterfs/3.1.0git/rpc-transport/socket.so(socket_event_handler+0x11e)[0x7f4fb51fcf06]
/gluster/3.1/lib/libglusterfs.so.0[0x7f4fb816dde9]
/gluster/3.1/lib/libglusterfs.so.0[0x7f4fb816dfeb]
/gluster/3.1/lib/libglusterfs.so.0(event_dispatch+0x74)[0x7f4fb816e30d]
/gluster/3.1/sbin/glusterfs(main+0xfb)[0x405815]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f4fb758dabd]
/gluster/3.1/sbin/glusterfs[0x402d99]

(gdb) bt
#0  0x00007f4fb60de8f3 in client_fdctx_destroy (this=0x22478e8, fdctx=0x7f4fa400cf38) at client3_1-fops.c:2084
#1  0x00007f4fb60deb07 in client3_1_reopen_cbk (req=0x7fffeaf93400, iov=0x7fffeaf933d0, count=1, myframe=0x7f4fac00ed80) at client3_1-fops.c:2139
#2  0x00007f4fb60d7884 in client3_1_open_cbk (req=0x7fffeaf93400, iov=0x7fffeaf933d0, count=1, myframe=0x7f4fac00ed80) at client3_1-fops.c:311
#3  0x00007f4fb7f274ef in saved_frames_unwind (saved_frames=0x7f4fac00bb38) at rpc-clnt.c:328
#4  0x00007f4fb7f27581 in saved_frames_destroy (frames=0x7f4fac00bb38) at rpc-clnt.c:339
#5  0x00007f4fb7f279d6 in rpc_clnt_connection_cleanup (conn=0x2254308) at rpc-clnt.c:463
#6  0x00007f4fb7f28206 in rpc_clnt_notify (trans=0x22543d8, mydata=0x2254308, event=RPC_TRANSPORT_DISCONNECT, data=0x22543d8) at rpc-clnt.c:742
#7  0x00007f4fb7f25dec in rpc_transport_notify (this=0x22543d8, event=RPC_TRANSPORT_DISCONNECT, data=0x22543d8) at rpc-transport.c:1228
#8  0x00007f4fb51fa163 in socket_event_poll_err (this=0x22543d8) at socket.c:533
#9  0x00007f4fb51fcf06 in socket_event_handler (fd=6, idx=3, data=0x22543d8, poll_in=1, poll_out=0, poll_err=0) at socket.c:1447
#10 0x00007f4fb816dde9 in event_dispatch_epoll_handler (event_pool=0x223cc48, events=0x22597c8, i=1) at event.c:807
#11 0x00007f4fb816dfeb in event_dispatch_epoll (event_pool=0x223cc48) at event.c:871
#12 0x00007f4fb816e30d in event_dispatch (event_pool=0x223cc48) at event.c:979
#13 0x0000000000405815 in main (argc=8, argv=0x7fffeaf93c68) at glusterfsd.c:1267

Comment 1 Anand Avati 2010-07-27 05:20:02 UTC
PATCH: http://patches.gluster.com/patch/3900 in master (Set fdctx only if op_ret is not -1)

Comment 2 Amar Tumballi 2010-07-28 02:56:55 UTC
the fix is sent by Anush, closing.


Note You need to log in before you can comment on or make changes to this bug.