[MPlayer-users] msadpcm crash with Solaris/SPARC
Götz Waschk
waschk at informatik.uni-rostock.de
Wed Oct 23 11:32:02 CEST 2002
Hi,
with current CVS the msadpcm codec crashes on Solaris/SPARC. The
problem also appears with -ao null, so it's really a codec problem. I
can decode the same file on Linux with MPlayer 0.90pre8.
If you need a sample file, try this:
http://wwwtec.informatik.uni-rostock.de/~waschk/3px_bcn10inv.avi
System information: Solaris 7 sparc
/users/ra04/waschk -> uname -a
SunOS sake 5.7 Generic_106541-17 sun4u sparc
/users/ra04/waschk -> gcc --version
2.95.2
/users/ra04/waschk -> ld --version
GNU ld 2.10.1
Copyright 2000 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
Supported emulations:
elf32_sparc
/users/ra04/waschk -> as -V
as: WorkShop Compilers 5.0 Alpha 03/27/98 Build
as: error: no input filename given
usage: as [-V] [-Q{y,n}] [-f[O][if]#] [-q] [-s]
[-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
[-P [[-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
[-m [-Ym,path]] [-n] [-xF] [-xarch=v7] [-xarch=v8] [-xarch=v8a] [-xarch=v8plus] [-xarch=v8plusa] [-xarch=v8plusc] [-xarch=v9] [-xarch=v9a] [-xarch=v9b] file.s...
Here's the gdb output:
(gdb) run -v ~/download/*.avi
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /users/ra04/waschk/cvs/MPlayer/./mplayer -v ~/download/*.avi
[New LWP 2 ]
[New LWP 3 ]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/lib/locale/
Current domain: mplayer
Current dirname: /users/ra04/waschk/share/locale
[New LWP 4 ]
MPlayer CVS-021023-09:35-2.95.2 (C) 2000-2002 Arpad Gereoffy (see DOCS)
Reading /users/ra04/waschk/.mplayer/codecs.conf: can't open '/users/ra04/waschk/.mplayer/codecs.conf': No such file or directory
Reading /users/ra04/waschk/etc/mplayer/codecs.conf: 38 audio & 110 video codecs
CommandLine: '-v' '/users/ra04/waschk/download/3px_bcn10inv.avi'
get_path('font/font.desc') -> '/users/ra04/waschk/.mplayer/font/font.desc'
Font /users/ra04/waschk/.mplayer/font/font.desc loaded successfully! (206 chars)Using Unoptimized OnScreenDisplay
Using usleep() timing
get_path('input.conf') -> '/users/ra04/waschk/.mplayer/input.conf'
Parsing input config file /users/ra04/waschk/.mplayer/input.conf
Input config file /users/ra04/waschk/.mplayer/input.conf parsed : 53 binds
Playing /users/ra04/waschk/download/3px_bcn10inv.avi
Not an URL!
File size is 1403744 bytes
Detected AVI file format!
list_end=0x15A
======= AVI Header =======
us/frame: 40000 (fps=25,000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (16) HAS_INDEX
frames total: 420 initial: 18
streams: 2
Suggested BufferSize: 32768
Size: 320 x 240
list_end=0xD4
==> Found video stream: 0
======= STREAM Header =======
Type: sdiv FCC: 4GPM (3447504D)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 25/1 = 25,000
Start: 0 Len: 420
Suggested BufferSize: 230400
Quality 7500
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 320
biHeight 240
biPlanes 1
biBitCount 24
biCompression 877088845='4GPM'
biSizeImage 230400
===========================
Regenerating keyframe table for M$ mpg4v1 video
list_end=0x15A
==> Found audio stream: 1
======= STREAM Header =======
Type: sdua FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 18
Rate: 11155/512 = 21,787
Start: 0 Len: 366
Suggested BufferSize: 11264
Quality 10000
Sample size: 512
found 'wf', 50 bytes of 18
======= WAVE Format =======
Format Tag: 2 (0x2)
Channels: 1
Samplerate: 22050
avg byte/sec: 11155
Block align: 512
bits/sample: 4
cbSize: 32
Unknown extra header dump: [f4] [3] [7] [0] [0] [1] [0] [0] [0] [2] [0] [ff] [0] [0] [0] [0] [c0] [0] [40] [0] [f0] [0] [0] [0] [cc] [1] [30] [ff] [88] [1] [18] [ff]
Broken chunk? chunksize=2048 (id=KNUJ)
list_end=0x155008
Found movie at 0x96E - 0x155008
Reading INDEX block, 437 chunks for 420 frames (fpos=0)
AVI index offset: 0x96A (movi=0x96E idx0=0x4 idx1=0x2A0C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=1390476
VIDEO: [4GPM] 320x240 24bpp 25,00 fps 662,1 kbps (80,8 kbyte/s)
[V] filefmt:3 fourcc:0x3447504D size:320x240 fps:25,00 ftime:=0,0400
get_path('sub/') -> '/users/ra04/waschk/.mplayer/sub/'
==========================================================================
Opening audio decoder: [msadpcm] MS ADPCM audio decoder
dec_audio: Allocating 512 bytes for input buffer
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer
AUDIO: 22050 Hz, 1 ch, 16 bit (0x20), ratio: 11155->44100 (89,2 kbit)
Selected audio codec: [msadpcm] afm:msadpcm (MS ADPCM)
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffmp41] vfm:ffmpeg (FFmpeg M$ MPEG-4 v1)
==========================================================================
ao_sun: sample counter increment: 2045
ao_sun: sample counter increment: 2045
ao_sun: sample counter increment: 2045
ao_sun: minimum sample counter increment per 10msec interval: 2045
not using sample counter based timing code
AO: [sun] 22050Hz 1ch Signed 16-bit (Big-Endian)
AO: Description: Sun audio output
AO: Author: jk at tools.de
Building audio filter chain for 22050Hz/1ch/16bit -> 22050Hz/2ch/16bit...
[dummy] Was reinitialized, rate=22050Hz, nch = 1, format = 0x00000020 and bps = 2
[channels] Changing number of channels to 2
[dummy] Was reinitialized, rate=22050Hz, nch = 1, format = 0x00000020 and bps = 2
Start playing...
Program received signal SIGBUS, Bus error.
0x54c3c in ms_adpcm_decode_block ()
(gdb) bt
#0 0x54c3c in ms_adpcm_decode_block ()
#1 0x5509c in decode_audio ()
#2 0x52d7c in decode_audio ()
#3 0x28a0c in main ()
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x54c1c to 0x54c5c:
0x54c1c <ms_adpcm_decode_block+128>: ldub [ %i1 + 1 ], %o0
0x54c20 <ms_adpcm_decode_block+132>: sll %o0, 2, %o0
0x54c24 <ms_adpcm_decode_block+136>: ld [ %l1 + %o0 ], %o2
0x54c28 <ms_adpcm_decode_block+140>: ld [ %l2 + %o0 ], %o1
0x54c2c <ms_adpcm_decode_block+144>: st %o1, [ %fp + -44 ]
0x54c30 <ms_adpcm_decode_block+148>: st %o2, [ %fp + -52 ]
0x54c34 <ms_adpcm_decode_block+152>: mov 2, %g1
0x54c38 <ms_adpcm_decode_block+156>: sethi %hi(0xfc00), %o0
0x54c3c <ms_adpcm_decode_block+160>: lduh [ %i1 + %g1 ], %o1
0x54c40 <ms_adpcm_decode_block+164>: or %o0, 0x300, %o3
0x54c44 <ms_adpcm_decode_block+168>: and %o1, %o3, %o0
0x54c48 <ms_adpcm_decode_block+172>: and %o1, 0xff, %o1
0x54c4c <ms_adpcm_decode_block+176>: sll %o1, 8, %o1
0x54c50 <ms_adpcm_decode_block+180>: srl %o0, 8, %o0
0x54c54 <ms_adpcm_decode_block+184>: or %o1, %o0, %o1
0x54c58 <ms_adpcm_decode_block+188>: sethi %hi(0x8000), %o2
End of assembler dump.
(gdb) info all-registers
g0 0x0 0
g1 0x1 1
g2 0x2000 8192
g3 0x0 0
g4 0x1 1
g5 0x0 0
g6 0x0 0
g7 0x2fe3f8 3138552
o0 0xfc00 64512
o1 0x10 16
o2 0x0 0
o3 0x0 0
o4 0xe 14
o5 0x3d0fc0 4001728
sp 0xffbee190 -4267632
o7 0xa5288 676488
l0 0x0 0
l1 0x1c1ef8 1842936
l2 0x1c1edc 1842908
l3 0x0 0
l4 0x0 0
l5 0x0 0
l6 0x1 1
l7 0x0 0
i0 0x3d11c8 4002248
i1 0x3d0fc0 4001728
i2 0x1 1
i3 0x200 512
i4 0x0 0
i5 0x0 0
fp 0xffbee228 -4267480
i7 0x55094 348308
f0 7.83969043e-30 (raw 0x0f1f0200) 7.6189397313041844e-236
f1 2.20466161e-38 (raw 0x00f010ff)
f2 2.5465371e-29 (raw 0x10011ff1) 1.3787899847199736e-231
f3 2.20574005e-38 (raw 0x00f02f0f)
f4 -5.54896951e+29 (raw 0xf0e01f00) -5.1257979787899628e+235f5 -3.72177473e+19 (raw 0xe0012000)
f6 -7.18295365e+29 (raw 0xf1110f00) -4.3391017658094189e+236f7 2.1019477e-44 (raw 0x0000000f)
f8 7.83969043e-30 (raw 0x0f1f0200) 7.6189397313041844e-236
f9 2.20466161e-38 (raw 0x00f010ff)
f10 8.83554066e-29 (raw 0x10e001f0) 2.1116341410367946e-227
f11 1.13546667e-28 (raw 0x110ff000)
f12 1.83670992e-40 (raw 0x00020000) 2.7813424008652312e-309
f13 2.20465951e-38 (raw 0x00f010f0)
f14 8.85294239e-38 (raw 0x01f10001) 2.5384814479793585e-299
f15 -3.96529227e+28 (raw 0xef002021)
f16 -3.71637041e+19 (raw 0xe000f000) -2.8386843451573005e+154f17 2.35106914e-38 (raw 0x0100011f)
f18 3.02485267e-39 (raw 0x0020f00f) 4.7109624850002535e-308
f19 2.54531804e-29 (raw 0x1001101e)
f20 1.08420217e-19 (raw 0x20000000) 1.4916681465873474e-154
f21 1.46936794e-39 (raw 0x00100000)
f22 -6.43436336e+29 (raw 0xf101f0e1) -2.2817706506487139e+236f23 -1.59616894e+29 (raw 0xf000f000)
f24 1.55510498e-39 (raw 0x0010ef00) 2.3549080538966597e-308
f25 -2.21900752e+30 (raw 0xf1e01000)
f26 4.06575815e-19 (raw 0x20f00000) 4.8878981815993686e-150
f27 1.40129846e-45 (raw 0x00000001)
f28 2.34180739e-38 (raw 0x00ff0010) 7.0633300960239055e-304
f29 2.20408792e-38 (raw 0x00f00101)
f30 7.83969043e-30 (raw 0x0f1f0200) 7.6189397313041844e-236
f31 2.20466161e-38 (raw 0x00f010ff)
y 0x0 0
psr 0xfe901006 -24113146 icc:N--C, pil:0, s:0, ps:0, et:0, cwp:6
wim 0x0 0
tbr 0x0 0
pc 0x54c3c 347196
npc 0x54c40 347200
fpsr 0x20 32 rd:N, tem:0, ns:0, ver:0, ftt:0, qne:0, fcc:=, aexc:1, cexc:0
cpsr 0x0 0
--
Götz Waschk <> master of computer science <> University of Rostock
http://wwwtec.informatik.uni-rostock.de/~waschk/waschk.asc for PGP key
--> Logout Fascism! <--
More information about the MPlayer-users
mailing list