[#3857] ndso on bf533 fails for low stack size
Submitted By: Mingquan Pan
Open Date
2008-01-24 21:28:04 Close Date
2008-02-21 05:34:31
Priority:
Medium Assignee:
Michael Hennerich
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-6
App binary format:
N/A
Summary: ndso on bf533 fails for low stack size
Details:
ndso on bf533 fails for low stack size.
root:/> ndso &
103
root:/> Data access misaligned address violation
- Attempted misaligned data memory or data cache access.
Defered Exception context
CURRENT PROCESS:
COMM=ndso PID=103
TEXT = 0x03240040-0x0324f3e0 DATA = 0x0324f3e4-0x032527f4
BSS = 0x032527f4-0x03252f14 USER-STACK = 0x03254f84
return address: [0x0324a562]; contents of:
0x0324a540: ffff 6ff0 e580 fffe 6181 0808 1032 0000
0x0324a550: 0000 e580 ffff 3220 e120 0063 3248 6ff9
0x0324a560: 5aac [9112] 0a02 17e9 c080 1813 c683 5180
0x0324a570: c111 8613 c111 981a c683 1180 c40b 0200
SEQUENCER STATUS: Not tainted
SEQSTAT: 00002024 IPEND: 0030 SYSCFG: 0006
HWERRCAUSE: 0x0
EXCAUSE : 0x24
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x037d4000> /* unknown address */
RETX: <0x0324a562> [ ndso + 0xa522 ]
RETS: <0x0324a5e2> [ ndso + 0xa5a2 ]
PC : <0x0324a562> [ ndso + 0xa522 ]
DCPLB_FAULT_ADDR: <0x03252e5c> [ ndso + 0x12e5c ]
ICPLB_FAULT_ADDR: <0x0324a562> [ ndso + 0xa522 ]
PROCESSOR STATE:
R0 : 00000063 R1 : 0000076c R2 : 000000be R3 : 66666667
R4 : 032403a8 R5 : 00000000 R6 : 0000003f R7 : 0000003f
P0 : 03252dce P1 : 03252dcd P2 : 03252e5d P3 : 032524c8
P4 : 00000025 P5 : 03252e38 FP : 03250c0c SP : 037d3f24
LB0: 03248551 LT0: 0324854e LC0: 00000000
LB1: 03247a35 LT1: 03247a34 LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 03250b11
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 032524c8
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000
A0.w: 000002f8 A0.x: 00000000 A1.w: 000002f8 A1.x: 00000000
USP : 03250c00 ASTAT: 02000002
Hardware Trace:
0 Target : <0x00004814> { _trap_c + 0x0 }
Source : <0xffa00774> { _exception_to_level5 + 0xb4 }
1 Target : <0xffa006c0> { _exception_to_level5 + 0x0 }
Source : <0xffa0061c> { _ex_trap_c + 0x5c }
2 Target : <0xffa005c0> { _ex_trap_c + 0x0 }
Source : <0xffa00814> { _trap + 0x28 }
3 Target : <0xffa007ec> { _trap + 0x0 }
Source : <0x0324a560> [ ndso + 0xa520 ]
4 Target : <0x0324a552> [ ndso + 0xa512 ]
Source : <0x0324a536> [ ndso + 0xa4f6 ]
5 Target : <0x0324a4d6> [ ndso + 0xa496 ]
Source : <0x0324a5e2> [ ndso + 0xa5a2 ]
6 Target : <0x0324a5e2> [ ndso + 0xa5a2 ]
Source : <0x03248554> [ ndso + 0x8514 ]
7 Target : <0x03248546> [ ndso + 0x8506 ]
Source : <0x03248516> [ ndso + 0x84d6 ]
8 Target : <0x0324850c> [ ndso + 0x84cc ]
Source : <0x0324a5de> [ ndso + 0xa59e ]
9 Target : <0x0324a5ca> [ ndso + 0xa58a ]
Source : <0x0324a4d2> [ ndso + 0xa492 ]
10 Target : <0x0324a4cc> [ ndso + 0xa48c ]
Source : <0x0324a5fa> [ ndso + 0xa5ba ]
11 Target : <0x0324a5fa> [ ndso + 0xa5ba ]
Source : <0x03248554> [ ndso + 0x8514 ]
12 Target : <0x03248546> [ ndso + 0x8506 ]
Source : <0x03248516> [ ndso + 0x84d6 ]
13 Target : <0x0324850c> [ ndso + 0x84cc ]
Source : <0x0324a5f6> [ ndso + 0xa5b6 ]
14 Target : <0x0324a5e4> [ ndso + 0xa5a4 ]
Source : <0x0324a4c6> [ ndso + 0xa486 ]
15 Target : <0x0324a4c2> [ ndso + 0xa482 ]
Source : <0x03248554> [ ndso + 0x8514 ]
Stack from 037d3f04:
00011178 ffa00778 0014256c 0014256c 00142568 00000003 032403a8 03245e56
0324a562 00000030 00002024 00000000 037d4000 0324a562 0324a562 0324a5e2
00000063 02000002 03247a35 03248551 03247a34 0324854e 00000000 00000000
000002f8 00000000 000002f8 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 032524c8 03250b11 03250c00 03250c0c 03252e38 00000025
Call Trace:
test@linux:~/checkouts/test_suites.1026> bfin-uclinux-flthdr -p ndso
ndso
Magic: bFLT
Rev: 4
Build Date: Fri Jan 25 08:55:08 2008
Entry: 0x44
Data Start: 0xf3e0
Data End: 0x127f0
BSS End: 0x12f10
Stack Size: 0x4000
Reloc Start: 0x127f0
Reloc Count: 0x756
Flags: 0x1 ( Load-to-Ram )
If the size rises to 0x7530 by :
test@linux:~/checkouts/test_suites.1026> bfin-uclinux-flthdr -s30000 ndso
test@linux:~/checkouts/test_suites.1026> bfin-uclinux-flthdr -p ndso
ndso
Magic: bFLT
Rev: 4
Build Date: Fri Jan 25 08:55:08 2008
Entry: 0x44
Data Start: 0xf3e0
Data End: 0x127f0
BSS End: 0x12f10
Stack Size: 0x7530
Reloc Start: 0x127f0
Reloc Count: 0x756
Flags: 0x1 ( Load-to-Ram )
then the case is ok.
But on bf537, 0x4000 is ok.
Follow-ups
--- Michael Hennerich 2008-02-07 07:26:18
Fixed
-Michael
--- Mingquan Pan 2008-02-21 05:34:30
Yes,close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found