MantisBT - ITK
View Issue Details
0002232ITKpublic2005-09-14 13:072009-04-07 08:03
Stefan Klein 
Mathieu Malaterre 
normalmajoralways
closedsuspended 
 
 
0002232: gdcm lib gives segmentation fault when used in combination with shared libs (modules)
A problem with using the itkDynamicLoader in combination with the GDCM library.

See the insight-user-mailing list starting with the following mail:

http://public.kitware.com/pipermail/insight-users/2005-September/014797.html [^]

In short, when the itkDynamicLoader is used to load some shared modules that link to the gdcm-library, a segmentation fault is generated on closing the shared modules.

Cause: global variables of type std::string. some may be solved by replacing them by char[], some by declaring the variables static.
No tags attached.
patch gdcm2.patch (4,201) 1969-12-31 19:00
https://public.kitware.com/Bug/file/479/gdcm2.patch
Issue History
2007-09-19 11:07Luis IbanezAssigned ToMathieu Malaterre => David Cole
2007-09-19 11:07Luis IbanezAssigned ToDavid Cole => Mathieu Malaterre
2008-11-30 11:37Mathieu MalaterreNote Added: 0014251
2008-11-30 11:37Mathieu MalaterreStatusassigned => closed
2008-11-30 11:41Mathieu MalaterreNote Added: 0014254
2008-11-30 11:41Mathieu MalaterreStatusclosed => resolved
2009-04-07 08:03Marius StaringStatusresolved => closed

Notes
(0003884)
Mathieu Malaterre   
2006-03-20 14:49   

The update to gdcm 1.2 has not solved my problem (bug 2232). Moreover, the patch you provided a while ago, as a temporary solution, does not work anymore with ITK2.6.0.

Have you thought of a more permanent solution?

In the attachment you can find the patch that solved the problem with ITK2.4.1. It is the same as the patch you sent me, except for line 74.
(0014251)
Mathieu Malaterre   
2008-11-30 11:37   
This is fixed in gdcm 2.x
(0014254)
Mathieu Malaterre   
2008-11-30 11:41   
Fixed. See
http://apps.sourceforge.net/mediawiki/gdcm/index.php?title=GDCM_Release_2.0 [^]