Application crashes when using DCMTK 3.6.7 in Catalina and Big Sur OS

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
JideshSK
Posts: 3
Joined: Thu, 2024-01-11, 10:11

Application crashes when using DCMTK 3.6.7 in Catalina and Big Sur OS

#1 Post by JideshSK »

HI All,

I am developing MAC application using DCMTK 3.6.7. Application works fine in Sonoma(Mac OS14), Ventura(Mac OS13) and Monterey(Mac OS12) OSs. But fails in Catalina(Mac OS10.5) and Big Sur(Mac OS11).The crash occurs
at following class. The development tool is Xcode 15.0.1
0x0000000107468acc DcmElement::read(DcmInputStream&, E_TransferSyntax, E_GrpLenEncoding, unsigned int) + 1452
Exception Codes: EXC_I386_GPFLT
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb

Anyone has any idea on this? if you can give any leads will be helpful.

Thanks,
Jidesh SK

Michael Onken
DCMTK Developer
Posts: 2059
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Application crashes when using DCMTK 3.6.7 in Catalina and Big Sur OS

#2 Post by Michael Onken »

Hi,

I don't know of any problems, maybe you can did not completely recompile? You could check in the debugger to find out what exactly causes the crash.
3.6.7 has originally been tested on MacOS X 10.15 (amd64|x86_64) using Apple Clang 11.0.0 and GNU gcc 9.2.0.

Note that we released 3.6.8 a few days ago. You can download it here: https://dicom.offis.de/download/dcmtk/dcmtk368/ (or check out source code/tag directly). It has been tested on MacOS X 13.4 (amd64|x86_64) with Apple Clang 14.0.3 and GNU gcc 13.1.0, as well as Mac OS X 13.4.1 (arm64) using Apple Clang 15.0.0.

Best regards,
Michael

JideshSK
Posts: 3
Joined: Thu, 2024-01-11, 10:11

Re: Application crashes when using DCMTK 3.6.7 in Catalina and Big Sur OS

#3 Post by JideshSK »

HI Michael,

I have compiled the code DCMTK3.6.7 and tried. Still crash occurs in Catalina and Big Sur. My question is why same code does not crash in newer OSs like Sonoma and Ventura?

Following is taken from crash log.

crashed Thread:        0  Dispatch queue: com.apple.main-thread
 
Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY
 
Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [822]
 
VM Regions Near 0:
--> 
    __TEXT                 00000001073f6000-0000000107b22000 [ 7344K] r-x/r-x SM=COW  /var/folders/*/LivingImage-6.app/Contents/MacOS/XXXX
 
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   ???                             000000000000000000 0 + 0
1   lidicom.dylib                   0x000000010d784adc DcmElement::read(DcmInputStream&, E_TransferSyntax, E_GrpLenEncoding, unsigned int) + 1452


Thanks,
Jidesh SK

Michael Onken
DCMTK Developer
Posts: 2059
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Application crashes when using DCMTK 3.6.7 in Catalina and Big Sur OS

#4 Post by Michael Onken »

Can't tell.... :roll:
Try DCMTK 3.6.8 to make sure it's not something we have fixed -- if its a DCMTK issue.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1462
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

Re: Application crashes when using DCMTK 3.6.7 in Catalina and Big Sur OS

#5 Post by Marco Eichelberg »

Otherwise, compile a debug version and execute it in a debugger. The debugger will normally show exactly the place where the crash happens (unless something like a stack corruption happens).

JideshSK
Posts: 3
Joined: Thu, 2024-01-11, 10:11

Re: Application crashes when using DCMTK 3.6.7 in Catalina and Big Sur OS

#6 Post by JideshSK »

This worked when Xcode is updated to 15.2. This problem was a known issue in Xcode 15.0. Thanks for your response. Not an issue of DCMTK3.6.7.

Thanks,
Jidesh SK

Post Reply

Who is online

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