diff options
Diffstat (limited to 'docs/users_guide/debug-info.rst')
| -rw-r--r-- | docs/users_guide/debug-info.rst | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/users_guide/debug-info.rst b/docs/users_guide/debug-info.rst index 558da594a0..d1bd28c823 100644 --- a/docs/users_guide/debug-info.rst +++ b/docs/users_guide/debug-info.rst @@ -185,16 +185,21 @@ Stack trace functionality is exposed for use by Haskell programs in the :base-ref:`GHC.ExecutionStack.` module. See the Haddock documentation in this module for details regarding usage. -Requesting a stack trace with ``SIGUSR2`` +.. _backtrace_signal: + +Requesting a stack trace with ``SIGQUIT`` ----------------------------------------- On POSIX-compatible platforms GHC's runtime system (when built with ``libdw`` -support) will produce a stack trace on ``stderr`` when a ``SIGUSR2`` signal is -received. For instance (using the same ``fib.hs`` as above), +support) will produce a stack trace on ``stderr`` when a ``SIGQUIT`` signal is +received (on many systems this signal can be sent using :kbd:`Ctrl-\\`). For +instance (using the same ``fib.hs`` as above), .. code-block:: sh - $ ./fib & killall -SIGUSR2 fib + $ ./fib & killall -SIGQUIT fib + + Caught SIGQUIT; Backtrace: 0x7f3176b15dd8 dwfl_thread_getframes (/usr/lib/x86_64-linux-gnu/libdw-0.163.so) 0x7f3176b1582f (null) (/usr/lib/x86_64-linux-gnu/libdw-0.163.so) 0x7f3176b15b57 dwfl_getthreads (/usr/lib/x86_64-linux-gnu/libdw-0.163.so) |
