2008-04-28 12:18:58 Test driver error : Kernel panic - not syncing: Kernel exception
hong li (CHINA)
Message: 55160 Hi everyone
I write a led dirver on ezkit533,the module is std_led.ko, i insmod this module ,there is no problem , when i run the test programme , the led blink as my expection, however, after the test programme running , the kernel break down and show as follow:
root:/var> ./test_std_led
test std_led
NULL pointer access (probably)
CURRENT PROCESS:
COMM=test_std_led PID=42
return address: 0x00055044; contents of [PC-16...PC+8]:
RETE: 00000000 RETN: 01551e3c RETX: 00055044 RETS: 00055028
IPEND: 8030 SYSCFG: 0036
SEQSTAT: 00000027 SP: 01551d60
R0: 00000000 R1: 00000000 R2: 0000001f R3: 00000000
R4: 00000000 R5: 0000000c R6: 001bdec0 R7: 00000000
P0: 01623300 P1: 00000000 P2: 00000000 P3: 001b0320
P4: 015027d4 P5: 016232c4 FP: 01509a68
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
LB0: 01554549 LT0: 01554546 LC0: 00000000
LB1: 016b671d LT1: 016b671c LC1: 00000000
B0: 00000000 L0: 00000000 M0: 00000000 I0: 01554e90
B1: 00000000 L1: 00000000 M1: 00000000 I1: 016febb4
B2: 00000000 L2: 00000000 M2: 00000000 I2: 00000000
B3: 00000000 L3: 00000000 M3: 00000000 I3: 00000000
USP: 01557ee4 ASTAT: 02003005
DCPLB_FAULT_ADDR=00000004
ICPLB_FAULT_ADDR=00055044
Hardware Trace:
0 Target : <0x00004588> { _trap_c + 0x0 }
Source : <0xffa00b58> { _exception_to_level5 + 0xb4 }
1 Target : <0xffa00aa4> { _exception_to_level5 + 0x0 }
Source : <0xffa00aa2> { _ex_trap_c + 0x4e }
2 Target : <0xffa00a54> { _ex_trap_c + 0x0 }
Source : <0xffa00bf8> { _trap + 0x28 }
3 Target : <0xffa00bd0> { _trap + 0x0 }
Source : <0x00055042> { _eventpoll_release_file + 0x2e }
4 Target : <0x00055028> { _eventpoll_release_file + 0x14 }
Source : <0x000e35c8> { _mutex_lock + 0x20 }
5 Target : <0x000e35a8> { _mutex_lock + 0x0 }
Source : <0x00055024> { _eventpoll_release_file + 0x10 }
6 Target : <0x00055014> { _eventpoll_release_file + 0x0 }
Source : <0x000341e0> { ___fput + 0x120 }
7 Target : <0x000341de> { ___fput + 0x11e }
Source : <0x000340dc> { ___fput + 0x1c }
8 Target : <0x000340c0> { ___fput + 0x0 }
Source : <0x00034240> { _fput + 0x24 }
9 Target : <0x0003423e> { _fput + 0x22 }
Source : <0x0003423a> { _fput + 0x1e }
10 Target : <0x0003421c> { _fput + 0x0 }
Source : <0x00031be4> { _filp_close + 0x34 }
11 Target : <0x00031be2> { _filp_close + 0x32 }
Source : <0x0003fbe6> { _locks_remove_posix + 0x96 }
12 Target : <0x0003fbe0> { _locks_remove_posix + 0x90 }
Source : <0x0003fb62> { _locks_remove_posix + 0x12 }
13 Target : <0x0003fb50> { _locks_remove_posix + 0x0 }
Source : <0x00031bde> { _filp_close + 0x2e }
14 Target : <0x00031bda> { _filp_close + 0x2a }
Source : <0x00031bf4> { _filp_close + 0x44 }
15 Target : <0x00031bf2> { _filp_close + 0x42 }
Source : <0x00031bd2> { _filp_close + 0x22 }
Stack from 01551d40:
00024b14 ffa00b5c 0011e714 0011e714 0011e710 001206e8 00000016 00089a38
00055044 00008030 00000027 00000000 01551e3c 00055044 00055044 00055028
00000000 02003005 016b671d 01554549 016b671c 01554546 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 016febb4 01554e90 01557ee4 01509a68 016232c4 015027d4
Call Trace:
[<000341e4>] ___fput+0x124/0x130
[<0002dd8e>] _put_vma+0x62/0x10c
[<0002ddea>] _put_vma+0xbe/0x10c
[<00031be8>] _filp_close+0x38/0x60
[<0002de8e>] _exit_mmap+0x56/0x68
[<0000d364>] _put_files_struct+0xdc/0xe0
[<00009faa>] _mmput+0x3a/0x8c
[<0000e266>] _do_exit+0xf2/0x7a0
[<0000e998>] _sys_exit+0x0/0xc
[<00003200>] _do_signal+0x460/0xe2c
[<00033de6>] _sys_write+0x32/0x64
[<0000e9a4>] _complete_and_exit+0x0/0x18
[<0000e998>] _sys_exit+0x0/0xc
[<00033db4>] _sys_write+0x0/0x64
[<00008000>] _account_user_time+0x2c/0x64
Kernel panic - not syncing: Kernel exception
How to slove this problem?
Thanks
Hong
QuoteReplyEditDelete
2008-04-28 15:02:32 Re: Test driver error : Kernel panic - not syncing: Kernel exception
Mike Frysinger (UNITED STATES)
Message: 55169 please review the documentation:
http://docs.blackfin.uclinux.org/doku.php?id=debuging_applications#analyzing_traces
QuoteReplyEditDelete
2008-04-29 01:39:21 Re: Test driver error : Kernel panic - not syncing: Kernel exception
hong li (CHINA)
Message: 55190
Thanks Mike
I will try to debug it according this document.
Hong
QuoteReplyEditDelete
2008-04-29 04:39:27 Re: Test driver error : Kernel panic - not syncing: Kernel exception
hong li (CHINA)
Message: 55206
Mike
The problem is sloved , Thanks you help
Hong