Mplayer is unable to create the audio chain for some media files (video files or audio files) with in-kernel alsa (2.6.12, alsa 1.0.9rc2) and alsa-lib 1.0.9 for a certain mplayer.conf audio configuration!. Just after checking audio filter chain, segfaults. Reproducible: Sometimes Steps to Reproduce: 1.mplayer some_mp3_file.mp3 2. 3. Actual Results: Mplayer segfaults Expected Results: Mplayer generates some kind of noise thru the system speakers :) Before: Kernel 2.6.11, in-kernel alsa + alsa-lib I-don't-remember-the-version . After: Kernel 2.6.12, in-kernel alsa + recompiled alsa-lib 1.0.9 Unchanged /etc/mplayer.conf and /etc/asound.conf. Both worked for a long time without problems. My mplayer.conf ----------------------------------- # Specify default video driver (see -vo help for a list). vo=xv # Specify default audio driver (see -ao help for a list). ao=alsa:device=dmixer # Doublebuffering can help remove flicker from subtitles/OSD. double=yes # standard monitor size, with square pixels monitoraspect=4:3 ## Hungarian igen nem ## English yes no ## German ja nein ## Spanish si no ## Polish tak nie ## Swedish ja nej ## Binary 1 0 ## ## You can also use spaces and/or tabs. ## framedrop = yes cache = 8192 # DVD: Display English subtitles if available. # slang = en # DVD: Play English audio tracks if available. # alang = en af=resample=44100:0:0 ----------------------------------- My asound.conf -----------------------------------: pcm.dmixer { type dmix ipc_key 1024 slave { pcm "hw:0,0" period_time 0 period_size 1024 buffer_size 8192 rate 44100 } bindings { 0 0 1 1 } } pcm.dsp0 { type plug slave.pcm "dmixer" } pcm.!default { type plug slave.pcm "dmixer" } pcm.default { type plug slave.pcm "dmixer" } ctl.mixer0 { type hw card 0 } ----------------------------------- The problem is solved just for example deleting the /etc/mplayer.conf (I haven't played yet with the different audio options to see which one is causing this behaviour), but as I've said this file worked perfectly with old mplayer and old alsa. I just wasn't expecting mplayer to crash because of a bad mplayer.conf option.
Created attachment 64243 [details] Mplayer segfault backtrace and dissasembly I include the backtrace for the mplayer segfault I'm reporting in this bug, also with dissasembly and registers dump as requested in the mplayer documentation section related to bug reporting.
Created attachment 65099 [details, diff] Mix from MPlayer CVS (af.c 1.44->1.45) Was fixed already quite some time ago in MPlayer CVS...
Tested. Thanks. This patch effectively solves the hang after the audio filter chain check.
cleaning out old bugs