[MPlayer-users] infinite loop when killing mplayer
Jonas Jensen
jbj at knef.dk
Fri Nov 8 22:18:03 CET 2002
When I kill mplayer with a signal, such as SIGINT or SIGTERM, it doesn't
always exit cleanly. In 5-10 tries or so I can usually make it freeze
and use 100% CPU.
It'll print the following messages to the console:
MPlayer interrupted by signal 15 in module: flip_page
Xlib: unexpected async reply (sequence 0xb3)!
The number after "sequence" varies. If I strace the process it'll output
this line in an infinite loop:
select(8, [7], [7], NULL, NULL) = 1 (out [7])
After that it doesn't react to the same signal again (I suppose that's
expected behavior), but when I try to kill it with another signal it'll
print:
MPlayer interrupted by signal 2 in module: uninit_vo
and still hang. Then I can send it a third signal (such as SIGHUP), and
it'll finally die (no output). The order of these signals doesn't seem
to matter, only that they are different.
I tried 4 different movies (both divx and mpg) and both the x11 and xv
video outputs, and it happens in all cases.
To reproduce it easily, type
while sleep 1; do mplayer test.avi; done
in one window and
while sleep 1; do killall -w mplayer; done
in another and wait a bit.
I tried both v0.90-pre9 and cvs 20021104. I was unable to reproduce it
with today's cvs because it's broken (there's no picture) (same problem
with 20021106).
I'm no wizard with gdb, all I could get was this (I'm not 100% sure I
stopped the code at the right place):
(gdb) where
#0 0x40ce610e in select () from /lib/i686/libc.so.6
#1 0x40bf1fa8 in _XlcPublicMethods () from /usr/X11R6/lib/libX11.so.6
#2 0x40b5c067 in _XRead () from /usr/X11R6/lib/libX11.so.6
#3 0x40b5c877 in _XReply () from /usr/X11R6/lib/libX11.so.6
#4 0x40b58845 in XSync () from /usr/X11R6/lib/libX11.so.6
#5 0x08088471 in flip_page () at vo_x11.c:463
#6 0x0806aca2 in main (argc=2, argv=0xbffff5a4) at mplayer.c:1672
#7 0x40c37082 in __libc_start_main () from /lib/i686/libc.so.6
If you need my system info I've tried to collect everything
bugreports.html tells me to:
Distribution:
Mandrake 9.0
jbj at microbob ~ $ uname -a
Linux microbob.lan 2.4.19-16mdk #1 Fri Sep 20 18:15:05 CEST 2002 i686
unknown unknown GNU/Linux
jbj at microbob ~ $ ls -l /lib/libc[.-]*
-rwxr-xr-x 1 root root 1147848 Aug 19 12:17
/lib/libc-2.2.5.so*
lrwxrwxrwx 1 root root 13 Sep 26 23:26 /lib/libc.so.6
-> libc-2.2.5.so*
jbj at microbob ~ $ X -version
XFree86 Version 4.2.1 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 3 September 2002
If the server is older than 6-12 months, or if your card is
newer than the above date, look for a newer version before
reporting problems. (See http://www.XFree86.Org/)
Build Operating System: Linux 2.4.18-23mdkenterprise i686 [ELF]
Module Loader present
jbj at microbob ~ $ gcc -v
Reading specs from
/usr//bin/../lib/gcc-lib/i586-mandrake-linux-gnu/3.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib
--with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix --disable-checking
--enable-long-long --enable-__cxa_atexit
--enable-languages=c,c++,ada,f77,objc,java
--host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
jbj at microbob ~ $ ld -v
GNU ld version 2.12.90.0.15 20020717
jbj at microbob ~ $ as --version
GNU assembler 2.12.90.0.15 20020717
Copyright 2002 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.
This assembler was configured for a target of `i586-mandrake-linux-gnu'.
jbj at microbob ~ $ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Celeron (Coppermine)
stepping : 6
cpu MHz : 597.791
cache size : 128 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 sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
bogomips : 1192.75
Video card:
(--) ATI(0): ATI 3D Rage Mobility graphics controller detected.
(--) ATI(0): Chip type 4C52 "LR", version 4, foundry TSMC, class 0,
revision 0x0
1.
(--) ATI(0): PCI bus interface detected; block I/O base is 0x2800.
(--) ATI(0): ATI Mach64 adapter detected.
Sound card:
intel8x0 with alsa oss emulation
More information about the MPlayer-users
mailing list