Re: debugging a multi-threaded program on linux.

From: Ed L Cashin (ecashin_at_uga.edu)
Date: 05/10/03


Date: Fri, 09 May 2003 22:49:47 -0400


"Michael B. Allen" <mba2000@ioplex.com> writes:

> On Fri, 09 May 2003 15:58:24 -0400, Jeff wrote:
>
>>> program on ret-hat linux ? another thing that might help me is a
>>> command that i could put in my code and that will print that current
>>> call stuck off my program, this way i could at least know when and from
>>> where am i getting into the code areas i sould not enter.
>
> 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?

You mean "bt"?

-- 
--Ed L Cashin     PGP public key: http://noserose.net/e/pgp/


Relevant Pages

  • [crash] Re: [PATCH 1/3] tracing/function-graph-tracer: introduce __notrace_funcgraph to filt
    ... Thread overran stack, or stack corrupted ... Not yet verified on this CPU type. ... The following trace is a kernel self test and not a bug! ... # CAN Device Drivers ...
    (Linux-Kernel)
  • Re: [PATCH] ftrace: Documentation
    ... This is one of the options that change the trace itself. ... the fact that there is no comma before the `that' implies that the rest ... The irqsoff tracer tracks the time interrupts are disabled to the time ... +is with the interrupts stack which has that to be false. ...
    (Linux-Kernel)
  • Re: Msimn.exe Has Generated Errors and Will Be Closed by Windows - Knowledge base no help!!!
    ... It's not just any Stack Back Trace you want to see. ... section in the dump below those interpreted instructions. ... >>> and message rules may have to be edited to point to correct mail folders and you will lose all subscribed newsgroups. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Fastest Date Sort
    ... With the QuickSort currently working in my app, I have to assume I'm not ... giving it anything that would cause this 'stack' overflow concern. ... >> Array of UDTs when the sort is completed. ...
    (comp.lang.basic.visual.misc)
  • 2.4.27 do_IRQ: stack overflow issues/questions
    ... into a set of kernel ring buffers at continuous rates of 32Mb/sec. ... The two pci cards on this system are on different pci busses. ... 200 stack overflows over 2.5 days, with none less than 800 bytes. ... Trace; c0142584 ...
    (Linux-Kernel)