| Summary: | [9564e09e5315846a38ed18e05630ef73be5b2adb]: crash in client while running sanity because local is NULL | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Rahul C S <rahulcs> |
| Component: | stripe | Assignee: | shishir gowda <sgowda> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | pre-release | CC: | gluster-bugs, nsathyan |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| 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: | |
Crash generated in client while running sanity on distributed-stripe volume on a release-3.2 branch. Crash happens because local is NULL & no check is present. Core was generated by `glusterfs --volfile-server=centos-qa-sanity --volfile-id=vol /export/nightly/mo'. Program terminated with signal 11, Segmentation fault. #0 0x00002aaaab1ad8cc in client3_1_mkdir_cbk (req=0x2aaaaccf1710, iov=0x2aaaaccf1750, count=1, myframe=0x2ab8f9216058) at ../../../../../xlators/protocol/client/src/client3_1-fops.c:264 264 inode = local->loc.inode; (gdb) bt #0 0x00002aaaab1ad8cc in client3_1_mkdir_cbk (req=0x2aaaaccf1710, iov=0x2aaaaccf1750, count=1, myframe=0x2ab8f9216058) at ../../../../../xlators/protocol/client/src/client3_1-fops.c:264 #1 0x00002ab8f857396c in rpc_clnt_handle_reply (clnt=0x8827fb0, pollin=0x2aaab002d100) at ../../../../rpc/rpc-lib/src/rpc-clnt.c:741 #2 0x00002ab8f8573ca3 in rpc_clnt_notify (trans=0x8828160, mydata=0x8827fe0, event=RPC_TRANSPORT_MSG_RECEIVED, data=0x2aaab002d100) at ../../../../rpc/rpc-lib/src/rpc-clnt.c:854 #3 0x00002ab8f857037a in rpc_transport_notify (this=0x8828160, event=RPC_TRANSPORT_MSG_RECEIVED, data=0x2aaab002d100) at ../../../../rpc/rpc-lib/src/rpc-transport.c:919 #4 0x00002aaaaad6d7ed in socket_event_poll_in (this=0x8828160) at ../../../../../rpc/rpc-transport/socket/src/socket.c:1647 #5 0x00002aaaaad6dd2f in socket_event_handler (fd=11, idx=2, data=0x8828160, poll_in=1, poll_out=0, poll_err=0) at ../../../../../rpc/rpc-transport/socket/src/socket.c:1762 #6 0x00002ab8f832aef0 in event_dispatch_epoll_handler (event_pool=0x8803210, events=0x8807d40, i=0) at ../../../libglusterfs/src/event.c:794 #7 0x00002ab8f832b0f5 in event_dispatch_epoll (event_pool=0x8803210) at ../../../libglusterfs/src/event.c:856 #8 0x00002ab8f832b44f in event_dispatch (event_pool=0x8803210) at ../../../libglusterfs/src/event.c:956 #9 0x0000000000406e2a in main (argc=4, argv=0x7fff39e6fb38) at ../../../glusterfsd/src/glusterfsd.c:1509 (gdb) l 259 260 frame = myframe; 261 262 local = frame->local; 263 frame->local = NULL; 264 inode = local->loc.inode; 265 266 if (-1 == req->rpc_status) { 267 rsp.op_ret = -1; 268 rsp.op_errno = ENOTCONN; (gdb) p frame $1 = (call_frame_t *) 0x2ab8f9216058 (gdb) p local $2 = (clnt_local_t *) 0x0 (gdb) p frame->local $3 = (void *) 0x0 (gdb) p local->loc.inode Cannot access memory at address 0x10 (gdb) p inode $4 = (inode_t *) 0x0 (gdb) p local $5 = (clnt_local_t *) 0x0