#26 PyTables segmentation faults when removing rows

closed
None
5
2005-06-20
2005-05-12
No

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.

Discussion

  • Justin Bronn

    Justin Bronn - 2005-05-12

    Code to cause PyTables segmentation fault when removing rows

     
  • Ivan Vilata i Balaguer

    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.

     
  • Francesc Altet

    Francesc Altet - 2005-06-20
    • assigned_to: nobody --> falted
    • status: open --> closed
     
  • Francesc Altet

    Francesc Altet - 2005-06-20

    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.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks