Bug 761949 (GLUSTER-217) - crash in ib_verbs_create_qp
Summary: crash in ib_verbs_create_qp
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-217
Product: GlusterFS
Classification: Community
Component: ib-verbs
Version: 2.0.5
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Raghavendra G
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-16 17:24 UTC by Anand Avati
Modified: 2015-09-01 23:04 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 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.)


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