Francesc Altet wrote:

A Dimecres 26 Abril 2006 01:40, Andrew Straw va escriure:
The following code fails on data files I created yesterday using
pytables (IIRC a daily snapshot just prior to the 1.3 release -- it's
called "1.3beta2"). The h5* tools seem to work (e.g. h5ls, h5dump and so
on). The segfault occurs with pytables 1.2.3, 1.3, and today's svn
current as of now.

I've put a copy of a small (940 KB) example at
http://mosca.caltech.edu/outgoing/DATA20060424_185459.h5

The code that fails is:

import tables
results = tables.openFile('DATA20060424_185459.h5')
for row in results.root.data2d:
   print '1'

The segfault happens when trying to get the iterator from the Table
class. (The print statement is never reached.)

This one is a PyTables flaw. I've not a definitive solution for this,
but the attached workaround seems to work well (and it doesn't leak :).
Thanks, indeed the patch allows me to see my data again! :)

I hope you can determine the underlying cause, but I'll happily continue working with your patch.


-------------------------------------------------------
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&kid=120709&bid=263057&dat=121642
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to