[MPlayer-users] Re: [FIX] MPlayer interrupted by signal 8 in module: ao2_init playing dvd w/ -ac hwac3

Joe Barnett sanchezthecactus at yahoo.com
Thu Jan 9 06:02:42 CET 2003


by looking at the source code a little bit, I fixed the problem by adding the
line

ao_data.channels = channels

to the start of the init() function in ao_oss.c (I put it in line 98). 
Currently, ao_data.channels only gets set if (format != AFMT_AC3), so it was
being initialized to 0. (or so it appears).  I don't know the code intimately,
so I don't know if my fix has any adverse side effects.  Can someone more
knowledgeable let me know what's going on here, and what's supposed to be going
on here?

THanks,
-Joe


-----------------------
on Wed Jan 8 14:53:59 CET 2003, Joe Barnett wrote:

I get the same problem even with -af-adv force=1.  here is full log, sorry I
just forgot to paste it in.

jbarnett at sweeze:~$ mplayer -dvd 1 -ao oss:/dev/em8300_ma -ac hwac3 -af-adv
force=1
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale


MPlayer CVS-030107-16:41-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Intel  (Family: 8, Stepping: 4)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/jbarnett/.mplayer/config
Reading /home/jbarnett/.mplayer/codecs.conf: 49 audio & 123 video codecs
font: can't open file: /home/jbarnett/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Failed to open /dev/rtc: Permission denied (mplayer should be setuid root or
/dev/rtc should be readable by the user.)
Using usleep() timing
Input config file /home/jbarnett/.mplayer/input.conf parsed : 50 binds

Playing DVD title 1
Using CSS Key-cache dir: /home/jbarnett/.mplayer/DVDKeys/SPACEBALLS_LB
Reading disc structure, please wait...
There are 4 titles on this DVD.
There are 33 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 2)  29.97 fps  11002.0 kbps (1375.2 kbyte/s)
==========================================================================
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3 pass-through SP/DIF
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)
==========================================================================
vo: X11 running at 1280x1024 with depth 16 and 16 bpp (":0.0" => local display)
[x11] Detected wm supports layers.
[x11] Using workaround for Metacity bugs.
[x11] Detected wm is of class NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports FULLSCREEN state.
Disabling DPMS
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vop 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 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: [xv] 720x480 => 720x540 Planar YV12 
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================


MPlayer interrupted by signal 8 in module: ao2_init
- 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.
Successfully enabled DPMS

-----------------------
on Wed Jan 8 00:14:08 CET 2003, D Richard Felker III wrote:

See if -af-adv force=1 fixes it. The problem should be fixed before
too long anyway tho if it's what I think it is. BTW always include
full logs in addition to the gdb output; otherwise we have to just
guess what's happening.

Rich


On Tue, Jan 07, 2003 at 07:57:03PM -0800, Joe Barnett wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> to watch a dvd using my dxr3 card for audio, i used to use the command line:
> 
> mplayer -dvd 1 -ao oss:/dev/em8300_ma -ac hwac3
> 
> now, I get a segfault when this happens, information below.
> 
> Compiled on debian unstable:
> Linux sweeze 2.4.20 #1 Tue Jan 7 10:45:02 PST 2003 i686 unknown unknown
> GNU/Linux
> libc 2.3.1
> XFree86 Version 4.2.1.1 (Debian 4.2.1-4 20021123003806 branden at debian.org)
> gcc version 2.95.4 20011002 (Debian prerelease)
> GNU ld version 2.13.90.0.16 20021126 Debian GNU/Linux
> GNU assembler 2.13.90.0.16 20021126 Debian GNU/Linux
> 
> /proc/cpuinfo:
> processor	: 0
> vendor_id	: GenuineIntel
> cpu family	: 15
> model		: 2
> model name	: Intel(R) Pentium(R) 4 CPU 2.53GHz
> stepping	: 4
> cpu MHz		: 2532.162
> cache size	: 512 KB
> fdiv_bug	: no
> hlt_bug		: no
> f00f_bug	: no
> coma_bug	: no
> fpu		: yes
> fpu_exception	: yes
> cpuid level	: 2
> wp		: yes
> flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
> pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
> bogomips	: 5046.27
> 
> gdb backtrace:
> 
> Program received signal SIGFPE, Arithmetic exception.
> [Switching to Thread 16384 (LWP 16229)]
> 0x080b3315 in init (rate=48000, channels=2, format=1024, flags=0)
>     at ao_oss.c:226
> 226	  ao_data.outburst-=ao_data.outburst % ao_data.bps; // round down
> (gdb) bt
> #0  0x080b3315 in init (rate=48000, channels=2, format=1024, flags=0)
>     at ao_oss.c:226
> #1  0x080ad8fc in init_best_audio_out (ao_list=0x8428230, use_plugin=0, 
>     rate=48000, channels=2, format=1024, flags=0) at audio_out.c:130
> #2  0x08074b29 in main (argc=7, argv=0xbffff9f4) at mplayer.c:1556
> (gdb) 
> 
> Dump of assembler code from 0x80b32f5 to 0x80b3335:
> 0x80b32f5 <init+1157>:	clc    
> 0x80b32f6 <init+1158>:	or     %dh,0xffffff83(%ebp,%ecx,1)
> 0x80b32fa <init+1162>:	clc    
> 0x80b32fb <init+1163>:	inc    %eax
> 0x80b32fc <init+1164>:	je     0x80b3306 <init+1174>
> 0x80b32fe <init+1166>:	add    %edx,%edx
> 0x80b3300 <init+1168>:	mov    %edx,0x833dc7c
> 0x80b3306 <init+1174>:	mov    0x833dc80,%esi
> 0x80b330c <init+1180>:	mov    0x833dc7c,%edi
> 0x80b3312 <init+1186>:	mov    %esi,%eax
> 0x80b3314 <init+1188>:	cltd   
> 0x80b3315 <init+1189>:	idiv   %edi
> 0x80b3317 <init+1191>:	imul   0x833dc70,%edi
> 0x80b331e <init+1198>:	mov    %edx,%ecx
> 0x80b3320 <init+1200>:	sub    %ecx,%esi
> 0x80b3322 <init+1202>:	mov    %esi,0x833dc80
> 0x80b3328 <init+1208>:	mov    %edi,0x833dc7c
> 0x80b332e <init+1214>:	mov    $0x1,%eax
> 0x80b3333 <init+1219>:	lea    0xffffff58(%ebp),%esp
> End of assembler dump.
> 
> register dump:
> 
> eax            0x1000	4096
> ecx            0x8010500c	-2146414580
> edx            0x0	0
> ebx            0x400	1024
> esp            0xbfffe640	0xbfffe640
> ebp            0xbfffe6e8	0xbfffe6e8
> esi            0x1000	4096
> edi            0x0	0
> eip            0x80b3315	0x80b3315
> eflags         0x210246	2163270
> cs             0x23	35
> ss             0x2b	43
> ds             0x2b	43
> es             0x2b	43
> fs             0x0	0
> gs             0x7	7
> st0            0	(raw 0x00000000000000000000)
> st1            0	(raw 0x00000000000000000000)
> st2            0	(raw 0x00000000000000000000)
> st3            0	(raw 0x00000000000000000000)
> st4            0	(raw 0x00000000000000000000)
> st5            1024	(raw 0x40098000000000000000)
> st6            0	(raw 0x00000000000000000000)
> st7            48000	(raw 0x400ebb80000000000000)
> fctrl          0x37f	895
> fstat          0x120	288
> ftag           0xffff	65535
> fiseg          0x23	35
> fioff          0x8074afd	134695677
> foseg          0x2b	43
> fooff          0xbfffe920	-1073747680
> fop            0x1ca	458
> xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
>     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
>     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 
>     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff, 
>     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 
>     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
> xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
>     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
>     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 
>     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff, 
>     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 
>     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
> xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
>     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
>     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 
>     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff, 
>     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 
>     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
> xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
>     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
>     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 
>     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff, 
>     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 
>     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
> xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
>     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
>     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 
>     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff, 
>     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 
>     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
> xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
>     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
>     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 
>     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff, 
>     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 
>     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
> xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
>     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
>     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 
>     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff, 
>     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 
>     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
> xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {
>     0x8000000000000000, 0x8000000000000000}, v16_int8 = {
>     0xff <repeats 16 times>}, v8_int16 = {0xffff, 0xffff, 0xffff, 0xffff, 
>     0xffff, 0xffff, 0xffff, 0xffff}, v4_int32 = {0xffffffff, 0xffffffff, 
>     0xffffffff, 0xffffffff}, v2_int64 = {0xffffffffffffffff, 
>     0xffffffffffffffff}, uint128 = 0xffffffffffffffffffffffffffffffff}
> mxcsr          0x1f80	8064
> orig_eax       0xffffffff	-1
> mm0            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
>     0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
> mm1            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
>     0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
> mm2            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
>     0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
> mm3            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
>     0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
> mm4            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
>     0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
> mm5            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000}, 
>   v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0,
0x0, 
>     0x0, 0x80}}
> mm6            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 
>     0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
> mm7            {uint64 = 0xbb80000000000000, v2_int32 = {0x0, 0xbb800000}, 
> v4_int16 = {0x0, 0x0, 0x0, 0xbb80}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
>     0x80, 0xbb}}
> 

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the MPlayer-users mailing list