[Bug 266841] New: crash procues wrong backtrace on LKCD dump
https://bugzilla.novell.com/show_bug.cgi?id=266841 Summary: crash procues wrong backtrace on LKCD dump Product: openSUSE 10.3 Version: Alpha 3 Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Kernel AssignedTo: bwalle@novell.com ReportedBy: bwalle@novell.com QAContact: qa@suse.de CC: jdelvare@novell.com While debugging /suse/jdelvare/bug/251735/7 we found that 'crash' produces a corrupt backtrace while lcrash shows the right one. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $ crash ~jdelvare/bug/251735/root/boot/vmlinux-2.6.5-7.283.TEST.251735.0-smp \ ~jdelvare/bug/251735/root/usr/lib/debug/boot/vmlinux-2.6.5-7.283.TEST.251735.0-smp \ ~jdelvare/bug/251735/7/dump.7 crash> bt PID: 0 TASK: 1000445c9a0 CPU: 1 COMMAND: "swapper" #0 [10004461e70] schedule at ffffffff801396c3 #1 [10004461f18] mwait_idle at ffffffff8010f18e #2 [10004461f48] cpu_idle at ffffffff8010f67a - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - $ cd /suse/jdelvare/bug/251735/7 $ /sbin/lcrash -n 7
bt ================================================================ STACK TRACE FOR TASK: 0x1000445c9a0(swapper)
0 snap_rcv+104 [0xffffffff802fbfc8] 1 llc_rcv+462 [0xffffffff802fb61e] 2 netif_receive_skb+541 [0xffffffff802ede5d] 3 recalc_task_prio+938 [0xffffffff801346aa] 4 activate_task+123 [0xffffffff8013544b] 5 net_rx_action+132 [0xffffffff802ecd34] 6 __do_softirq+83 [0xffffffff80142cb3] 7 do_softirq+53 [0xffffffff80142d45] 8 do_IRQ+317 [0xffffffff80113dcd] 9 mwait_idle [0xffffffff8010f130] 10 ret_from_intr [0xffffffff80110ba7] 11 mwait_idle [0xffffffff8010f130] ================================================================ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=266841 bwalle@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #1 from bwalle@novell.com 2007-04-21 03:12 MST ------- I found out that lcrash fetches the registers (i.e. EIP/RIP and ESP/RSP) using the register information of the dump, and crash fetches the registers using some kind of guessing on the stack. crash failes. ;-) ESP/RSP is critical for the backtrace because it's the starting point for the callstack. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=266841 ------- Comment #2 from bwalle@novell.com 2007-04-21 03:14 MST ------- Created an attachment (id=132991) --> (https://bugzilla.novell.com/attachment.cgi?id=132991&action=view) (First) version of a patch to fix this This patch fixes the problem. TODO: - implement for other architectures than x86_64 - check if it doesn't break something else :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=266841 jdelvare@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|crash procues wrong |crash produces wrong backtrace on LKCD dump |backtrace on LKCD dump | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=266841
Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=266841#c7
Bernhard Walle
https://bugzilla.novell.com/show_bug.cgi?id=266841#c8
--- Comment #8 from Jean Delvare
participants (1)
-
bugzilla_noreply@novell.com