Bug 762171 (GLUSTER-439)

Summary: crash in server protocol, while destroying connection
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: protocolAssignee: Vijay Bellur <vbellur>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: low    
Version: mainlineCC: gluster-bugs, 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: --- 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-05 02:51:41 UTC
back trace on server :

----------------
(gdb) l server_connection_destroy
683     }
684
685
686     int
687     server_connection_destroy (xlator_t *this, server_connection_t *conn)
688     {
689             call_frame_t       *frame = NULL, *tmp_frame = NULL;
690             xlator_t           *bound_xl = NULL;
691             int32_t             ret = -1;
692             server_state_t     *state = NULL;
(gdb) p *((server_connection_t *)((transport_t *)data)->xl_private)                                              
$3 = {list = {next = 0x11feb50, prev = 0x11feb50}, 
  id = 0xf77500 "availtvn1-14651-2009/12/05-02:35:01:343396-availtvn1-1", ref = 0, active_transports = 0, 
  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}, disconnected = 0 '\0', 
  fdtable = 0xc10450, ltable = 0x1293ef0, bound_xl = 0x0}
(gdb) bt
#0  server_connection_destroy (this=0x9db290, conn=<value optimized out>) at server-helpers.c:834
#1  0x00007f2dcc436ce9 in notify (this=0x9db290, event=<value optimized out>, data=0x1863790)
    at server-protocol.c:6764
#2  0x00007f2dcd503293 in xlator_notify (xl=0x9db290, event=8, data=0x1863790) at xlator.c:923
#3  0x00007f2dcd50e21f in transport_unref (this=0x1863790) at transport.c:380
#4  0x00007f2dcb8280c8 in socket_event_handler (fd=<value optimized out>, idx=116, data=0x1863790, poll_in=1, 
    poll_out=0, poll_err=<value optimized out>) at socket.c:834
#5  0x00007f2dcd51d42d in event_dispatch_epoll_handler (i=<value optimized out>, events=<value optimized out>, 
    event_pool=<value optimized out>) at event.c:804
#6  event_dispatch_epoll (i=<value optimized out>, events=<value optimized out>, 
    event_pool=<value optimized out>) at event.c:867
#7  0x00000000004040a6 in main (argc=<value optimized out>, argv=<value optimized out>) at glusterfsd.c:1378
(gdb) 
-------------

Comment 1 Anand Avati 2009-12-05 05:49:25 UTC
PATCH: http://patches.gluster.com/patch/2570 in master (fix crash in server protocol server-connection-destroy)