Re: Printing stacktrace on segfault

2012-03-29 Thread simendsjo
On Tue, 27 Mar 2012 16:30:01 +0200, David wrote: Am 27.03.2012 12:04, schrieb simendsjo: Is there a way to print a stacktrace on segfaults on linux? I haven't found one, but you can use gdb, the only thing you've to do is to compile with -g and -gc (or you use gdc) Thanks. Using only -g

Re: Printing stacktrace on segfault

2012-03-27 Thread Jérôme M. Berger
simendsjo wrote: > Is there a way to print a stacktrace on segfaults on linux? catchsegv (part of glibc, so should be available on just about all Linux distros...) Jerome -- mailto:jeber...@free.fr http://jeberger.free.fr Jabber: jeber...@jabber.fr signature.asc Descri

Re: Printing stacktrace on segfault

2012-03-27 Thread Jonathan M Davis
On Tuesday, March 27, 2012 12:04:59 simendsjo wrote: > Is there a way to print a stacktrace on segfaults on linux? You can do it if you install a signal handler for sigsegv and use backtrace_symbols to construct a stacktrace. Or you can just run the program in gdb or turn core dumps on and use g

Re: Printing stacktrace on segfault

2012-03-27 Thread David
Am 27.03.2012 12:04, schrieb simendsjo: Is there a way to print a stacktrace on segfaults on linux? I haven't found one, but you can use gdb, the only thing you've to do is to compile with -g and -gc (or you use gdc)

Printing stacktrace on segfault

2012-03-27 Thread simendsjo
Is there a way to print a stacktrace on segfaults on linux?