Issue79

Title Orthanc process segfaults on -KILL signal on linux
Priority bug Status resolved
Superseder Nosy List admin
Assigned To
Keywords Orthanc Core

Created on 2018-01-30.15:48:39 by admin, last changed by admin.

Messages
msg357 (view) Author: admin Date: 2018-01-30.15:48:39
[BitBucket date: 2018-01-30.14:48:39]

Situation:
When sending the Orthanc process a kill signal, the process segfaults. e.g. kill <pid>
On CentOS 6 it segfaults with:
segfault at 7f091c880b60 ip 00007f091c880b60 sp 00007fff111c4fe8 error 14 in libModalityWorklists.so.1.3.0[7f091caf5000+114000]
On CentOS 7 with:
segfault at 7fbec4c671c0 ip 00007fbec4c671c0 sp 00007ffd75954a48 error 14 in libServeFolders.so.1.3.0[7fbec4edf000+10e000]

Orthanc 1.3.0 was build with these flags:
	-DCMAKE_BUILD_TYPE=Release \
	-DDCMTK_LIBRARIES=CharLS \
	-DSTANDALONE_BUILD=ON \
	-DSTATIC_BUILD=ON \
	-DALLOW_DOWNLOADS=ON \
	-DUSE_SYSTEM_SQLITE=OFF \
	-DUSE_SYSTEM_BOOST=OFF \
	-DUSE_SYSTEM_CURL=ON \
	-DUSE_SYSTEM_ZLIB=ON \
	-DUSE_SYSTEM_OPENSSL=ON \
	-DUSE_SYSTEM_DCMTK=OFF \
	-DSYSTEM_MONGOOSE_USE_CALLBACKS=OFF \
	-DUNIT_TESTS_WITH_HTTP_CONNEXIONS=OFF

Is this a known issue?
msg358 (view) Author: admin Date: 2018-01-30.16:06:34
[BitBucket user: Thomas Fromm]
[BitBucket date: 2018-01-30.15:06:34]

Sorry, forgot to login, before creating ticket.
msg359 (view) Author: admin Date: 2018-02-19.17:46:22
[BitBucket user: Sébastien Jodogne]
[BitBucket date: 2018-02-19.16:46:22]

I am unable to reproduce your issue with Orthanc 1.3.0 running on CentOS 6.9. Here are the build instructions I used for my test (note how your CMake invocation is bloated):

```
# cd ~/Releases/Orthanc-1.3.0
# mkdir ./Build
# cd ~/Releases/Orthanc-1.3.0/Build
# cmake .. -DCMAKE_BUILD_TYPE=Release -DSTATIC_BUILD=ON
# make
# ./Orthanc
W0219 17:44:38.238377 main.cpp:1269] Orthanc version: 1.3.0
W0219 17:44:38.239916 OrthancInitialization.cpp:221] Using the default Orthanc configuration
W0219 17:44:38.240143 FromDcmtkBridge.cpp:192] Loading the embedded dictionaries
W0219 17:44:38.256295 OrthancInitialization.cpp:499] Registering JPEG Lossless codecs
W0219 17:44:38.256316 OrthancInitialization.cpp:504] Registering JPEG codecs
W0219 17:44:38.264141 OrthancInitialization.cpp:1018] SQLite index directory: "/home/jodogne/Releases/Orthanc-1.3.0/Build/OrthancStorage"
W0219 17:44:38.264389 OrthancInitialization.cpp:1088] Storage directory: "/home/jodogne/Releases/Orthanc-1.3.0/Build/OrthancStorage"
W0219 17:44:38.264979 HttpClient.cpp:686] HTTPS will use the CA certificates from this file: /home/jodogne/Releases/Orthanc-1.3.0/Build
W0219 17:44:38.265304 ServerScheduler.cpp:135] The server scheduler has started
W0219 17:44:38.265602 LuaContext.cpp:103] Lua says: Lua toolbox installed
W0219 17:44:38.265689 ServerContext.cpp:182] Disk compression is disabled
W0219 17:44:38.265723 ServerIndex.cpp:1403] No limit on the number of stored patients
W0219 17:44:38.265738 ServerIndex.cpp:1420] No limit on the size of the storage area
W0219 17:44:38.271308 main.cpp:834] DICOM server listening with AET ORTHANC on port: 4242
W0219 17:44:38.271362 MongooseServer.cpp:1029] HTTP compression is enabled
W0219 17:44:38.275248 main.cpp:769] HTTP server listening on port: 8042
W0219 17:44:38.275275 main.cpp:656] Orthanc has started
<Send KILL signal>
W0219 17:44:44.336340 main.cpp:714] Orthanc is stopping
W0219 17:44:44.393449 main.cpp:774]     HTTP server has stopped
W0219 17:44:45.339549 main.cpp:850]     DICOM server has stopped
W0219 17:44:46.402939 main.cpp:1328] Orthanc has stopped
```
msg360 (view) Author: admin Date: 2018-02-19.17:47:09
[BitBucket user: Sébastien Jodogne]
[BitBucket date: 2018-02-19.16:47:09]

Tagging this issue as "invalid" for the time being. Don't hesitate to re-open it if needed.
History
Date User Action Args
2026-07-29 15:51:21admincreate