Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100203 - mplayer-1.0pre7 segfaults with kernel-2.6.12 alsa and incorrect mplayer.conf settings
Summary: mplayer-1.0pre7 segfaults with kernel-2.6.12 alsa and incorrect mplayer.conf ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-25 04:03 UTC by Jacobo Cabaleiro
Modified: 2006-07-02 17:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Mplayer segfault backtrace and dissasembly (mplayer.bt.txt,10.28 KB, text/plain)
2005-07-25 04:04 UTC, Jacobo Cabaleiro
Details
Mix from MPlayer CVS (af.c 1.44->1.45) (af_empty_fix.diff,712 bytes, patch)
2005-08-04 14:56 UTC, Reimar Döffinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jacobo Cabaleiro 2005-07-25 04:03:05 UTC
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.
Comment 1 Jacobo Cabaleiro 2005-07-25 04:04:45 UTC
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.
Comment 2 Reimar Döffinger 2005-08-04 14:56:41 UTC
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...
Comment 3 Jacobo Cabaleiro 2005-08-05 10:02:22 UTC
Tested. Thanks. This patch effectively solves the hang after the audio filter
chain check.
Comment 4 Steve Dibb (RETIRED) gentoo-dev 2006-07-02 17:06:58 UTC
cleaning out old bugs