Mercurial > hg > orthanc-book
comparison Sphinx/source/faq/crash.rst @ 763:4e9dc26a5cb9 Orthanc-1.9.7
Orthanc 1.9.7
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 31 Aug 2021 11:24:43 +0200 |
parents | 97e6a0431c5e |
children | 01fa632daae9 |
comparison
equal
deleted
inserted
replaced
762:b3fe7b0a09fc | 763:4e9dc26a5cb9 |
---|---|
62 to generate a backtrace (the famous "core dumped" message) that can be | 62 to generate a backtrace (the famous "core dumped" message) that can be |
63 analyzed by any developer of Orthanc. Assuming that the :ref:`plugin | 63 analyzed by any developer of Orthanc. Assuming that the :ref:`plugin |
64 above <segfault-plugin>` is available as the ``crash.cpp`` file, here | 64 above <segfault-plugin>` is available as the ``crash.cpp`` file, here |
65 is a sample debug session:: | 65 is a sample debug session:: |
66 | 66 |
67 $ wget https://lsb.orthanc-server.com/orthanc/debug/1.9.6/Orthanc | 67 $ wget https://lsb.orthanc-server.com/orthanc/debug/1.9.7/Orthanc |
68 $ chmod +x ./Orthanc | 68 $ chmod +x ./Orthanc |
69 $ gcc -fPIC -shared ./crash.cpp -I ~/orthanc/Plugins/Include -o crash.so | 69 $ gcc -fPIC -shared ./crash.cpp -I ~/orthanc/Plugins/Include -o crash.so |
70 $ ulimit -c unlimited | 70 $ ulimit -c unlimited |
71 $ echo '{ "Plugins" : ["crash.so"] }' > Configuration.json | 71 $ echo '{ "Plugins" : ["crash.so"] }' > Configuration.json |
72 $ rm -f core ; ./Orthanc Configuration.json | 72 $ rm -f core ; ./Orthanc Configuration.json |
73 W0427 15:43:24.215783 main.cpp:1436] Orthanc version: 1.9.6 | 73 W0427 15:43:24.215783 main.cpp:1436] Orthanc version: 1.9.7 |
74 W0427 15:43:24.215910 main.cpp:1279] Performance warning: Non-release build, runtime debug assertions are turned on | 74 W0427 15:43:24.215910 main.cpp:1279] Performance warning: Non-release build, runtime debug assertions are turned on |
75 W0427 15:43:24.217585 OrthancConfiguration.cpp:61] Reading the configuration from: "Configuration.json" | 75 W0427 15:43:24.217585 OrthancConfiguration.cpp:61] Reading the configuration from: "Configuration.json" |
76 W0427 15:43:24.254733 main.cpp:700] Loading plugin(s) from: crash.so | 76 W0427 15:43:24.254733 main.cpp:700] Loading plugin(s) from: crash.so |
77 W0427 15:43:24.254866 PluginsManager.cpp:269] Registering plugin 'crash' (version 0.0) | 77 W0427 15:43:24.254866 PluginsManager.cpp:269] Registering plugin 'crash' (version 0.0) |
78 Segmentation fault (core dumped) | 78 Segmentation fault (core dumped) |