Mercurial > hg > orthanc-book
comparison Sphinx/source/faq/crash.rst @ 240:ea82efa0885a
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 27 Apr 2019 16:49:38 +0200 |
parents | a162fa200a13 |
children | f277d18e8d71 |
comparison
equal
deleted
inserted
replaced
239:a162fa200a13 | 240:ea82efa0885a |
---|---|
73 backtrace (the famous "core dumped" message) that can be analyzed by | 73 backtrace (the famous "core dumped" message) that can be analyzed by |
74 any developer of Orthanc. Assuming that the :ref:`plugin above | 74 any developer of Orthanc. Assuming that the :ref:`plugin above |
75 <segfault-plugin>` is available as the ``crash.cpp`` file, here is a | 75 <segfault-plugin>` is available as the ``crash.cpp`` file, here is a |
76 sample debug session:: | 76 sample debug session:: |
77 | 77 |
78 $ wget http://orthanc.osimis.io/lsb/orthanc-debug/releases/1.5.6/Orthanc | 78 $ wget http://lsb.orthanc-server.com/orthanc/debug/1.5.6/Orthanc |
79 $ chmod +x ./Orthanc | 79 $ chmod +x ./Orthanc |
80 $ gcc -fPIC -shared ./crash.cpp -I ~/orthanc/Plugins/Include -o crash.so | 80 $ gcc -fPIC -shared ./crash.cpp -I ~/orthanc/Plugins/Include -o crash.so |
81 $ ulimit -c unlimited | 81 $ ulimit -c unlimited |
82 $ echo '{ "Plugins" : ["crash.so"] }' > Configuration.json | 82 $ echo '{ "Plugins" : ["crash.so"] }' > Configuration.json |
83 $ rm -f core ; ./Orthanc Configuration.json | 83 $ rm -f core ; ./Orthanc Configuration.json |