profiling crashes my code

Wolfgang Thaller
Thu, 2 May 2002 09:40:31 +0200

Hal Daume wrote:
>I'm in a profiling kind of mood [...]
>[...] it seg faults.
>Here are some "unusual" things I'm doing; hopefully someone will be able
>to say "oh, there's your problem":
>  - i'm only compiling the main program with profiling

"Oh, there's your problem"

Ketil Z. Malde wrote:
>I've made is that it's not a good idea to mix modules compiled with
>profiling and modules compiled without.

Exactly. It's a really bad idea, as the run-time system uses 
different (read: incompatible) data structures for profiling. It's 
just a coincidence that some simple programs seem to run sometimes...

Wolfgang Thaller