[MPlayer-dev-eng] [PATCH] crash after dvd play-back

Andreas Hess jaska at gmx.net
Sun Dec 29 10:57:00 CET 2002


On Sat, Dec 28, 2002 at 02:50:06PM +0100, Arpi wrote:
> Hi,
> 
> > Hi!
> > 
> > This patch fixes a crash, that always occurs after playing a dvd
> > (in uninitialization).
> 
> could you detail this issus a bit ?
> 
> i can't find any reason for a crash solvable by setting the defaults of
> cdrom/dvd_device.

It seems like mplayer forgets the default dvd-device after playback.
I don't know why, but play_tree_iter_step() always runs through all
config options and the crash always occurs when dvd_device is reached.
Using the cmdline option -dvd-device /dev/dvd fixes the problem and
mplayer unintializes normally. So setting dvd_device to the default
seemed like the obvious fix (but maybe not the right) fix to me.



Starting program: /usr/pub/mplayer/main/mplayer -v -dvd 1
[New Thread 1024 (LWP 25278)]


MPlayer CVS-021229-09:58-3.0.4 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

[...]

Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using software timing

[...]

Playing DVD title 1

[...]

Reading disc structure, please wait...
There are 34 titles on this DVD.
There are 11 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened!
[open] audio stream: 0 audio format: ac3 (stereo) language: en aid: 128
[open] number of audio channels on disk: 1.
[open] subtitle ( sid ): 0 language: de
[open] number of subtitles on disk: 1

[...]

EOF code: 1

Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: liba52
uninit video: libmpeg2
DEMUXER: freeing demuxer at 0x83f8198
DEMUXER: freeing sh_video at 0x83ccd90
DEMUXER: freeing sh_audio at 0x83cf060

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 25278)]
0x402dfe90 in pthread_mutex_lock () from /lib/libpthread.so.0

(gdb) bt
#0  0x402dfe90 in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x40380a8b in free () from /lib/libc.so.6
#2  0x08095542 in copy_str (opt=0x82a889c, dst=0x82dcff4, src=0x83c6f88) at m_option.c:324
#3  0x08094355 in m_config_pop (config=0x83c22f0) at m_option.h:205
#4  0x08089085 in play_tree_iter_step (iter=0x83c67a8, d=1, with_nodes=0) at playtree.c:561
#5  0x0808069f in main (argc=4, argv=0xbffff7f4) at mplayer.c:3148



More information about the MPlayer-dev-eng mailing list