[#6344] Sometimes it fails to run aplay with adau1361 board
Submitted By: Vivi Li
Open Date
2010-11-17 06:00:27 Close Date
2011-08-16 03:59:48
Priority:
Medium Assignee:
Nobody
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1-RC5 Release:
Category:
N/A Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Assigned (Not Start)
Uboot version or rev.:
Toolchain version or rev.:
2010r1-rc4
App binary format:
N/A
Summary: Sometimes it fails to run aplay with adau1361 board
Details:
Sometimes it fails to run aplay with adau1361 board.
--
root:/> ls
73322.wav dev init proc sys var
ap.wav etc lib root tmp
bin home mnt sbin usr
root:/> aplay ap.wav
Playing WAVE 'ap.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
root:/> aplay ap.wav
Playing WAVE 'ap.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
root:/> aplay ap.wav
NULL pointer access
Deferred Exception context
CURRENT PROCESS:
COMM=aplay PID=198 CPU=0
TEXT = 0x029d0000-0x029dc208 DATA = 0x02972208-0x02972df8
BSS = 0x02972df8-0x029e0000 USER-STACK = 0x029ffea0
return address: [0x028c776c]; contents of:
0x028c7740: 301f 4c03 6002 300b 3248 3250 200a 3221
0x028c7750: a1a0 0890 06d1 3209 a0e1 0610 4c01 6c61
0x028c7760: 0c01 17f6 0842 1409 320b 300f [a0ca] 4c02
0x028c7770: 0065 0838 17e2 2010 0000 9113 4c03 320b
ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)
Linux version 2.6.34.7-ADI-2010R1-svn9486 (test@uboot34-bf537stamp) (gcc version 4.3.5 (ADI-2010R1-RC4) ) #16 Wed Nov 17 17:42:00
SEQUENCER STATUS: Not tainted
SEQSTAT: 00060027 IPEND: 0008 IMASK: ffff SYSCFG: 0006
EXCAUSE : 0x27
physical IVG3 asserted : <0xffa007d8> { _trap + 0x0 }
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x0294e000> /* kernel dynamic memory */
RETX: <0x00000480> /* Maybe fixed code section */
RETS: <0x028c5c64> [ /lib/libpthread.so.0 + 0x5c64 ]
PC : <0x028c776c> [ /lib/libpthread.so.0 + 0x776c ]
DCPLB_FAULT_ADDR: <0x0000000c> /* Maybe null pointer? */
ICPLB_FAULT_ADDR: <0x028c776c> [ /lib/libpthread.so.0 + 0x776c ]
PROCESSOR STATE:
R0 : 02600bac R1 : 00000000 R2 : 00000000 R3 : 00000000
R4 : 029db264 R5 : 02600afc R6 : 02063850 R7 : 00000000
P0 : 02600bac P1 : 00000000 P2 : 02600bac P3 : 02969448
P4 : 0206387c P5 : 00000420 FP : 029ffb4c SP : 0294df24
LB0: 0269d8a3 LT0: 0269d8a2 LC0: 00000000
LB1: 0269bb07 LT1: 0269bb06 LC1: 00000000
B0 : 00000137 L0 : 00000000 M0 : fffffffc I0 : 00000000
B1 : 000000c0 L1 : 00000000 M1 : 00000001 I1 : 00000001
B2 : 7ffff000 L2 : 00000000 M2 : 00001802 I2 : 00000003
B3 : 00000000 L3 : 00000000 M3 : 0000005b I3 : 00000006
A0.w: 00000000 A0.x: 00000000 A1.w: 00000000 A1.x: 00000000
USP : 029ffb40 ASTAT: 02001065
Hardware Trace:
0 Target : <0x00003eec> { _trap_c + 0x0 }
Source : <0xffa0076c> { _exception_to_level5 + 0xa4 } CALL pcrel
1 Target : <0xffa006c8> { _exception_to_level5 + 0x0 }
Source : <0xffa0057c> { _bfin_return_from_exception + 0x20 } RTX
2 Target : <0xffa0055c> { _bfin_return_from_exception + 0x0 }
Source : <0xffa00620> { _ex_trap_c + 0x74 } JUMP.S
3 Target : <0xffa005ac> { _ex_trap_c + 0x0 }
Source : <0xffa00484> { _ex_workaround_261 + 0x1c } JUMP.S
4 Target : <0xffa00468> { _ex_workaround_261 + 0x0 }
Source : <0xffa00840> { _trap + 0x68 } JUMP (P4)
5 Target : <0xffa007f6> { _trap + 0x1e }
Source : <0xffa007f2> { _trap + 0x1a } IF CC JUMP pcrel
6 Target : <0xffa007d8> { _trap + 0x0 }
FAULT : <0x028c776c> [ /lib/libpthread.so.0 + 0x776c ] P2 = W[P1 + 3]
Source : <0xffa0057c> { _bfin_return_from_exception + 0x20 } RTX
7 Target : <0xffa0055c> { _bfin_return_from_exception + 0x0 }
Source : <0xffa0047a> { _ex_workaround_261 + 0x12 } IF !CC JUMP pcrel
8 Target : <0xffa00468> { _ex_workaround_261 + 0x0 }
Source : <0xffa00840> { _trap + 0x68 } JUMP (P4)
9 Target : <0xffa007f6> { _trap + 0x1e }
Source : <0xffa007f2> { _trap + 0x1a } IF CC JUMP pcrel
10 Target : <0xffa007d8> { _trap + 0x0 }
Source : <0x028c776a> [ /lib/libpthread.so.0 + 0x776a ] 0x300f
11 Target : <0x028c7760> [ /lib/libpthread.so.0 + 0x7760 ]
Source : <0x028c774c> [ /lib/libpthread.so.0 + 0x774c ] JUMP.S
12 Target : <0x028c7738> [ /lib/libpthread.so.0 + 0x7738 ]
Source : <0x028c772c> [ /lib/libpthread.so.0 + 0x772c ] JUMP.S
13 Target : <0x028c7718> [ /lib/libpthread.so.0 + 0x7718 ]
Source : <0x028c3f9c> [ /lib/libpthread.so.0 + 0x3f9c ] JUMP (P1)
14 Target : <0x028c3f94> [ /lib/libpthread.so.0 + 0x3f94 ]
Source : <0x028c5c60> [ /lib/libpthread.so.0 + 0x5c60 ] CALL pcrel
15 Target : <0x028c5c5a> [ /lib/libpthread.so.0 + 0x5c5a ]
Source : <0x028c5c2e> [ /lib/libpthread.so.0 + 0x5c2e ] IF CC JUMP pcrel (BP)
Userspace Stack
Stack info:
SP: [0x029ffb40] <0x029ffb40> [ aplay + 0x1fb40 ]
FP: (0x029ffdc0)
Memory from 0x029ffb40 to 02a00000
029ffb40:[02601250] 02600b98 0000000c 029ffb6c 028c5c64 02600bac 0206387c 02969448
029ffb60: 02a28e08 029063c0 0206387c 029ffb8c 02a28e08 029063c0 020638d0 029db264
029ffb80: 00000000 029db264 00000000 029ffbb4 02a28e42 029063c0 02063848 020638d0
029ffba0: 02063850 0206387c 020638a4 029ffbec 02a46a9c 029ffbec 02a46a40 029063c0
029ffbc0: 00000000 00000000 00000000 02972dbc 029db264 02600afc 02063848 00000000
029ffbe0: 00000000 029063c0 02063848 029ffc24 02a46c16 029063c0 02972dcc 02972dbc
029ffc00: 029db264 00000000 029ffea4 02972dbc 02972db8 0297234c 00000000 00000000
029ffc20: 00000000 029ffdc0 029d7b1a 02972980 029fff98 02972db8 0297234c 00000000
029ffc40: 00000000 00000000 00000000 029ffdbc 00000000 00000000 00000000 00000000
029ffc60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
029ffc80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
029ffca0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
029ffcc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
029ffce0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
029ffd00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
029ffd20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
029ffd40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
029ffd60: 00000000 00000000 00000000 00000000 02927fc0 026008c4 029ffdbc 02972d78
029ffd80: 029723ac 02972dbc 02972d60 02972de4 029db224 029db984 029ffd60 02972980
029ffda0: 00000000 029ffc50 029db264 00000000 00000000 00000000 029fff98 029fff50
029ffdc0:(029ffe64)<026aff36> 02601250 0296336c 029fff98 029fff50 029fff70 00000002
029ffde0: 00000002 00000000 00000000 00000000 00000000 00000000 00000000 00000000
029ffe00: 00000000 00000003 029d0034 00000004 00000020 00000005 00000007 00000006
029ffe20: 00001000 00000007 02620000 00000008 00000000 00000009 029d28f8 00000000
029ffe40: 00000000 0000000b 00000000 0000000c 00000000 0000000d 00000000 0000000e
029ffe60: 00000000 (00000000) 029d2926 02965be0 029d28f8 02965bc8 029fff50 029fff70
029ffe80: 029d28fc 0296336c 029fff50 029ffea4 02963364 02963384 02965bc8 029fff7c
029ffea0: 00000002 029fff98 029fff9e 00000000 029fffa5 029fffb0 029fffd3 029fffe7
029ffec0: 00000000 00000010 00000000 00000006 00001000 00000011 00000064 00000003
029ffee0: 029d0034 00000004 00000020 00000005 00000007 00000007 02620000 00000008
029fff00: 00000000 00000009 029d28f8 0000000b 00000000 0000000c 00000000 0000000d
029fff20: 00000000 0000000e 00000000 00000017 00000000 0000001f 0001ffed 00000000
029fff40: 00000000 00000000 00000000 00000000 00020000 02620000 00000000 00004b10
029fff60: 02965b10 00005b10 00000264 00000000 00020000 029d0000 00000000 0000c208
029fff80: 02972208 0000d208 00000bf0 00000000 00000000 00000000 616c7061 70610079
029fffa0: 7661772e 52455400 696c3d4d 0078756e 48544150 69622f3d 752f3a6e 622f7273
029fffc0: 2f3a6e69 6e696273 73752f3a 62732f72 48006e69 5f485355 53524556 3d4e4f49
029fffe0: 36312e31 5000322e 2f3d4457 73752f00 69622f72 70612f6e 0079616c 00000000
Return addresses in stack:
frame 1 : <0x026aff36> [ /lib/libc.so.0 + 0x2ff36 ]
SEGV
root:/>
--
Follow-ups
--- Cliff Cai 2010-12-23 03:48:23
I record a short piece of music with the same parameters( -c 2 -r 22050 -f
S16_LE)
and play it many times,no crash happens.
BTW,I was using a BF527-EZKIT with a buffer on BCLK line to remove clock
jitter.
Cliff
--- Sonic Zhang 2011-08-16 03:59:48
Never maintained by Linux team.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.linux.audio_adau1361 application/octet-stream 31926 Vivi Li
config.config.audio_adau1361 application/octet-stream 48656 Vivi Li