Page MenuHomePhabricator

org.mitk.gui.qt.dicom causes segfaults
Closed, ResolvedPublic


In Linux the org.mitk.gui.qt.dicom plugin causes segfaults on mitk startup.

Event Timeline

The problem is that dcmtk is a static library which is loaded by mitk and ctk. Dcmtk uses some static variables. The static variables memory allocation isn't well defined and on diffrent os the behavior is different. In mitk startup the static dcmtk library is loaded several times and the gnu compiler tries to map the static variables. This leads to segfaults.

[3eaee3]: Merge branch 'bug-12780-segfaultsOnLinux'

Merged commits:

2012-08-02 11:46:23 Michael Bauer [c748b5]
Reloading the libCTKDICOMCore will load the load the ctkDICOMCore lib
which includes the static dcmtk libs that are used in the org.mitk.gui.qt.dicom plugin.