PyTables will cause python to segmentation fault when
removing the last row out of a table with the
table.removeRows() method.
Attached is test code to reproduce this problem:
python segfault.py
Segmentation Fault
Tested with python 2.4.1 on both RedHat 9 and Fedora Core 1
Used PyTables v1.0, numarray 1.3.1, and hdf5 1.6.4.
Code to cause PyTables segmentation fault when removing rows
Logged In: YES
user_id=1064183
This is in fact a bug in the HDF5 library, which fails upon
completely emptying a dataset. However, there is no doubt
that this case should be caught by PyTables to at least
avoid the segfault and replace it by an exception.
Logged In: YES
user_id=249033
Now, a check is done to know if one is trying to delete
all the rows in a Table, and an UnImplemented error is
issued if so.
When HDF5 will support this, this check will be
released.