storescp Bus error (core dumped)

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
hayhv
Posts: 7
Joined: Tue, 2009-04-14, 03:09
Contact:

storescp Bus error (core dumped)

#1 Post by hayhv »

Dear Sir,
I downloaded latest snapshot (dcmtk-3.5.5_20100903) and make on freebsd 6.2(i386) os.
I open a terminate to start storescp.
./storescp +xa -d -v 104

and open other terminate run echoscu
./echoscu localhost 104

but when i run , a error occured in server "Bus error (core dumped)" and then a notice from client showed that "F: Association Request Failed: 0006:0317 Peer aborted Association (or never connecte d)"

terminate server
Server# ./storescp +xa -d -v 104
Bus error (core dumped)


terminate client
Server# ./echoscu localhost 104
F: Association Request Failed: 0006:0317 Peer aborted Association (or never connected)


all mentioned command is ok with the version of 3.5.4

would you do me a favour to explain that error?

Thank you very much and looking forward to your prompt response.
hayhv

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 »

Unfortunately, I have no FreeBSD running but it works on Linux (using the same command line options).
Btw, did you start the storescp with root privileges? Otherwise port 104 wouldn't be available I guess.

Did you already debug the crashed tool (since you have a core dump)?

hayhv
Posts: 7
Joined: Tue, 2009-04-14, 03:09
Contact:

#3 Post by hayhv »

Thank you for reply.
I debug by gdb command.

Server# gdb storescp
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
(gdb) run +xa -v -d 104
Starting program: /usr/src/dcmtk-3.5.5_20100903/dcmnet/apps/storescp +xa -v -d 104
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...warning: Unable to get location for thread creation breakpoint: generic error
[New LWP 100069]
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...D: $dcmtk: storescp v3.5.5 2010-09-03 $
D:
D: setting network receive timeout to 60 seconds
[New Thread 0x81d4000 (LWP 100121)]

Program received signal SIGBUS, Bus error.
[Switching to Thread 0x81d4000 (LWP 100121)]
0x0805bafd in OFStandard::strlcpy ()
(gdb)
hayhv

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

#4 Post by Jörg Riesmeier »

Could you please also try "gdb storescp core"? And, compiling the DCMTK with debug mode enabled would also be useful ("./configure --enable-debug" :-)

hayhv
Posts: 7
Joined: Tue, 2009-04-14, 03:09
Contact:

#5 Post by hayhv »

I open file "config/include/dcmtk/config/cfunix.h" and comment 2 line

/* Define to 1 if you have the `strlcat' function. */
//#define HAVE_STRLCAT 1

/* Define to 1 if you have the `strlcpy' function. */
//#define HAVE_STRLCPY 1

#define __BSD_VISIBLE 1

and call command
make

cd dcmnet/apps

gdb storescp
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) run +xa -d -v 104
Starting program: /usr/src/dcmtk-3.5.5_20100903/dcmnet/apps/storescp +xa -d -v 104
warning: Unable to get location for thread creation breakpoint: generic error
[New LWP 100106]
I: DcmDataDictionary: Loading file: /usr/local/share/dcmtk/dicom.dic


on the terminal client

Server# ./storescu localhost 104 CT-MONO2-16-brain.dcm
I: DcmDataDictionary: Loading file: /usr/local/share/dcmtk/dicom.dic
Server# findscu -P -k 0010,0010="Anonymized" localhost 104
E: No Acceptable Presentation Contexts
E: 0006:0208 DIMSE No valid Presentation Context ID

on the terminal server

I: Association Received
I: Association Acknowledged (Max Send PDV: 16372)
I: (but no valid presentation contexts)
I: Association Aborted
I: Association Received
I: Association Acknowledged (Max Send PDV: 16372)
I: Association Aborted
I: Association Received
I: Association Acknowledged (Max Send PDV: 16372)
I: Received Store Request: MsgID 1, (CT)
RECV: .................................
I: storing DICOM file: ./CT.2.16.840.1.113662.2.1.4519.41582.4105152.419990505.410523251
I: Association Release

I: Association Received
I: Association Acknowledged (Max Send PDV: 16372)
I: (but no valid presentation contexts)
I: Association Aborted


Could you help me.
hayhv

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

#6 Post by Jörg Riesmeier »

Does that mean that strlcat() and/or strlcpy() are not working as expected on your system? Where exactly is the core dump occurring.
E: No Acceptable Presentation Contexts
Of course, storescp does not support any of the SOP Classes proposed by findscu.

hayhv
Posts: 7
Joined: Tue, 2009-04-14, 03:09
Contact:

#7 Post by hayhv »

Thank you very much.

can that strlcat() and/or strlcpy() are not working as expected on my system?


I want to buy a full license for the use of servers and workstations.
With the following functions:
- The server will store DICOM images from your City-scan, MRI, Xray .. submitted.
- The client will query the DICOM images from the server through patient id or the patient name or any where.
my program will read the DICOM file and display it.
Could you send me price list to e-mail address: hayhv.vimes @ gmail.com?
hayhv

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

#8 Post by Jörg Riesmeier »

can that strlcat() and/or strlcpy() are not working as expected on my system?
What do you mean by that? My question was: Where is the storescp crashing.
I want to buy a full license for the use of servers and workstations.
There is no need to buy a license since all you need is part of the freely available DCMTK: storescp or dcmqrscp for the server part and findscu/movescu for the client part.

Post Reply

Who is online

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