[MPlayer-users] -ac hwac3 crashes in FreeBSD

Anssi Saari as at sci.fi
Wed Oct 16 20:41:08 CEST 2002


-ac hwac3 seems to have broken at some point in FreeBSD, I get a segfault in af_format.c.
Works ok in Linux.

FreeBSD 4.7-PRERELEASE
XFree86 Version 4.2.1
gcc version 2.95.4 20020320 [FreeBSD]
GNU ld version 2.12.1 [FreeBSD] 2002-07-20
GNU assembler 2.12.1 [FreeBSD] 2002-07-20

CPU: Duron 800MHz
Video card: Club 3D Radeon 7500
Video driver: Gatos, uh, recent? Lost the source I installed from...
Sound card: Trust "sound expert digital surround 5.1", CM8738 chip, kernel driver

mplayer -v output:

MPlayer CVS-021016-21:03-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Duron SF Spitfire (Family: 6, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

/home/as/.mplayer/config(12): option: vo
/home/as/.mplayer/config(12): parameter: xv
/home/as/.mplayer/config(15): option: fs
/home/as/.mplayer/config(15): parameter: yes
/home/as/.mplayer/config(17): option: vm
/home/as/.mplayer/config(17): parameter: no
/home/as/.mplayer/config(22): option: zoom
/home/as/.mplayer/config(22): parameter: yes
/home/as/.mplayer/config(26): option: osdlevel
/home/as/.mplayer/config(26): parameter: 0
/home/as/.mplayer/config(28): option: framedrop
/home/as/.mplayer/config(28): parameter: yes
/home/as/.mplayer/config(43): option: sound
/home/as/.mplayer/config(43): parameter: 1
/home/as/.mplayer/config(44): option: nosound
/home/as/.mplayer/config(44): parameter: nein
Reading /home/as/.mplayer/codecs.conf: 38 audio & 108 video codecs
CommandLine: '/cdrom/dd_train.vob' '-ac' 'hwac3' '-v'
get_path('font/font.desc') -> '/home/as/.mplayer/font/font.desc'
Font /home/as/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using usleep() timing
get_path('input.conf') -> '/home/as/.mplayer/input.conf'
Parsing input config file /home/as/.mplayer/input.conf
Input config file /home/as/.mplayer/input.conf parsed : 5 binds

Playing /cdrom/dd_train.vob
Not an URL!
File size is 28788736 bytes
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x8431000  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x8431000  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x8431000  
Checking for MOV
DEMUXER: freeing demuxer at 0x8431000  
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x8431000  
Checking for REAL
DEMUXER: freeing demuxer at 0x8431000  
DEMUXER: freeing demuxer at 0x8431000  
DEMUXER: freeing demuxer at 0x8431000  
DEMUXER: freeing demuxer at 0x8431000  
DEMUXER: freeing demuxer at 0x8431000  
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x8431000  
DEMUXER: freeing demuxer at 0x8433000  
Checking for PVA
DEMUXER: freeing demuxer at 0x8433000  
system stream synced at 0xD (0)!
==> Found video stream: 0
Detected MPEG-PS file format!
==> Found audio stream: 128
Searching for sequence header... OK!
VIDEO:  MPEG2  720x480  (aspect 2)  29.97 fps  7500.0 kbps (937.5 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
get_path('sub/') -> '/home/as/.mplayer/sub/'
==========================================================================
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3 pass-through SP/DIF
dec_audio: Allocating 3840 bytes for input buffer
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
No accelerated IMDCT transform found
AUDIO: 48000 Hz, 2 ch, 16 bit (0x400), ratio: 56000->192000 (448.0 kbit)
Selected audio codec: [hwac3] afm:hwac3 (AC3 through SPDIF)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm is of class NetWM.
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
VDec: vo config request - 720 x 480 (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 Config (720x480->720x540,flags=5,'MPlayer',0x32315659)
VO: [xv] 720x480 => 720x540 Planar YV12  [fs] [zoom]
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x41424752 (RGBA) packed
Xvideo image format: 0x0 (    ) packed
Xvideo image format: 0x54424752 (RGBT) packed
Xvideo image format: 0x32424752 (RGB2) packed
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
[x11] NET style stay on top ( layer 1 ).
using Xvideo port 55 for hw scaling
[xv-fs] dx: 0 dy: 0 dw: 1600 dh: 1200
[xv] dx: 0 dy: 0 dw: 1600 dh: 1200
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2)
==========================================================================
ao2: 48000 Hz  2 chans  AC3
audio_setup: using '/dev/dsp' dsp device
Can't set audio device /dev/dsp to AC3 output, trying S16...
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:  32/32  (4096 bytes/frag)  free: 131072
AO: [oss] 48000Hz 2ch AC3
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000400 and bps = 2
[format] Changing number sample format to 0x00000010 and/or bytes per sample to 2 
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000400 and bps = 2
Start playing...
[af_format] Input audio format not yet supported 
Reallocating memory in module format, old len = 0, new len = 65540


MPlayer interrupted by signal 11 in module: decode_audio 
- MPlayer crashed by bad usage of CPU/FPU/RAM. Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and disassembly. For details, see DOCS/bugreports.html section 5.b.
- MPlayer crashed. This shouldn't happen. It can be a bug in the MPlayer code _or_ in your drivers _or_ in your gcc version. If you think it's MPlayer's fault, please read DOCS/bugreports.html and follow instructions there. We can't and won't help unless you provide these informations when reporting a possible bug.
Uninit audio filters...
uninit audio: hwac3  
uninit video: libmpeg2  
DEMUXER: freeing demuxer at 0x8433000  
DEMUXER: freeing sh_video at 0x8369300  
DEMUXER: freeing sh_audio at 0x8369400  
vo: uninit ...

gdb output:

Program received signal SIGSEGV, Segmentation fault.
0x814acfb in play (af=0x8444a80, data=0xbfbfe35c) at af_format.c:210
210               ((uint16_t*)la)[i]=((uint16_t)((uint8_t*)ca)[i])<<8;
(gdb) bt
#0  0x814acfb in play (af=0x8444a80, data=0xbfbfe35c) at af_format.c:210
#1  0x8149d8a in af_play (s=0x8444a00, data=0xbfbfe35c) at af.c:401
#2  0x8096b83 in decode_audio (sh_audio=0x8366400, buf=0x8570000 "", minlen=65536, maxlen=131072)
    at dec_audio.c:342
#3  0x8063e0e in main (argc=6, argv=0xbfbff5d8) at mplayer.c:1398
(gdb) disass $eip-32 $eip+32
Dump of assembler code from 0x814acdb to 0x814ad1b:
0x814acdb <play+595>:   xor    %ch,%cl
0x814acdd <play+597>:   faddl  (%eax)
0x814acdf <play+599>:   add    %al,(%eax)
0x814ace1 <play+601>:   lea    0x0(%esi),%esi
0x814ace4 <play+604>:   xor    %ebx,%ebx
0x814ace6 <play+606>:   cmp    %edi,%ebx
0x814ace8 <play+608>:   jge    0x814adbd <play+821>
0x814acee <play+614>:   mov    %esi,%esi
0x814acf0 <play+616>:   mov    0xfffffff8(%ebp),%edx
0x814acf3 <play+619>:   movzbw (%ebx,%esi,1),%ax
0x814acf8 <play+624>:   shl    $0x8,%eax
0x814acfb <play+627>:   mov    %ax,(%edx,%ebx,2)
0x814acff <play+631>:   inc    %ebx
0x814ad00 <play+632>:   cmp    %edi,%ebx
0x814ad02 <play+634>:   jl     0x814acf0 <play+616>
0x814ad04 <play+636>:   jmp    0x814adbd <play+821>
0x814ad09 <play+641>:   lea    0x0(%esi),%esi
0x814ad0c <play+644>:   xor    %ebx,%ebx
0x814ad0e <play+646>:   cmp    %edi,%ebx
0x814ad10 <play+648>:   jge    0x814adbd <play+821>
0x814ad16 <play+654>:   mov    %esi,%esi
0x814ad18 <play+656>:   mov    0xfffffff8(%ebp),%ecx
End of assembler dump.





More information about the MPlayer-users mailing list