segmentation fault requesting association

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
jprecio
Posts: 6
Joined: Tue, 2007-03-27, 23:02

segmentation fault requesting association

#1 Post by jprecio »

Hi all,
I have a segmentation fault requesting an association to a node that is not valid (for instance, the server is not listening).
The error appears at DUL_RequestAssociation, at line:

Code: Select all

return makeDcmnetSubCondition(DULC_REQUESTASSOCIATIONFAILED, OF_error, "Failed to establish association", DimseCondition::push(cond2, cond));
on the DimseCondition call.
I've changed this by a fixed condition (EC_IllegalParameter) and works fine. I dont know if this is a bug or I am doing something wrong...

Thanks,
Javier

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

Thank you for the report. Could you please check whether any string parameter (char *) in DimseCondition::push() is NULL?

jprecio
Posts: 6
Joined: Tue, 2007-03-27, 23:02

#3 Post by jprecio »

Is in the following line at the push method that the application crashes:
condString = new OFConditionString(aModule, aCode, aStatus, c);
but all variables seem to be right:

aModule=6
aCode=791
aStatus=OF_error
c= "Peer aborted Association (or never connected)\n0006:031c TCP Initialization Error: Connection refused"

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest