Bug 761949 (GLUSTER-217)

Summary: crash in ib_verbs_create_qp
Product: [Community] GlusterFS Reporter: Anand Avati <aavati>
Component: ib-verbsAssignee: Raghavendra G <raghavendra>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 2.0.5CC: chrisw, gluster-bugs
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 Anand Avati 2009-08-16 17:24:27 UTC
This is a case where ibv_create_cq() api of ibverbs fails. There is a NULL dereference in line 778 of ib-verbs.c in this case.


(gdb) bt
#0  0xfed9a0b7 in _lwp_kill () from /lib/libc.so.1
#1  0xfed95814 in thr_kill () from /lib/libc.so.1
#2  0xfed41df3 in raise () from /lib/libc.so.1
#3  0xfee57065 in gf_print_trace (signum=11) at common-utils.c:439
#4  0xfed9742f in __sighndlr () from /lib/libc.so.1
#5  0xfed8d141 in call_user_handler () from /lib/libc.so.1
#6  <signal handler called>
#7  0xfde6373e in ib_verbs_create_qp (this=0x990cb68) at ib-verbs.c:778
#8  0xfde66a24 in ib_verbs_server_event_handler (fd=13, idx=1, data=0x80b3638, poll_in=1, poll_out=0, poll_err=0)
    at ib-verbs.c:2246
#9  0xfee6a459 in event_dispatch_poll_handler (event_pool=0x8071908, ufds=0x80b7770, i=1) at event.c:372
#10 0xfee6a69d in event_dispatch_poll (event_pool=0x8071908) at event.c:453
#11 0xfee6a921 in event_dispatch (event_pool=0x8071908) at event.c:975
#12 0x080554ed in main (argc=7, argv=0x8047c78) at glusterfsd.c:1226
(gdb)

Comment 1 Anand Avati 2009-09-02 14:30:18 UTC
PATCH: http://patches.gluster.com/patch/1190 in master (ib-verbs: handle failure of ibv_create_qp gracefully.)

Comment 2 Anand Avati 2009-09-02 14:30:39 UTC
PATCH: http://patches.gluster.com/patch/1191 in release-2.0 (ib-verbs: handle failure of ibv_create_qp gracefully.)