Re: collecting "oobs" message for user applications (WAS: Re: stack trace without core)
- From: David Schwartz <davids@xxxxxxxxxxxxx>
- Date: Sat, 23 Jun 2007 18:05:53 -0700
On Jun 22, 8:58 pm, RezaRob <Reza...@xxxxxxxxx> wrote:
Sorry I didn't clarify this: It's okay for the main process to be
killed; however, it's core may be gigabytes huge, and I only want a
small "stack trace."
Did you read the part about using __builtin_return_address and dladdr?
Really, I want some kind of "oobs!" message, like the one the kernel
dumps. I guess a signal handler can just copy the stack into a "core"
file, but then, how do you prevent gdb from complaining "this is not a
core file?"
Can you ship an executable with symbols that's dynamically linked? In
that case, just call 'dladdr'.
DS
.
- Follow-Ups:
- References:
- stack trace without core
- From: RezaRob
- Re: stack trace without core
- From: Jasen
- Re: stack trace without core
- From: RezaRob
- Re: stack trace without core
- From: David Schwartz
- collecting "oobs" message for user applications (WAS: Re: stack trace without core)
- From: RezaRob
- stack trace without core
- Prev by Date: Re: My way to check if a progam is already running
- Next by Date: Re: collecting "oobs" message for user applications (WAS: Re: stack trace without core)
- Previous by thread: collecting "oobs" message for user applications (WAS: Re: stack trace without core)
- Next by thread: Re: collecting "oobs" message for user applications (WAS: Re: stack trace without core)
- Index(es):
Relevant Pages
|