Subj : Re: Stack Tracing in multi-threaded programs To : comp.programming.threads From : Paul Pluzhnikov Date : Mon May 23 2005 08:14 am suman writes: > My doubt is what happens to > the ebp-structure in case of a multi-threaded program. Is it the same > as a non-threaded case Yes. > or this ebp structure gets destroyed!! No. > Can i use the same stack-dumper for multi-threaded programs also?? You should be able to, provided your stack_dump() knows how to deal with functions that do not have a frame pointer (optimized or assembly-coded functions). > In case of non-threared programs the stack trace looks like this > > read > __libc_start_main > main .... The level above __libc_start_main() is bogus, so your stack_dump() does not know how to deal with at least that case. What does your stack trace look like in the MT case? Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. .