Re: debugging a multi-threaded program on linux.

From: Chris Markle (cmarkle_at_sendmail.com)
Date: 05/10/03


Date: Sat, 10 May 2003 02:31:35 GMT

All,

> If you use GNU C I'm certain there is a way to get a sort of stack
> trace. I recall a thread about it. Unfortunately I do not know the
> function/macro necessary to invoke it. Perhaps someone else can put a
> finger on it?

see glibc backtrace(), backtrace_symbols() and backtrace_symbols_fd()
functions (
http://www.gnu.org/manual/glibc-2.2.3/html_chapter/libc_33.html ). Or look
into libunwind although it is somewhat "green" and works best on ia64 (
http://www.hpl.hp.com/research/linux/libunwind/index.php4 ).

Chris



Relevant Pages

  • Re: Calling Invoke on a Form results in NullReference
    ... It showed me the Invoke call as the error. ... and the event handler, it showed me where the error really was. ... "Chris" wrote: ... > trace should tell you exactly where the error is. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: If you were inventing CoBOL...
    ... Recall is defined: b. ... INVOKE has no advantage over Inline Invocation. ... could store it into a numeric field according to the rules of MOVE (I ... it would be invalid to say 'compute ...
    (comp.lang.cobol)
  • Re: How to Raise an Event on a Different Thread
    ... BeginInvoke, but they both have their problems. ... Invoke does not return until the UI thread is free, ... when the UI thread is waiting for the worker thread to do something. ... I add them to the trace. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: equiv of LIB$GET_FOREIGN from DCL?
    ... >One HACK to get this is to use the recall buffer. ... from Unix to invoke the DCL script. ... is based on searchlists. ... invoked from the bottom level it should run the bottom-level versions of the ...
    (comp.os.vms)
  • Re: OOPS (NULL pointer dereference) in v2.6.22-rc3
    ... kernel: Call Trace: ... I think we've seen a report of that before. ... Do you recall what the system ...
    (Linux-Kernel)