[EMAIL PROTECTED] wrote on Fri, 30 Nov 2007 14:43 -0500:
> I'm trying both the 2.7.0 release and 2.7.1pre1-2007-11-30-182035 from
> CVS with an existing PVFS2 filesystem converted from 2.6.3 and am
> running into two major issues:
>
> Line 1944 (CVS) of /src/io/bmi/bmi_ib/ib.c:
> bmi_method_addr_forget_callback(ibmap->c->bmi_addr);
>
> ...always results in a segfault with any of the admin apps after the
> command completes, even pvfs2-ping. It doesn't happen when pvfs2-client
> exits. According to ltrace, it seems to happen on free(), so I guess
> it's after the callback actually occurs?
>
> ibv_close_device(0x5848b0, 33, 0x584a40, 0, 0x5849c8 <unfinished ...>
> SYS_close(4) = 0
> SYS_close(3) = 0
> <... ibv_close_device resumed> ) = 0
> free(0x584a00) = <void>
> free(0x5838b0) = <void>
> pthread_mutex_unlock(0x56fee0, 1, 0x5848a0, 0x5b1590, 0x5849c8) = 0
> free(0x583870) = <void>
> pthread_mutex_unlock(0x56f660, 32, 0x584820, 0, 0x5849c8) = 0
> free(0x5753f0) = <void>
> free(0x583890) = <void>
> free(0x58afa0) = <void>
> free(0x58af80) = <void>
> free(0x58afc0) = <void>
> --- SIGSEGV (Segmentation fault) ---
> +++ killed by SIGSEGV +++
This one looks like changes to method addr ref counting were not
propagated down into IB. Here is a trivial hack-around. TCP
doesn't call back to BMI in a DROP_ADDR, so maybe it is correct.
Sam might verify that this is the right thing to do.
-- Pete
Index: src/io/bmi/bmi_ib/ib.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/io/bmi/bmi_ib/ib.c,v
retrieving revision 1.61
diff -u -p -r1.61 ib.c
--- src/io/bmi/bmi_ib/ib.c 30 Nov 2007 19:33:16 -0000 1.61
+++ src/io/bmi/bmi_ib/ib.c 30 Nov 2007 20:01:10 -0000
@@ -1938,7 +1938,6 @@ static int BMI_ib_set_info(int option, v
ib_method_addr_t *ibmap = map->method_data;
free(ibmap->hostname);
free(map);
- bmi_method_addr_forget_callback(ibmap->c->bmi_addr);
break;
}
case BMI_OPTIMISTIC_BUFFER_REG: {
_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users