From: Philippe W. <phi...@sk...> - 2012-06-07 17:37:58
|
On Wed, 2012-06-06 at 16:08 -0700, Sunny Das wrote: > I went ahead and ripped all the 8 functions out and replaced the > part which does backdoor assembly into their own functions with correct signature, > handling the returns properly. And I went past that issue of backdoor. That is good news. > > Now, I am running into another weird issue where valgrind crashed > somewhere and I can't figure out where because the backtrace is > all '??'. This happens even if I run the program inline inside > the gdb. valgrind was built with splitdebug in gentoo and so was glibc. > The valgrind debug symbols are all in /usr/lib/debug/usr/lib64/valgrind/ > and /usr/lib/debug/usr/bin/valgrind.debug and glibc debug symbols are > in/usr/lib/debug/lib64. Why is gdb refusing to give me a proper backtrace? Might be because the problem happens in JITted code (i.e. the code dynamically generated by Valgrind starting from your application code). GDB then does not have any information about what these program counters could be. Now, if Valgrind is "internally" crashing, usually (at least for me), it outputs a nice crash message, giving its own backtrace, and a backtrace for all the "application threads". It would help to have some info such as: * which Valgrind version * what is the exact crash message you get If you obtain no stacktrace at all, I would suggest to avoid compiling V with separate debug info. Philippe |