Hi I have the following crash while debugging using remote gdb and kgdb . Any one has an idea How to proceed . I am passing the
kernel parameter as kgdbwait. I get this crash only when I use kgdb . If I don't select kgdb there is no crash .


CPU 0 Unable to handle kernel paging request at virtual address 00000010, epc == 8010cd34, ra == 80102ec0
Oops[#1]:
Cpu 0
00000000 00000000 80100000 00000000 00000002
00000000 00000000 00000000 803444e8 803444e8
00020000 00020000 00000002 00000000 00000000
803c1b79 803c1b79 00000001 ffffffff 00000000
803c1b5d 803c1b5d 0080dc1c 803bfce0 84250000
80350000 80350000 80350000 80350000 80360000
ffffffff ffffffff 8034bf34
803c0000 803c0000 803c19c0 0080d808 80102ec0
Hi : 00030ccc
Lo : ed040000
epc : 8010cd34 smp_call_function_interrupt+0x20/0xa0 Not tainted
ra : 80102ec0 ret_from_exception+0x0/0x10
Status: 10005f02 KERNEL EXL
Cause : 0080c408
BadVA : 00000010
PrId : 01040102
Modules linked in:
Process swapper (pid: 0, threadinfo=803c0000, task=803c21b0)
Stack : 80350000 80109740 00000000 00000000 803c1b5d 0080dc1c 803bfce0 80350000
80102ec0 80102ec0 84250000 1000001f 84248104 8564bf80 00989642 85fd5600
00000000 80100000 0000000a a010226c 00000001 00000043 00000000 00000000
10005f01 1000001f 00000000 00000000 803c1b79 00000001 ffffffff 00000000
803c1b5d 0080dc1c 803bfce0 80350000 80350000 80350000 80350000 80360000
...
Call Trace:
[<80109740>] ll_timer_interrupt+0xa8/0xec
[<80102ec0>] ret_from_exception+0x0/0x10
[<80102ec0>] ret_from_exception+0x0/0x10
[<8010d0f0>] handle_sys+0x90/0xcc
[<80130458>] __do_softirq+0x34/0x64
[<80130310>] ___do_softirq+0x94/0x1a8
[<80137194>] update_process_times+0x5c/0x90
[<80130458>] __do_softirq+0x34/0x64
[<801629f0>] __alloc_pages+0xa4/0x3bc
[<801629f0>] __alloc_pages+0xa4/0x3bc
[<8011f5b8>] __activate_task+0x30/0x68
[<801556a0>] kgdb_handle_exception+0xe84/0x1454
[<80155674>] kgdb_handle_exception+0xe58/0x1454
[<8017cba4>] cache_alloc_refill+0xc4/0x65c
[<8011fac8>] find_busiest_group+0x1b0/0x50c
[<80121df0>] try_to_wake_up+0x3bc/0x4d4
[<80121df0>] try_to_wake_up+0x3bc/0x4d4
[<80130334>] ___do_softirq+0xb8/0x1a8
[<80130460>] __do_softirq+0x3c/0x64
[<80130458>] __do_softirq+0x34/0x64
[<80100434>] init+0x0/0x454
[<801105e4>] sb1_flush_icache_page_ipi+0x0/0x1c0
[<8010cd6c>] smp_call_function_interrupt+0x58/0xa0
[<80109740>] ll_timer_interrupt+0xa8/0xec
[<8013081c>] irq_exit+0x6c/0x84
[<80102ec0>] ret_from_exception+0x0/0x10
[<80102ec0>] ret_from_exception+0x0/0x10
[<80104fc0>] cpu_idle+0x48/0xa4
[<801538e0>] kgdb_nmihook+0x30/0x180
[<80434a04>] start_kernel+0x3b4/0x42c
[<804349fc>] start_kernel+0x3ac/0x42c
[<804342c8>] unknown_bootoption+0x0/0x314
[<8010e3a4>] handle_exception+0xa0/0xe8


Code: afb20018 afb10014 afb00010 <8c520010> 8c510000 8c500004 0000000f 8e62bb64 c0430008



Also if I boot the kerenl with no options I get the following crash.


Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
RAMDISK driver initialized: 16 RAM disks of 30720K size 1024 blocksize
loop: loaded (max 8 devices)
eth0: enabling TCP rcv checksum
eth0: SiByte Ethernet at 0x10066000, address: 00:00:04:00:00:00
i2c /dev entries driver
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
IPv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Bridge firewalling registered
NET: Registered protocol family 5
Time: MIPS clocksource has been installed.
Freeing unused kernel memory: 63568k freed
Warning: unable to open an initial console.
Setting context to 0
Kernel panic - not syncing: Attempted to kill init!
Call Trace:
[<80128c00>] panic+0x78/0x1d8
[<80128be8>] panic+0x60/0x1d8
[<8012d6a8>] do_exit+0x7ac/0xab0
[<8012d9f0>] do_group_exit+0x44/0xa4
[<8010d14c>] stack_done+0x20/0x3c







sha.