Re: segfault on exit?




On Oct 26, 2004, at 9:04 PM, Daniel Kasak wrote:

[snip stack trace from binaries without debugging symbols]

Is this all you need? I compile everything with -O3 here, and I've read that this makes debugging harder. I can recompile with -O2 if necessary - I have no idea what the above is talking about, but there are a lot of ?? () ... maybe this is the reason?

-O3 unrolls loops, inlines functions, and reorders assembly instructions for better performance, and those things can make debugging difficult.

the reason you have a lot of ??() and such is that none of your binaries have been built with -g, which enables gdb debugging info (debugging info makes the binaries a lot bigger) --- which means that trace isn't very helpful at all.

if you can send me your script off-list (preferably the smallest version of the script that still exhibits the problem), i'll see if i can reproduce it here on my system with all the debugging stuff available.

--
Without treatment, a common cold will last about seven days.
With treatment, it will last about a week.
  -- conventional wisdom




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]