[#4153] exception of accessing null pointer is not well handled in kernel with SMP patch
Submitted By: Vivi Li
Open Date
2008-06-06 04:18:12 Close Date
2008-06-16 08:13:39
Priority:
Medium High Assignee:
Graf Yang
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
N/A Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
08r1.5-11
App binary format:
N/A
Summary: exception of accessing null pointer is not well handled in kernel with SMP patch
Details:
For kernel patched with SMP, the exception of access null pointer is not well handled.
--
root:/> ./null_point
Caught Unhandled Exception, code = 00000000^M
Caught Unhandled Exception, code = 00000000^M
Caught Unhandled Exception, code = 00000000^M
Caught Unhandled Exception, code = 00000000^M
Caught Unhandled Exception, code = 00000000^M
Caught Unhandled Exception, code = 00000000^M
Caught Unhandled Exception, code = 00000000^M
Caught Unhandled Exception, code = 00000000^M
Caught Unhandled Exception, code = 00000000^M
Caught Unhandled Exception, code = 00000000^M
Caught Unhandled Exception, code = 00000000^M
Caught Unhandled Exception, code = 00000000^M
...
--
For kernel without SMP patch, it looks as bellow:
--
./null_point^M
NULL pointer access^M
Deferred Exception context^M
CURRENT PROCESS:^M
COMM=null_point PID=112^M
TEXT = 0x003b8040-0x003bb040 DATA = 0x003bb044-0x003bb614^M
BSS = 0x003bb614-0x003bb864 USER-STACK = 0x003bcf7c^M
^M
return address: [0x003b814a]; contents of:^M
0x003b8120: 0000 0c42 1805 3041 e801 0000 0052 e801 ^M
0x003b8130: 0000 0010 e800 0003 e801 0000 0010 0000 ^M
0x003b8140: e800 0004 6000 bbf0 b9fa [9111] e140 003b ^M
0x003b8150: e100 b064 e300 0006 6000 e801 0000 0010 ^M
^M
SEQUENCER STATUS: Not tainted^M
SEQSTAT: 00062027 IPEND: 0030 SYSCFG: 0006^M
HWERRCAUSE: 0x18^M
EXCAUSE : 0x27^M
RETE: <0x00000000> /* Maybe null pointer? */^M
RETN: <0x004ac000> /* unknown address */^M
RETX: <0x00000480> /* Maybe fixed code section */^M
RETS: <0x003b9204> [ null_point + 0x11c4 ]^M
PC : <0x003b814a> [ null_point + 0x10a ]^M
DCPLB_FAULT_ADDR: <0x00000000> /* Maybe null pointer? */^M
ICPLB_FAULT_ADDR: <0x003b814a> [ null_point + 0x10a ]^M
^M
PROCESSOR STATE:^M
R0 : 00000000 R1 : 003bcf80 R2 : 003bcf88 R3 : 0000002f^M
R4 : 003b8140 R5 : 00000001 R6 : 003bb83c R7 : 00000000^M
P0 : 003bcef5 P1 : 003bb83c P2 : 00000000 P3 : 003bcf80^M
P4 : 003bb60c P5 : 003bb044 FP : 003bcf28 SP : 004abf24^M
LB0: 003b8e11 LT0: 003b8e10 LC0: 00000000^M
LB1: 003118c9 LT1: 003118c2 LC1: 00000000^M
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 003bce95^M
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 003fc004^M
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000^M
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000^M
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000^M
USP : 003bcf18 ASTAT: 02003025^M
^M
Hardware Trace
...
--
Follow-ups
--- Vivi Li 2008-06-16 08:13:39
OK now. Close it. Thanks!
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found