ITK
ITK copied to clipboard
Mesh Write in Binary mode fails in Linux with post2 python wheels
Writing mesh in binary mode fails when using 5.3rc4.post2 wheels.
Description
Getting segmentation faults with messages such as:
- free(): corrupted unsorted chunks
- corrupted size vs. prev_size
Steps to Reproduce
Install itk 5.3rc4.post2 using pip.
Expected behavior
Actual behavior
Reproducibility
Versions
Environment
Additional Information
Is there data/script to reproduce this issue?
The following test when used with binary flag fails.
https://github.com/InsightSoftwareConsortium/ITK/blob/0fcfaf1288928a76c3ef2b3fcc8b6e53246bfbba/Modules/IO/MeshVTK/test/CMakeLists.txt#L35
itk_add_test(NAME itkPolyLineReadWriteTest02
COMMAND ITKIOMeshVTKTestDriver itkPolylineReadWriteTest
DATA{Baseline/hollow.vtk}
${ITK_TEST_OUTPUT_DIR}/hollow.vtk
)
Fix for this issue is ready in https://github.com/InsightSoftwareConsortium/ITK/pull/3526. I am looking at other commented tests that were failing before. https://github.com/InsightSoftwareConsortium/ITK/pull/3526 fix did not solve all of them.