[MPlayer-users] the new libmpeg2 wont run on sparc SIGBUS

jb13 at gomerbud.com jb13 at gomerbud.com
Thu Aug 5 04:17:41 CEST 2004


the new libmpeg2 wont run on sparc's, it dies with SIGBUS. i think has
something to do with unaligned memory access, sparc's are rather strict.

NetBSD noctum.gomerbud.com 2.0_BETA NetBSD 2.0_BETA (GENERIC) #0: Sun Aug  1 14:39:34 UTC 2004  autobuild at tgm.netbsd.org:/autobuild/netbsd-2-0/sparc/OBJ/autobuild/netbsd-2-0/src/sys/arch/sparc/compile/GENERIC sparc

hardware info ( if you care )
SUNW,SPARCstation-5
170MHz TurboSparc L1 32KB L2 512KB
96MB ram
TurboGX frame buffer
CS4231A audio chip

tried with gcc 2.95.3 and 3.3.3 backtrace from 2.95.3

$ gdb ./mplayer 
GNU gdb 5.3nb1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc--netbsdelf"...
(gdb) run /home/jb13/media/mov/random/ai_kato.mpg -vo sdl
Starting program: /usr/home/jb13/src/mplayer/mplayer /home/jb13/media/mov/random/ai_kato.mpg -vo sdl
MPlayer dev-CVS-040804-18:27-2.95.3 (C) 2000-2004 MPlayer Team

CPU: Sun Sparc
Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/jb13/.mplayer/config
Reading /home/jb13/.mplayer/codecs.conf: Can't open '/home/jb13/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
font: can't open file: /home/jb13/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using nanosleep() timing
Can't open input config file /home/jb13/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config

Playing /home/jb13/media/mov/random/ai_kato.mpg.
MPEG-PS file format detected.
VIDEO:  MPEG1  352x240  (aspect 2)  29.970 fps  1536.0 kbps (192.0 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 44100 Hz, 2 ch, 16 bit (0x20), ratio: 32000->176400 (256.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
SDL: Using driver: x11
Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".
vo: X11 running at 1152x900 with depth 8 and 8 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 240 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, big endian signed int 
AF_pre: 44100Hz 2ch Signed 16-bit (Big-Endian)
AO: [sun] 44100Hz 2ch Signed 16-bit (Big-Endian) (2 bps)
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 352 x 240 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [sdl] 352x240 => 352x264 Planar YV12 

Program received signal SIGBUS, Bus error.
0x000aea10 in mpeg2_idct_copy_c (block=0x52710a, dest=0x705000 "", stride=352)
    at idct.c:76
76          if (likely (!(block[1] | ((int32_t *)block)[1] | ((int32_t *)block)[2] |
(gdb) bt
#0  0x000aea10 in mpeg2_idct_copy_c (block=0x52710a, dest=0x705000 "", 
    stride=352) at idct.c:76
#1  0x000bbfdc in mpeg2_slice (decoder=0x527040, code=0, 
    buffer=0xb00 <Error reading address 0xb00: Invalid argument>)
    at slice.c:954
#2  0x000abb00 in mpeg2_parse (mpeg2dec=0x527040) at decode.c:188
#3  0x000694b0 in decode (sh=0x26a100, data=0x521400, len=1, flags=0)
    at vd_libmpeg2.c:113
#4  0x00067674 in decode_video (sh_video=0x26a100, start=0x402000 "", 
    in_size=14145, drop_frame=0) at dec_video.c:309
#5  0x0002762c in main (argc=1993728, argv=0x18d070) at mplayer.c:2115
#6  0x00023454 in ___start ()




More information about the MPlayer-users mailing list