Operating System - Linux
1752802 Members
5164 Online
108789 Solutions
New Discussion

Re: Wondering how to create linker map?

 
Dennis Handly
Acclaimed Contributor

Re: Wondering how to create linker map?

>I don't know the signal would be when it crashes. I tried SIGQUIT, but it wasn't. What I would like to do is whenever it crashes, it creates a stack trace.

You can use a debugger to figure out the signal. Also "file core" should tell you the signal.

You could call U_STACK_TRACE() from your signal handler. You must arm your handler for the signals you expect to catch. The latest version of libunwind will print the signal #.