A Dimecres 26 Abril 2006 02:53, Russel va escriure:
> Interestingly, the program does not crash when run under valgrind.
> It does produce this error:
[...]
>
> Looks like Python is checking to see if it needs to free something
> that has already been free'd by the hdf5 libraries.  I am not sure
> how to track this down, you might have to set a breakpoint on that
> memcpy call and see where pytables is for a few calls.  Usually
> valgrind magically points out the bug for this kind of thing, but you
> are not so lucky...

In fact, valgrind points out the correct place where the segfault
happens, but you should use the "none" tool (at least for this case):

$ valgrind --tool=none python prova.py
==17946==
==17946== Process terminating with default action of signal 11 (SIGSEGV)
==17946==  Access not within mapped region at address 0x5521008
==17946==    at 0x4108C1F: memcpy (memcpy.c:55)
==17946==    by 0x4584EE5: H5V_memcpyvv (H5V.c:1316)
==17946==
Segmentation fault

Thanks for remembering about valgrind. Without it finding the bug
would have been even harder.

Regards,

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to