storescp Bus error (core dumped)
Moderator: Moderator Team
storescp Bus error (core dumped)
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.
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
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
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)
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
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
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.
/* 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
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
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?
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
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
What do you mean by that? My question was: Where is the storescp crashing.can that strlcat() and/or strlcpy() are not working as expected on my system?
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.I want to buy a full license for the use of servers and workstations.
Who is online
Users browsing this forum: Google [Bot] and 1 guest