[ITK] Segfault while running Examples/IO/ImageFileReader

Matt McCormick matt.mccormick at kitware.com
Thu Oct 30 16:00:55 EDT 2014


Hi Jan,

The CMake configuration of HDF5 could use some improvements.  Until
that happens, the best approach is to create a separate version of
HDF5 to distribute, then build VTK and ITK against this version.
Otherwise, the internal HDF5 to ITK and VTK can conflict.

HTH,
Matt


On Thu, Oct 30, 2014 at 2:33 AM, Jan Dorazil <deu439 at gmail.com> wrote:
> Thank you,
> it did help, so it is unavoidable to use system hdf5? Is the vtk version of
> hdf5 somehow incompatible with my os? I would like to create package of itk
> for my distribution and assign only dependencies that really are
> dependencies - hdf5 isnt distributed with my os installation.
>
>
> On 10/29/2014 04:31 PM, Matt McCormick wrote:
>>
>> Hi Jan,
>>
>> Does it help to configure both your ITK and your VTK to use the system
>> HDF5?
>>
>> Thanks,
>> Matt
>>
>> On Wed, Oct 29, 2014 at 10:47 AM, Jan Dorazil <deu439 at gmail.com> wrote:
>>>
>>> Hello,
>>> after successfully building the example ImageFileReader I have
>>> encountered
>>> segmentation fault error while running the built binary.
>>> back trace:
>>> #0  0xb0c88175 in __GI__IO_default_xsputn () from /lib/libc.so.6
>>> #1  0xb0c58e73 in vfprintf () from /lib/libc.so.6
>>> #2  0xb0c82dc1 in vasprintf () from /lib/libc.so.6
>>> #3  0xb6614704 in vtk__H5E_printf_stack () from
>>> /usr/lib/libvtkhdf5-6.1.so.1
>>> #4  0xb67c7711 in vtk__H5I_inc_ref () from /usr/lib/libvtkhdf5-6.1.so.1
>>> #5  0xb66145ac in vtk__H5E_push_stack () from
>>> /usr/lib/libvtkhdf5-6.1.so.1
>>> #6  0xb661474c in vtk__H5E_printf_stack () from
>>> /usr/lib/libvtkhdf5-6.1.so.1
>>> #7  0xb67c7711 in vtk__H5I_inc_ref () from /usr/lib/libvtkhdf5-6.1.so.1
>>> #8  0xb66145ac in vtk__H5E_push_stack () from
>>> /usr/lib/libvtkhdf5-6.1.so.1
>>> #9  0xb661474c in vtk__H5E_printf_stack () from
>>> /usr/lib/libvtkhdf5-6.1.so.1
>>> #10 0xb67c7711 in vtk__H5I_inc_ref () from /usr/lib/libvtkhdf5-6.1.so.1
>>> #11 0xb66145ac in vtk__H5E_push_stack () from
>>> /usr/lib/libvtkhdf5-6.1.so.1
>>> #12 0xb661474c in vtk__H5E_printf_stack () from
>>> /usr/lib/libvtkhdf5-6.1.so.1
>>> #13 0xb67c7711 in vtk__H5I_inc_ref () from /usr/lib/libvtkhdf5-6.1.so.1
>>> #14 0xb66145ac in vtk__H5E_push_stack () from
>>> /usr/lib/libvtkhdf5-6.1.so.1
>>> #15 0xb661474c in vtk__H5E_printf_stack () from
>>> /usr/lib/libvtkhdf5-6.1.so.1
>>> ....
>>> ITK version 4.6.1
>>> built with:
>>>      -DBUILD_SHARED_LIBS=ON \
>>>      -DBUILD_DOCUMENTATION=ON \
>>>      -DITK_DOXYGEN_HTML=ON \
>>>      -DITK_DOXYGEN_ECLIPSEHELP=OFF \
>>>      -DModule_ITKVtkGlue=ON \
>>>      -DModule_ITKVideoBridgeOpenCV=ON \
>>>      -DITK_USE_SYSTEM_ZLIB=ON \
>>>      -DITK_USE_SYSTEM_JPEG=ON \
>>>      -DITK_USE_SYSTEM_TIFF=ON \
>>>      -DITK_USE_SYSTEM_PNG=ON \
>>>      -DITK_USE_SYSTEM_FFTW=ON \
>>>      -DCMAKE_INSTALL_PREFIX=/usr \
>>>      -DCMAKE_BUILD_TYPE=Release ..
>>>
>>>
>>> VTK version: 6.1.0
>>> built with:
>>>      -DCMAKE_INSTALL_PREFIX=/usr \
>>>      -DCMAKE_BUILD_TYPE=Release \
>>>      -DVTK_Group_Qt=ON \
>>>      -DBUILD_SHARED_LIBS=ON ..
>>>
>>> Could anybody help me please?
>>>
>>>
>>>
>>> _______________________________________________
>>> Community mailing list
>>> Community at itk.org
>>> http://public.kitware.com/mailman/listinfo/community
>
>


More information about the Community mailing list