[openib-general] destroying an AH from user space causes segmentation fault

Gleb Natapov glebn at voltaire.com
Thu Jul 21 08:25:57 PDT 2005


Should be fixed in the latest revision.

On Thu, Jul 21, 2005 at 06:22:40PM +0300, Dotan Barak wrote:
> I'm using driver revision 2851 with HCA 23108.
> 
> Here is a back trace from a core dump of this seg fault:
> 
> 
> Loaded symbols for /usr/local/lib/infiniband/mthca.so
> #0  0x4001ef8b in mthca_free_av (ah=0x804db70) at ah.c:171
> 
> warning: Source file is more recent than executable.
> 
> 171                     i = ((void *) ah->av - page->buf) / sizeof *ah->av;
> (gdb) bt
> #0  0x4001ef8b in mthca_free_av (ah=0x804db70) at ah.c:171
> #1  0x40021d1d in mthca_destroy_ah (ah=0x804db70) at mthca.h:242
> #2  0x4001bfdf in ibv_destroy_ah (ah=0x0) at verbs.c:194
> #3  0x080491b7 in main (argc=1, argv=0xbf97a4b4) at sa_ping.c:361
> (gdb) p ah
> $1 = (struct mthca_ah *) 0x804db70
> (gdb) p page
> $2 = (struct mthca_ah_page *) 0x0
> 
> 
> 
> i attached a small test that reproduces this failure.
> 
>  <<destroy_av.c>> 
> Dotan Barak
> Software Verification Engineer
> Mellanox Technologies LTD
> mailto:dotanb at mellanox.co.il
> Tel: +972-4-9097200 Ext: 231 Fax: +972-4-9593245
> P.O. Box 86 Yokneam 20692 ISRAEL.
> Home: +972-4-8289408  Cell: 052-4222383
> 
> [ May the fork be with you ]
> 


> _______________________________________________
> openib-general mailing list
> openib-general at openib.org
> http://openib.org/mailman/listinfo/openib-general
> 
> To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

--
			Gleb.



More information about the general mailing list