comparison Sphinx/source/faq/crash.rst @ 358:011b01ccf52d

fixing external hyperlinks
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Mar 2020 18:47:35 +0200
parents a5f7fc9fb611
children 0fb9369e893e
comparison
equal deleted inserted replaced
357:6b432ce3a56e 358:011b01ccf52d
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 http://lsb.orthanc-server.com/orthanc/debug/1.6.0/Orthanc 67 $ wget https://lsb.orthanc-server.com/orthanc/debug/1.6.0/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