* [uml-devel] Kernel Panic
@ 2003-10-28 22:02 Torsten Boob
2003-10-29 1:15 ` Jeff Dike
0 siblings, 1 reply; 2+ messages in thread
From: Torsten Boob @ 2003-10-28 22:02 UTC (permalink / raw)
To: user-mode-linux-devel
Hi,
i have a problem that i cant solve.
I'm coding a Module using UML. That module calls
tcp_alloc_pskb()
inside the kernel. That function allocates memory for a socket buffer inside the network sending path used inside the kernel.
But iam calling it inside my module.
But calling it in my module gives me a:
Kernel panic: Kernel mode fault at addr 0x28, ip 0xa003d050
And then the whole UML goes down. No chance to make a backtrace, because gdb is killed too.
While playing with breakpoints i got that message, but only one time:
0xa0109d14 in sig_handler (sig=-1610608640, sc= {gs = 1024, __gsh = 0, fs = 64304, __fsh = 40959, es = 53718, __esh = 16406, ds = 28232, __dsh = 16417, edi = 1075922592, esi = 1075922592, ebp = 1073912488, esp = 1, ebx = 0, edx = 1073911876, ecx = 8, eax = 2, trapno = 2684353328, err = 1075922600, eip = 1412, cs = 18080, __csh = 16417, eflags = 0, esp_at_signal = 2684353276, ss = 9185, __ssh = 16405, fpstate = 0x9ffffb30, oldmask = 12, cr2 = 1075908832}) at trap_user.c:105 105 } (gdb)
That gave me the hint, that it could possibly a uml specific problem.
Can anybody please help me to solve my problem ?
Is there any chance to make a backtrace even if gdb was completly killed ?
What does that error message mean ? Where can i start searching for the error ?
Or any other ideas ?
Many Thanks
Torsten Boob
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [uml-devel] Kernel Panic
2003-10-28 22:02 [uml-devel] Kernel Panic Torsten Boob
@ 2003-10-29 1:15 ` Jeff Dike
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2003-10-29 1:15 UTC (permalink / raw)
To: Torsten Boob; +Cc: user-mode-linux-devel
ddflatrate@web.de said:
> Kernel panic: Kernel mode fault at addr 0x28, ip 0xa003d050
Well, 'i sym *0xa003d050' will tell you where the segfault happened, at
least.
> And then the whole UML goes down. No chance to make a backtrace,
> because gdb is killed too.
Hummm, that seems bad. Any more info on that?
One thing I do when gdb isn't useful, and I know where I want to stop, is
put a 'printk("something\n"); while(1) ;' there, and just run UML with no
debugger.
When it stops:
if you're using skas mode, just attach gdb to it
if you're using tt mode, do the following
kill -STOP the 'R' UML process
kill -9 the tracing thread
attach gdb to the -STOPped process
Either way, you've got your stack trace.
Jeff
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-29 1:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-28 22:02 [uml-devel] Kernel Panic Torsten Boob
2003-10-29 1:15 ` Jeff Dike
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.