Actions
Bug #646
closedstorescu/scp crash in debug mode when using association negotiation profiles
Start date:
2015-07-02
Due date:
% Done:
100%
Estimated time:
Module:
dcmnet
Operating System:
Linux
Compiler:
Description
The tools crash when compiled with debug mode enabled and when using the -xf option:
Program received signal SIGSEGV, Segmentation fault. 0x000000000050fbff in OFListBase::base_insert (this=0x7dcba0, pos=0x2e352e3830303031, newElem=0x7dcc80) at oflist.cc:57 57 newElem->prev = pos->prev; (gdb) where #0 0x000000000050fbff in OFListBase::base_insert (this=0x7dcba0, pos=0x2e352e3830303031, newElem=0x7dcc80) at oflist.cc:57 #1 0x0000000000440526 in OFList<DcmPresentationContextItem>::insert (this=0x7dcba0, position=..., x=...) at ../../ofstd/include/dcmtk/ofstd/oflist.h:294 #2 0x0000000000440157 in OFList<DcmPresentationContextItem>::push_back (this=0x7dcba0, x=...) at ../../ofstd/include/dcmtk/ofstd/oflist.h:393 #3 0x000000000043f7a6 in DcmPresentationContextMap::add (this=0x7fffffffd728, key=0x7d6ad0 "STORAGECOMPRESSEDANDUNCOMPRESSED", abstractSyntaxUID=0x7dcae0 "ComputedRadiographyImageStorage", transferSyntaxKey=0x7dcb20 "JPEGBASELINE") at dccfpcmp.cc:147 #4 0x000000000043926a in DcmAssociationConfiguration::addPresentationContext (this=0x7fffffffd710, key=0x7d6ad0 "STORAGECOMPRESSEDANDUNCOMPRESSED", abstractSyntaxUID=0x7dcae0 "ComputedRadiographyImageStorage", transferSyntaxKey=0x7dcb20 "JPEGBASELINE") at dcasccfg.cc:97 #5 0x000000000043c208 in DcmAssociationConfigurationFile::parsePresentationContexts (cfg=..., config=...) at dcasccff.cc:193 #6 0x000000000043b98e in DcmAssociationConfigurationFile::initialize (cfg=..., filename=0x7ccc60 "dcmnet/etc/storescu.cfg") at dcasccff.cc:72 #7 0x000000000040a1b1 in main (argc=7, argv=0x7fffffffddc8) at storescu.cc:470
Tested on Linux machine with gcc 4.8.4 and "./configure --enable-debug".
This issue is already present with DCMTK 3.6.0! (did not check any older versions)
Actions