On Sat, Oct 4, 2014 at 3:14 AM, Gilles Chanteperdrix
<[email protected]> wrote:
> On Fri, Oct 03, 2014 at 11:28:52PM +0800, GP Orcullo wrote:
>> I've added BUG_ON(!hard_irqs_disabled()) to the code and got the
>> kernel to oops at startup.
>>
>> Where shall I start looking for the offending code?
>
> The thing is, all the tracepoints you have are late after the
> fault. A better strategy is to replace BUG_ON(!hard_irqs_disabled)
> with:
>
> if (!hard_irqs_disabled()) {
>    ipipe_trace_panic_freeze();
>    ipipe_trace_panic_dump();
>    BUG();
> }
>
> --
>                                             Gilles.

The results are almost similar.

-- 
GP Orcullo
-------------- next part --------------
[   15.550769] Unable to handle kernel NULL pointer dereference at virtual 
address 0000000c
[   15.553538] pgd = e6078000, hw pgd = e6078000
[   15.557960] [0000000c] *pgd=00000000
[   15.561285] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[   15.566436] Modules linked in: mii(+)
[   15.570060] CPU: 2    Not tainted  (3.8.13.11-xen #27)
[   15.575199] PC is at load_module+0x1908/0x1e18
[   15.579618] LR is at ipipe_root_only+0x58/0x160
[   15.584122] pc : [<c0079364>]    lr : [<c008f61c>]    psr: a0000053
[   15.584122] sp : e604feb0  ip : bf000c40  fp : c04c4c68
[   15.595586] r10: 00000000  r9 : bf000b34  r8 : 00000000
[   15.600772] r7 : fffffff8  r6 : bf000aec  r5 : bf000af8  r4 : e604ff58
[   15.607277] r3 : e6b98c00  r2 : e604fea8  r1 : c08c7ac0  r0 : 00000000
[   15.613782] Flags: NzCv  IRQs on  FIQs off  Mode SVC_32  ISA ARM  Segment 
user
[   15.620991] Control: 10c5387d  Table: 6607804a  DAC: 00000015
[   15.626710] Process modprobe (pid: 1739, stack limit = 0xe604e240)
[   15.632865] Stack: (0xe604feb0 to 0xe6050000)
[   15.637199] fea0:                                     bf000af8 00007fff 
c0074e50 00001302
[   15.645364] fec0: 00000000 f01d1000 b6f39d50 e604e000 bf000c40 e604fef4 
e604fdb0 00000000
[   15.653518] fee0: c001aa44 c000e860 f01f2000 b6e1b000 00000c8f bf000980 
00000008 00000000
[   15.661670] ff00: 00000000 00000000 00000000 00000000 00000000 00000000 
00000000 00000000
[   15.669821] ff20: 00000000 00000000 00000000 00000000 000000d2 00021d0f 
b6dfa000 b6f39d50
[   15.677975] ff40: 00000080 c000ef70 e604e000 00000000 00000000 c0079954 
f01d1000 00021d0f
[   15.686126] ff60: f01eb2c0 f01eb171 f01f29d0 00000c3c 00000edc 00000000 
00000000 00000000
[   15.694273] ff80: 0000001f 00000020 0000000d 00000000 0000000a 00000000 
00000000 b6f88290
[   15.702426] ffa0: b6f8a910 c000ed40 00000000 b6f88290 b6dfa000 00021d0f 
b6f39d50 00000002
[   15.710585] ffc0: 00000000 b6f88290 b6f8a910 00000080 00000000 b6f39d50 
00021d0f 00000000
[   15.718739] ffe0: 00060000 beea3914 b6f33b07 b6eb7684 80000050 b6dfa000 
00000000 00000000
[   15.726896] [<c0079364>] (load_module+0x1908/0x1e18) from [<c0079954>] 
(sys_init_module+0xe0/0xf4)
[   15.735831] [<c0079954>] (sys_init_module+0xe0/0xf4) from [<c000ed40>] 
(ret_fast_syscall+0x0/0x34)
[   15.744757] Code: e59dc020 e15c0007 e2477008 0a000009 (e5973014) 
[   15.750824] I-pipe tracer log (100 points):
[   15.754972]      +func                    0 ipipe_trace_panic_freeze+0x8 
(oops_enter+0x14)
[   15.763198]      +func                   -1 oops_enter+0x8 (die+0x20)
[   15.769614]      +func                   -2 die+0xc 
(__do_kernel_fault.part.8+0x5c)
[   15.777245]  |   #func                   -3 ipipe_root_only+0x8 
(ipipe_unstall_root+0x14)
[   15.785398]      #func                   -3 ipipe_unstall_root+0x8 
(vprintk_emit+0x1cc)
[   15.793377]      #func                   -4 wake_up_klogd+0x8 
(vprintk_emit+0x1bc)
[   15.800924]      #func                   -5 ipipe_test_root+0x8 
(preempt_schedule+0x24)
[   15.808901]      #func                   -5 ipipe_root_only+0x8 
(sub_preempt_count+0x18)
[   15.816966]      #func                   -6 sub_preempt_count+0xc 
(_raw_spin_unlock_irqrestore+0x28)
[   15.826072]      #func                   -6 _raw_spin_unlock_irqrestore+0x8 
(console_unlock+0x1e0)
[   15.835005]      #func                   -6 __ipipe_spin_unlock_debug+0x8 
(console_unlock+0x1d4)
[   15.843765]      #func                   -7 ipipe_root_only+0x8 
(add_preempt_count+0x18)
[   15.851830]      #func                   -7 add_preempt_count+0xc 
(_raw_spin_lock+0x18)
[   15.859809]      #func                   -8 _raw_spin_lock+0x8 
(console_unlock+0x1c0)
[   15.867615]      #func                   -8 ipipe_test_root+0x8 
(preempt_schedule+0x24)
[   15.875594]      #func                   -9 ipipe_root_only+0x8 
(sub_preempt_count+0x18)
[   15.883659]      #func                   -9 sub_preempt_count+0xc 
(_raw_spin_unlock_irqrestore+0x28)
[   15.892766]      #func                  -10 _raw_spin_unlock_irqrestore+0x8 
(console_unlock+0x1b8)
[   15.901699]      #func                  -10 __ipipe_spin_unlock_debug+0x8 
(up+0x3c)
[   15.909330]      #func                  -11 ipipe_root_only+0x8 
(add_preempt_count+0x18)
[   15.917396]      #func                  -12 add_preempt_count+0xc 
(_raw_spin_lock_irqsave+0x20)
[   15.926069]      #func                  -12 ipipe_root_only+0x8 
(ipipe_test_and_stall_root+0x10)
[   15.934829]      #func                  -13 ipipe_test_and_stall_root+0x8 
(_raw_spin_lock_irqsave+0x14)
[   15.944195]      #func                  -13 _raw_spin_lock_irqsave+0x8 
(up+0x14)
[   15.951567]      #func                  -13 up+0x8 (console_unlock+0x1b8)
[   15.958332]      #func                  -14 ipipe_test_root+0x8 
(preempt_schedule+0x24)
[   15.966310]      #func                  -15 ipipe_root_only+0x8 
(sub_preempt_count+0x18)
[   15.974376]      #func                  -15 sub_preempt_count+0xc 
(_raw_spin_unlock+0x18)
[   15.982528]      #func                  -16 _raw_spin_unlock+0x8 
(console_unlock+0x1b0)
[   15.990507]      #func                  -16 ipipe_root_only+0x8 
(add_preempt_count+0x18)
[   15.998573]      #func                  -17 add_preempt_count+0xc 
(_raw_spin_lock_irqsave+0x20)
[   16.007246]      #func                  -17 ipipe_root_only+0x8 
(ipipe_test_and_stall_root+0x10)
[   16.016005]      #func                  -18 ipipe_test_and_stall_root+0x8 
(_raw_spin_lock_irqsave+0x14)
[   16.025372]      #func                  -18 _raw_spin_lock_irqsave+0x8 
(console_unlock+0x8c)
[   16.033784]      #func                  -19 ipipe_test_root+0x8 
(preempt_schedule+0x24)
[   16.041763]      #func                  -19 ipipe_root_only+0x8 
(sub_preempt_count+0x18)
[   16.049829]      #func                  -20 sub_preempt_count+0xc 
(_raw_spin_unlock+0x18)
[   16.057981]      #func                  -20 _raw_spin_unlock+0x8 
(call_console_drivers.constprop.15+0xf8)
[   16.067521]      #func                  -21 __rcu_read_unlock+0x8 
(__atomic_notifier_call_chain+0x48)
[   16.076714]      #func                  -21 notifier_call_chain+0x8 
(__atomic_notifier_call_chain+0x40)
[   16.086081]      #func                  -21 __rcu_read_lock+0x4 
(__atomic_notifier_call_chain+0x24)
[   16.095100]      #func                  -22 __atomic_notifier_call_chain+0xc 
(atomic_notifier_call_chain+0x20)
[   16.105074]      #func                  -22 atomic_notifier_call_chain+0xc 
(notify_update+0x30)
[   16.113746]      #func                  -23 notify_update+0xc 
(vt_console_print+0x1cc)
[   16.121639]      #func                  -23 dummycon_dummy+0x4 
(set_cursor+0x90)
[   16.129011]      #func                  -24 add_softcursor+0x8 
(set_cursor+0x6c)
[   16.136383]      #func                  -24 set_cursor+0x8 
(vt_console_print+0x1c4)
[   16.144014]      #func                  -25 __rcu_read_unlock+0x8 
(__atomic_notifier_call_chain+0x48)
[   16.153208]      #func                  -25 notifier_call_chain+0x8 
(__atomic_notifier_call_chain+0x40)
[   16.162574]      #func                  -26 __rcu_read_lock+0x4 
(__atomic_notifier_call_chain+0x24)
[   16.171594]      #func                  -26 __atomic_notifier_call_chain+0xc 
(atomic_notifier_call_chain+0x20)
[   16.181567]      #func                  -27 atomic_notifier_call_chain+0xc 
(notify_write+0x28)
[   16.190153]      #func                  -27 notify_write+0xc 
(vt_console_print+0x260)
[   16.197959]      #func                  -28 __rcu_read_unlock+0x8 
(__atomic_notifier_call_chain+0x48)
[   16.207152]      #func                  -28 notifier_call_chain+0x8 
(__atomic_notifier_call_chain+0x40)
[   16.216518]      #func                  -29 __rcu_read_lock+0x4 
(__atomic_notifier_call_chain+0x24)
[   16.225538]      #func                  -29 __atomic_notifier_call_chain+0xc 
(atomic_notifier_call_chain+0x20)
[   16.235512]      #func                  -29 atomic_notifier_call_chain+0xc 
(notify_write+0x28)
[   16.244098]      #func                  -30 notify_write+0xc 
(vt_console_print+0x230)
[   16.251903]      #func                  -33 dummycon_dummy+0x4 (scrup+0xe8)
[   16.258842]      #func                  -33 scrup+0xc (lf+0x6c)
[   16.264739]      #func                  -34 lf+0x8 (vt_console_print+0x230)
[   16.271677]      #func                  -34 dummycon_dummy+0x4 
(hide_cursor+0x38)
[   16.279136]      #func                  -35 hide_cursor+0x8 
(vt_console_print+0x2c0)
[   16.286854]      #func                  -36 ipipe_root_only+0x8 
(add_preempt_count+0x18)
[   16.294920]      #func                  -36 add_preempt_count+0xc 
(_raw_spin_trylock+0x18)
[   16.303159]      #func                  -37 _raw_spin_trylock+0x8 
(vt_console_print+0x48)
[   16.311311]      #func                  -37 vt_console_print+0xc 
(call_console_drivers.constprop.15+0xf8)
[   16.320851]      #func                  -38 ipipe_test_root+0x8 
(debug_smp_processor_id+0x7c)
[   16.329351]      #func                  -39 
s3c24xx_serial_console_putchar+0x8 (uart_console_write+0x5c)
[   16.338804]      #func                  -40 
s3c24xx_serial_console_putchar+0x8 (uart_console_write+0x50)
[   16.348257]      #func                  -41 uart_console_write+0x8 
(call_console_drivers.constprop.15+0xf8)
[   16.357971]      #func                  -41 s3c24xx_serial_console_write+0x4 
(call_console_drivers.constprop.15+0xf8)
[   16.368552]      #func                  -42 ipipe_test_root+0x8 
(debug_smp_processor_id+0x7c)
[   16.377051]      #func                  -42 
call_console_drivers.constprop.15+0xc (console_unlock+0x288)
[   16.386504]      #func                  -43 ipipe_test_root+0x8 
(preempt_schedule+0x24)
[   16.394483]      #func                  -43 ipipe_root_only+0x8 
(sub_preempt_count+0x18)
[   16.402548]      #func                  -44 sub_preempt_count+0xc 
(_raw_spin_unlock+0x18)
[   16.410701]      #func                  -44 _raw_spin_unlock+0x8 
(console_unlock+0x27c)
[   16.418680]      #func                  -45 ipipe_root_only+0x8 
(add_preempt_count+0x18)
[   16.426745]      #func                  -45 add_preempt_count+0xc 
(_raw_spin_lock_irqsave+0x20)
[   16.435418]      #func                  -46 ipipe_root_only+0x8 
(ipipe_test_and_stall_root+0x10)
[   16.444178]      #func                  -46 ipipe_test_and_stall_root+0x8 
(_raw_spin_lock_irqsave+0x14)
[   16.453544]      #func                  -47 _raw_spin_lock_irqsave+0x8 
(console_unlock+0x34)
[   16.461957]      #func                  -47 console_unlock+0xc 
(vprintk_emit+0x1bc)
[   16.469589]      #func                  -48 ipipe_test_root+0x8 
(preempt_schedule+0x24)
[   16.477568]      #func                  -48 ipipe_root_only+0x8 
(sub_preempt_count+0x18)
[   16.485633]      #func                  -49 sub_preempt_count+0xc 
(_raw_spin_unlock+0x18)
[   16.493786]      #func                  -49 _raw_spin_unlock+0x8 
(vprintk_emit+0x1b8)
[   16.501591]      #func                  -50 ipipe_root_only+0x8 
(sub_preempt_count+0x18)
[   16.509657]      #func                  -50 sub_preempt_count+0xc 
(_raw_spin_unlock_irqrestore+0x28)
[   16.518763]      #func                  -51 _raw_spin_unlock_irqrestore+0x8 
(down_trylock+0x38)
[   16.527436]      #func                  -51 __ipipe_spin_unlock_debug+0x8 
(down_trylock+0x2c)
[   16.535935]      #func                  -52 ipipe_root_only+0x8 
(add_preempt_count+0x18)
[   16.544001]      #func                  -52 add_preempt_count+0xc 
(_raw_spin_lock_irqsave+0x20)
[   16.552673]      #func                  -53 ipipe_root_only+0x8 
(ipipe_test_and_stall_root+0x10)
[   16.561433]      #func                  -53 ipipe_test_and_stall_root+0x8 
(_raw_spin_lock_irqsave+0x14)
[   16.570799]      #func                  -54 _raw_spin_lock_irqsave+0x8 
(down_trylock+0x14)
[   16.579038]      #func                  -54 down_trylock+0x8 
(console_trylock+0x14)
[   16.586670]      #func                  -55 console_trylock+0x8 
(vprintk_emit+0x16c)
[   16.594473] ---[ end trace fb39fe55ac26e870 ]---
[ ok done.
udevd[1728]: '/sbin/modprobe -b 
usb:v0424p9730d0100dcFFdsc00dpFFicFFisc00ipFFin00' [1739] terminated by signal 
11 (Segmentation fault)

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to