[ask for help] threaded app crashes with pretty null backtrace.
Carlos O'Donell
carlos@systemhalted.org
Thu Mar 22 15:27:00 GMT 2012
2012/3/22 Paweł Sikora <pluto@agmk.net>:
> i'd like to ask glibc's hackers if the glibc has some internal machinery
> to debug threads or guard stacks? i have a buggy application which crashes
> in ugly way. gdb and valgrind didn't help :(
Start by strace-ing the application e.g. strace -ttt -ff -o
tracelog.txt <application>.
Start by looking at the system calls made by the application and note
where the thread dies.
Then you might try latrace (http://people.redhat.com/jolsa/latrace/index.shtml).
Start by looking at the library calls made by the application and note
where the thread dies.
Then work backwards and set breakpoints everywhere you think there
might be problems.
Start inspecting input arguments and program behaviour.
You can always script gdb by passing `-x <script file>' with
pre-canned gdb commands.
I once had script file with a million `step instruction' commands to
watch the behaviour of the dynamic linker at the instruction level.
Cheers,
Carlos.
More information about the Libc-alpha
mailing list