[#6681] icc packet test has dump info in running on bf561
Submitted By: Mingquan Pan
Open Date
2011-07-06 03:36:47 Close Date
2011-09-07 05:03:41
Priority:
Medium Assignee:
steven miao
Status:
Closed Fixed In Release:
N/A
Found In Release:
2011R1 Release:
Category:
N/A Board:
N/A
Processor:
ALL Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
2010R1-RC4
App binary format:
N/A
Summary: icc packet test has dump info in running on bf561
Details:
icc packet test has dump info in running on bf561.
root:/> version^[[58;9R
kernel: Linux release 2.6.39.2-ADI-2011R1-pre-svn9998, build #29 Tue Jul 5 14:24:24 CST 2011
toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2010R1-RC4)
user-dist: release svn-10225, build #11 Tue Jul 5 14:23:49 CST 2011
root:/>
*******************************************************************
STEP 3: Starting test
^[[58;9Rcd /bin
root:/bin> ^[[58;12R./icc_loader -l ./icc
writing to 0xfeb00000, 0x668c bytes: OK
writing to 0xff600000, 0xc4 bytes: OK
root:/bin> ^[[58;12Rsm_debug:feb1f000 COREB: @@@ gen pool create0
sm_debug: 1 : 0
sm_debug:received 1
sm_debug:feb1f040 COREB: @@@ gen pool create1
sm_debug: 2 : 1
sm_debug:received 2
Case 1 ...PASS
root:/bin>
Case 1 ...PASS
^[[58;12R./icc_losm_debug:feb1f080 COREB: before run task
sm_debug: 3 : 2
sm_debug:received 3
ader -f -e ./task1
writing to 0x03c00000, 0x2a8 bytes: OKsm_debug:ioctl type 2
task_init_addr 3c00000
sm_debug:sm_find_session bits 00000000 localep 0
sm_debug:table bits1 00000000
sm_debug:table index 0
sm_debug:table bits2 00000001
sm_debug:create ep index 0 srcep 0 type 2
sm_debug:session 0292a800
sm_debug:size of session 60
sm_debug:ioctl type 2000000
sm_debug:sm_send_packet: 0 0292a800
sm_debug:sm_send_packet: len 268 type 2000000 dst 1 dstep 5 src 0 srcep 0
sm_debug:alloc buffer 2943200
sm_debug:sm_task_sendmsg msg type 2000000
sm_debug:sm_task_sendmsg init addr03c00000
sm_debug:sm_send_packet: len 268 type 2000000 dst 1 dstep 5 src 0 srcep 0
sm_debug:sm_send_message_internal: dst 1 src 0
sm_debug:send message cpu 1 sent 1
sm_debug:feb1f0c0 COREB: sm_handle_control_message type 2000000
sm_debug: 4 : 3
sm_debug:received 4
sm_debug:feb1f100 COREB: sm_handle_control_message 2000000 2000000
sm_debug: 5 : 4
sm_debug:received 5
sm_debug:feb1f140 COREB: task init 3c00000
sm_debug: 6 : 5
sm_debug:received 6
sm_debug:feb1f180 COREB: sm_send_message_internal() dst 0 src 1 2000001
sm_debug: 7 : 6
sm_debug:received 7
sm_debug:sm_find_session bits 00000001 localep 0
sm_debug:index 0 ,local ep 0 type 2
sm_debug:session 0292a800 index 0 msg type2000001
sm_debug:sm_task_recvmsg msg type 2000001
sm_debug:sm_task_recvmsg free 2943200
sm_debug:received 8
sm_debug:feb1f000 COREB: finish sm_handle_control_message
sm_debug: 9 : 8
sm_debug:received 9
sm_debug:feb1f040 COREB: before run task
sm_debug: 10 : 9
sm_debug:received 10
sm_debug:ioctl type 2000000
root:/bin> ^[[58;12Rsm_debug:feb1f080 COREB: before run task1
sm_debug: 11 : 10
sm_debug:received 11
sm_debug:feb1f0c0 COREB: create ep
sm_debug: 12 : 11
sm_debug:received 12
sm_debug:feb1f100 COREB: create ep index 0 srcep 5
sm_debug: 13 : 12
sm_debug:received 13
sm_debug:feb1f140 COREB: icc_task_init() task1 icc index 0
sm_debug: 14 : 13
sm_debug:received 14
sm_debug:feb1f180 COREB: task loop
sm_d
Case 2 ...PASS
ebug: 15 : 14
sm_debug:received 15
root:/bin>
Case 2 ...PASS
^[[58;12R./packet_test -s 123
sp packet 4sm_debug:ioctl type 4
begin create ep
sm_debug:sm_find_session bits 00000000 localep 9
sm_debug:table bits1 00000000
sm_debug:table index 0
sm_debug:table bits2 00000001
sm_debug:create ep index 0 srcep 9 type 4
sm_debug:session 0292a800
sm_debug:size of session 60
fism_debug:ioctl type 4n index = 0
sm_debug:sm_send_packet: 0 0292a800
sm_debug:sm_send_packet: len 16 type 4000000 dst 1 dstep 5 src 0 srcep 9
sm_debug:alloc buffer 29483c0
sm_debug:sm_default_sendmsg session type 4
sm_debug:sm_default_sendmsg: len 16 type 4000000 dst 1 dstep 5 src 0 srcep 9
sm_debug:sm_send_packet: len 16 type 4000000 dst 1 dstep 5 src 0 srcep 9
sm_debug:sm_send_message_internal: dst 1 src 0
sm_debug:send message cpu 1 sent 2
sm_debug:feb1f1c0 COREB: sm_handle_control_message type 4000000
sm_debug: 16 : 15
sm_debug:received 16
NULL pointer access
Deferred Exception context
CURRENT PROCESS:
COMM=packet_test PID=175 CPU=0
TEXT = 0x02b18040-0x02b1cb20 DATA = 0x02b1cb40-0x02b1e460
BSS = 0x02b1e460-0x02b1e6e0 USER-STACK = 0x02b1ff54
return address: [0x02b19304]; contents of:
0x02b192e0: 50d0 0e3a 1818 4349 601a 5490 0c02 1019
0x02b192f0: 44d1 c682 8441 c402 0411 c422 4411 3213
0x02b19300: e0a2 1002 [9202] 0850 1002 0010 3013 3058
0x02b19310: 529a 3212 0c42 1804 e0a2 2002 9a01 0010
ADSP-BF561-0.3(Detected 0.5) 600(MHz CCLK) 100(MHz SCLK) (mpu off)
Linux version 2.6.39.2-ADI-2011R1-pre-svn9998 (test@adsl) (gcc version 4.3.5 (ADI-2010R1-RC4) ) #29 Tue Jul 5 14:24:24 CST 2011
SEQUENCER STATUS: Not tainted
SEQSTAT: 00002027 IPEND: 0008 IMASK: ffff SYSCFG: 0006
EXCAUSE : 0x27
physical IVG3 asserted : <0xffa0083c> { _trap + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x02960000> [ init + 0x0 ]
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x02b18342> [ packet_test + 0x302 ]
PC : <0x02b19304> [ packet_test + 0x12c4 ]
DCPLB_FAULT_ADDR: <0x00000000> /* Maybe null pointer? */
ICPLB_FAULT_ADDR: <0x02b19304> [ packet_test + 0x12c4 ]
PROCESSOR STATE:
R0 : 00000000 R1 : 00000000 R2 : 00000000 R3 : 00000040
R4 : 02b1ff91 R5 : 00000000 R6 : 00000003 R7 : 02b1feb8
P0 : 00000000 P1 : 00000010 P2 : 00000040 P3 : 02b1fe98
P4 : 02b1fe94 P5 : 02b1fe78 FP : 02b1fee4 SP : 0295ff24
LB0: 02b19305 LT0: 02b19304 LC0: 00000010
LB1: 02b1adf9 LT1: 02b1adae LC1: 00000000
B0 : 00000000 L0 : 00000000 M0 : 00000000 I0 : 02b1e30c
B1 : 00000000 L1 : 00000000 M1 : 00000000 I1 : 02b1fe98
B2 : 00000000 L2 : 00000000 M2 : 00000000 I2 : 00000000
B3 : 00000000 L3 : 00000000 M3 : 00000000 I3 : 00000000
A0.w: 0000147a A0.x: 00000000 A1.w: 0000147a A1.x: 00000000
USP : 02b1fe4c ASTAT: 02002021
Hardware Trace:
0 Target : <0x00004058> { _trap_c + 0x0 }
Source : <0xffa007d0> { _exception_to_level5 + 0xa4 } JUMP.L
1 Target : <0xffa0072c> { _exception_to_level5 + 0x0 }
Source : <0xffa005e0> { _bfin_return_from_exception + 0x20 } RTX
2 Target : <0xffa005c0> { _bfin_return_from_exception + 0x0 }
Source : <0xffa00684> { _ex_trap_c + 0x74 } JUMP.S
3 Target : <0xffa00610> { _ex_trap_c + 0x0 }
Source : <0xffa004e8> { _ex_workaround_261 + 0x1c } JUMP.S
4 Target : <0xffa004cc> { _ex_workaround_261 + 0x0 }
Source : <0xffa008a4> { _trap + 0x68 } JUMP (P4)
5 Target : <0xffa0085a> { _trap + 0x1e }
Source : <0xffa00856> { _trap + 0x1a } IF CC JUMP pcrel
6 Target : <0xffa0083c> { _trap + 0x0 }
FAULT : <0x02b19304> [ packet_test + 0x12c4 ] [P0++] = R2
Source : <0xffa005e0> { _bfin_return_from_exception + 0x20 } RTX
7 Target : <0xffa005c0> { _bfin_return_from_exception + 0x0 }
Source : <0xffa004de> { _ex_workaround_261 + 0x12 } IF !CC JUMP pcrel
8 Target : <0xffa004cc> { _ex_workaround_261 + 0x0 }
Source : <0xffa008a4> { _trap + 0x68 } JUMP (P4)
9 Target : <0xffa0085a> { _trap + 0x1e }
Source : <0xffa00856> { _trap + 0x1a } IF CC JUMP pcrel
10 Target : <0xffa0083c> { _trap + 0x0 }
Source : <0x02b19300> [ packet_test + 0x12c0 ] LSETUP <> LC0= P1
11 Target : <0x02b192dc> [ packet_test + 0x129c ]
Source : <0x02b1833e> [ packet_test + 0x2fe ] CALL pcrel
12 Target : <0x02b18336> [ packet_test + 0x2f6 ]
Source : <0x02b18546> [ packet_test + 0x506 ] RTS
13 Target : <0x02b1853e> [ packet_test + 0x4fe ]
Source : <0x02b18530> [ packet_test + 0x4f0 ] IF CC JUMP pcrel (BP)
14 Target : <0x02b18528> [ packet_test + 0x4e8 ]
Source : <0xffa00da2> { __common_int_entry + 0xda } RTI
15 Target : <0xffa00d40> { __common_int_entry + 0x78 }
Source : <0xffa01184> { _evt_system_call + 0x64 } JUMP.S
Userspace Stack
Stack info:
SP: [0x02b1fe4c] <0x02b1fe4c> [ packet_test + 0x7e4c ]
FP: (0x02b1fee4)
Memory from 0x02b1fe40 to 02b20000
02b1fe40: 02b1fee4 02b18336 02b1feb8 [00000110] 00000000 02b1feb8 02b1cc88 00000000
02b1fe60: 02b1fea0 02b1fe9c 02b1fe90 02b1fe8c 02b1fe88 02b1fe84 00333231 00000000
02b1fe80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
02b1fea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000009
02b1fec0: 00000005 00000004 00000000 00000001 00000000 00000010 02b1fe78 00000000
02b1fee0: 00000000 (02b1ff14)<02b1a2e0> 00000000 00000003 02b1e320 00000000 02b1ff58
02b1ff00: 02b1cae4 02b18178 00000003 02b1ff58 00000000 (00000000) 02993dec 02b1cb40
02b1ff20: 02aeaa20 029f3dec 00000000 02aea9e0 00000000 00000000 00000000 00000000
02b1ff40: 00000000 02b1cae4 02b1caf6 00000000 029e9b88 00000003 02b1ff80 <02b1ff8e>
02b1ff60: 02b1ff91 00000000 02b1ff95 02b1ffa0 02b1ffc3 02b1ffd7 02b1ffe5 00000000
02b1ff80: 61702f2e 74656b63 7365745f 732d0074 33323100 52455400 696c3d4d 0078756e
02b1ffa0: 48544150 69622f3d 752f3a6e 622f7273 2f3a6e69 6e696273 73752f3a 62732f72
02b1ffc0: 48006e69 5f485355 53524556 3d4e4f49 38312e31 2e00342e 6361702f 5f74656b
02b1ffe0: 74736574 44575000 69622f3d 2f2e006e 6b636170 745f7465 00747365 00000000
Return addresses in stack:
frame 1 : <0x02b1a2e0> [ packet_test + 0x22a0 ]
address : <0x02b1ff8e> [ packet_test + 0x7f8e ]
sm_debug:feb1f000 COREB: @@@ wake up
sm_debug: 17 : 16
sm_debug:received 17
SEGV
root:/bin> ^[[58;12Rsm_debug:feb1f040 COREB: task loop
sm_debug: 18 : 17
sm_debug:received 18
sm_debug:feb1f080 COREB: index 0 ,local ep 5
sm_debug: 19 : 18
sm_debug:received 19
sm_debug:feb1f0c0 COREB: msg type 4000000 index 0 session type 4
sm_debug: 20 : 19
sm_debug:received 20
sm_debug:feb1f100 COREB: type 4000000, dstep 5, srcep 9
sm_debug: 21 : 20
sm_debug:received 21
sm_debug:feb1f140 COREB: recved packet msg handle0
sm_debug: 22 : 21
sm_debug:received 22
sm_debug:feb1f180 COREB: msg_recv_internal msg type 4000000 alloc 3d40000
sm_debug: 23 : 22
sm_debug:received 23
sm_debug:feb1f1c0 COREB: avail 1
sm_debug: 24 : 23
sm_debug:received 24
sm_debug:feb1f000 COREB: index 0 avail 1
sm_debug: 25 : 24
sm_debug:received 25
sm_debug:feb1f040 COREB: sm_recv_packet session type 4 localep5
sm_debug: 26 : 25
sm_debug:received 26
sm_debug:feb1f080 COREB: sm_recv_packet() 123
sm_debug: 27 : 26
sm_debug:received 27
sm_debug:feb1f0c0 COREB: sm_recv_packet msg
sm_debug: 28 : 27
sm_debug:received 28
sm_debug:feb1f100 COREB: processing msg 123
sm_debug: 29 : 28
sm_debug:received 29
sm_debug:feb1f140 COREB: coreb send buf 3d01000
sm_debug: 30 : 29
sm_debug:received 30
sm_debug:feb1f180 COREB: sm_send_packet() in pool 3d01000 finish
sm_debug: 31 : 30
sm_debug:received 31
sm_debug:feb1f1c0 COREB: sm_default_sendmsg msg type 4000000
sm_debug: 32 : 31
sm_debug:received 32
sm_debug:feb1f000 COREB: sm_send_message_internal() dst 0 src 1 4000000
sm_debug: 33 : 32
sm_debug:received 33
sm_debug:sm_find_session bits 00000001 localep 9
sm_debug:index 0 ,local ep 9 type 4
sm_debug:session 0292a800 index 0 msg type4000000
sm_debug:sm_default_recvmsg msg type 4000000
sm_debug:msg_recv_internal wakeup wait thread
sm_debug:received 34
sm_debug:feb1f080 COREB: sm_send_message_internal() dst 0 src 1 4000001
sm_debug: 35 : 33
sm_debug:received 35
sm_debug:sm_find_session bits 00000001 localep 9
sm_debug:index 0 ,local ep 9 type 4
sm_debug:session 0292a800 index 0 msg type4000001
sm_debug:sm_default_recvmsg msg type 4000001
sm_debug:ack matched free buf 29483c0
sm_debug:received 36
sm_debug:feb1f100 COREB: free message 3d40000
sm_debug: 37 : 35
sm_debug:received 37
sm_debug:feb1f140 COREB: task loop
sm_d
Follow-ups
--- steven miao 2011-07-29 02:31:07
fixed, the crash is caused by memset the wrong buffer address
--- Mingquan Pan 2011-09-07 05:03:41
Yes, running packet case doesn't print dump info now. So close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found