Re: Linux 2.6.24-rc7 kernel BUG at kernel/sched.c:5156!

From: Kamalesh Babulal
Date: Mon Jan 07 2008 - 07:14:09 EST


Hi,

When booting the 2.6.24-rc7 kernel on the powerpc, kernel bug at
kernel.sched.c is triggered

[ 0.000000] Kernel command line: ro console=hvc0 rhgb quiet root=LABEL=/
[ 0.149567] BUG: scheduling while atomic: kthreadd/2/0x0006f34c
[ 0.149655] BUG: scheduling while atomic: kthreadd/3/0xbe0d8168
[ 0.149714] ------------[ cut here ]------------
[ 0.149722] kernel BUG at kernel/sched.c:5156!
cpu 0x0: Vector: 700 (Program Check) at [c0000001be0dbd70]
pc: c00000000006c090: .migration_thread+0x64/0x31c
lr: c00000000008e348: .kthread+0x78/0xc4
sp: c0000001be0dbff0
msr: 8000000000029032
current = 0xc0000000ee11ccc0
paca = 0xc000000000532d00
pid = 3, comm = kthreadd
kernel BUG at kernel/sched.c:5156!
enter ? for help
[c0000001be0dc0b0] c00000000008e348 .kthread+0x78/0xc4
[c0000001be0dc140] c00000000002a550 .kernel_thread+0x4c/0x68

0:mon> t
[c0000001be0dc0b0] c00000000008e348 .kthread+0x78/0xc4
[c0000001be0dc140] c00000000002a550 .kernel_thread+0x4c/0x68
0:mon> r
R00 = 0000000000000001 R16 = 4000000001c00000
R01 = c0000001be0dbff0 R17 = c000000000403920
R02 = c0000000006072f8 R18 = 0000000000000000
R03 = 0000000000000000 R19 = 000000000019b000
R04 = c0000000ee11ccc0 R20 = c0000000004c9550
R05 = 0000000000000000 R21 = 00000000020c9550
R06 = c000000000532d00 R22 = 00000000020c97c0
R07 = c0000001be0d81b0 R23 = c0000000004c97c0
R08 = 0000000000000000 R24 = 00000000018bf8d0
R09 = c0000000ee11ccbf R25 = 0000000000000000
R10 = fffffffffffffffc R26 = c0000000006a4968
R11 = c000000000532d00 R27 = c0000000006a00b0
R12 = c00000000002a550 R28 = c0000000ee143c98
R13 = c000000000532d00 R29 = c000000000f35b80
R14 = 0000000000000000 R30 = c0000000005b4190
R15 = c0000000004050a0 R31 = c0000000005cf910
pc = c00000000006c090 .migration_thread+0x64/0x31c
lr = c00000000008e348 .kthread+0x78/0xc4
msr = 8000000000029032 cr = 28000024
ctr = c00000000006c02c xer = 0000000020000004 trap = 700

(gdb) p kthread
$1 = {int (void *)} 0xc00000000008e2d0 <kthread>
(gdb) p/x 0xc00000000008e2d0+0x78
$2 = 0xc00000000008e348
(gdb) l *0xc00000000008e348
0xc00000000008e348 is in kthread (kernel/kthread.c:78).
73 __set_current_state(TASK_UNINTERRUPTIBLE);
74 complete(&create->started);
75 schedule();
76
77 if (!kthread_should_stop())
78 ret = threadfn(data);
79
80 /* It might have exited on its own, w/o kthread_stop. Check. */
81 if (kthread_should_stop()) {
82 kthread_stop_info.err = ret;


--
Thanks & Regards,
Kamalesh Babulal,
Linux Technology Center,
IBM, ISTL.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/