Re: Kernel backtrace possiblities



On Mar 31, 1:25 pm, "dspfun" <dsp...@xxxxxxxxxxx> wrote:
Hi!

Does anyone know of some good ways (or any ways) to get kernel
backtraces from a linux kernel?

I have tried using/calling the function show_trace_task() and it seem
to work on all threads except the "current" thread which is the thread
I'm interested in.

I'm using 2.4.18 kernel.

You want a trace on the kernel part or user part? For kernel part, the
back trace you can find in
arch/i386/kernel/traps.c, but for user space part, a glibc API
backtrace() is provided, but not very powerful, the gdb can help do
the backtrace much better.

.



Relevant Pages

  • Re: Repeated panics...Suspect USB issues
    ... > I'm trying to get a backtrace. ... I've built a kernel with all the right bits, ... > obtain a trace, panic the machine, etc...But I don't think I can obtain a good ... Josh Tolbert ...
    (freebsd-stable)
  • Re: first kernel panic
    ... Backtrace, Format - Frame: Return Address (4 potential args on ... Kernel loadable modules in backtrace: ... Contrast that with the way Maccies act as if the occasional BSOD ... "If you raise the ceiling four feet, move the fireplace from that wall ...
    (comp.sys.mac.advocacy)
  • Re: first kernel panic
    ... Backtrace, Format - Frame: Return Address (4 potential args on ... Kernel loadable modules in backtrace: ... Contrast that with the way Maccies act as if the occasional BSOD ... "If you raise the ceiling four feet, move the fireplace from that wall ...
    (comp.sys.mac.advocacy)
  • Re: first kernel panic
    ... Backtrace, Format - Frame: Return Address (4 potential args on ... Kernel loadable modules in backtrace: ... Mac OS version: ... Contrast that with the way Maccies act as if the occasional BSOD ...
    (comp.sys.mac.advocacy)
  • Re: first kernel panic
    ... Backtrace, Format - Frame: Return Address (4 potential args on ... Kernel loadable modules in backtrace: ... Now, I realize that there are more Windows machines out there than Macs, ...
    (comp.sys.mac.advocacy)