View previous topic :: View next topic |
Author |
Message |
cmcfaul n00b
Joined: 21 Aug 2007 Posts: 3 Location: New Orleans
|
Posted: Mon Jul 13, 2015 12:56 am Post subject: MPD segfaults when I try to play music |
|
|
I am trying to set up MPD. My current sticking point is that mpd segfaults whenever a client issues a command to play music. Other commands from the client seem to work.
First, ALSA appears to work. I can play music via either alsaplayer or mplayer, and alsamixer can adjust the volume.
I can start mpd. I can then use mpc or ncmpc to adjust the volume, modify the playlist, or update the mpd database. But when I issue any command that would actually produce audio output, mpd segfaults. The client then gives me a connection refused error. I am able to restart mpd and reproduce this behavior as many times as I want.
Whenever this happens, dmesg gives me:
Code: | [77548.629560] output:ALSA Dev[22613]: segfault at d047d938 ip 080919c8 sp b20f3ee0 error 5 in mpd[8048000+80000] |
The numbers in square brackets change from run to run (I'm guessing those are timestamp and process ID?). The rest of the error is identical from run to run.
After the mpd log file gives me:
Code: | Jul 12 19:55 : client: [0] opened from [::1]:38593
Jul 12 19:55 : client: [0] process command "play"
Jul 12 19:55 : alsa_output: opened hw:0,0 type=HW |
There's no further information from mpd, even with verbose logging.
Because other programs can play music, I suspect that I'm either doing something wrong in my mpd configuration, or that my ALSA configuration is missing some information that mpd needs. I've found a few past examples of what seem to be similar issues, and have tried several different versions of both the asound.conf and the mpd.conf. In all cases, I get either the exact same behavior, or additional errors related to badly formed configuration files.
/etc/asound.conf:
Code: |
pcm.CK8 {
type hw
card 0
}
ctl.CK8 {
type hw
card 0
}
|
The currently uncommented part of /etc/mpd.conf:
Code: |
music_directory "/var/lib/mpd/music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/database"
log_file "/var/lib/mpd/log"
state_file "/var/lib/mpd/state"
user "mpd"
group "audio"
bind_to_address "localhost"
bind_to_address "/var/lib/mpd/socket"
input {
plugin "curl"
}
mixer_type "software"
audio_output {
type "alsa"
name "ALSA Device"
device "hw:0,0"
mixer_type "software"
format "44100:24:2"
}
|
Is there any other debugging information that I need to provide to track this down?
EDIT1: This is a pretty new install, so I haven't really changed much away from the default. libav is not installed. media-video/ffmpeg is 2.6.3. emerge --info mpd gives me:
Code: | Portage 2.2.20 (python 2.7.9-final-0, default/linux/x86/13.0, gcc-4.8.4, glibc-2.20-r2, 4.0.5-gentoo i686)
=================================================================
System Settings
=================================================================
System uname: Linux-4.0.5-gentoo-i686-AMD_Athlon-tm-_XP_2900+-with-gentoo-2.2
KiB Mem: 1553280 total, 933776 free
KiB Swap: 524284 total, 524284 free
Timestamp of repository gentoo: Sun, 12 Jul 2015 19:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash: 4.3_p33-r2::gentoo
dev-lang/perl: 5.20.2::gentoo
dev-lang/python: 2.7.9-r1::gentoo, 3.3.5-r1::gentoo
dev-util/cmake: 3.2.2::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.2::gentoo
sys-apps/openrc: 0.16.4::gentoo
sys-apps/sandbox: 2.6-r1::gentoo
sys-devel/autoconf: 2.69::gentoo
sys-devel/automake: 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo
sys-devel/binutils: 2.24-r3::gentoo
sys-devel/gcc: 4.8.4::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6::gentoo
sys-devel/make: 4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc: 2.20-r2::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -march=i486 -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i486 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="acl berkdb bindist bzip2 cli cracklib crypt curl cxx dri flac fortran gdbm iconv id3tag ipv6 mad modules ncurses nls nptl ogg openmp pam pcre readline session ssl tcpd unicode vim-syntax vorbis wavpack x86 zlib" ABI_X86="32" ALSA_CARDS="CK8" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
=================================================================
Package Settings
=================================================================
media-sound/mpd-0.19.9-r1::gentoo was built with the following:
USE="alsa bzip2 curl ffmpeg fifo flac glib icu id3tag inotify ipv6 mad network ogg tcpd unicode vorbis wavpack -adplug -ao -audiofile -cdio -debug -expat -faad -fluidsynth -gme -jack -lame -libav -libmpdclient -libsamplerate -libsoxr -mikmod -mms -modplug -mpg123 -musepack -nfs -openal -opus -oss -pipe -pulseaudio -recorder -samba (-selinux) -sid -sndfile -soundcloud -sqlite -systemd -twolame -upnp -wildmidi -zeroconf -zip"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -L/usr/lib/sidplay/builders"
|
Last edited by cmcfaul on Mon Jul 13, 2015 1:09 pm; edited 1 time in total |
|
Back to top |
|
|
Ottre Tux's lil' helper
Joined: 23 Dec 2012 Posts: 129
|
Posted: Mon Jul 13, 2015 3:15 am Post subject: |
|
|
What version of libav/ffmpeg are you using?
And pls paste the output of emerge --info mpd. |
|
Back to top |
|
|
cmcfaul n00b
Joined: 21 Aug 2007 Posts: 3 Location: New Orleans
|
Posted: Mon Jul 13, 2015 1:12 pm Post subject: |
|
|
I've edited the requested information into the OP. I'll repeat it here.
libav is not installed. media-video/ffmpeg is 2.6.3
emerge --info mpd gives:
Code: | Portage 2.2.20 (python 2.7.9-final-0, default/linux/x86/13.0, gcc-4.8.4, glibc-2.20-r2, 4.0.5-gentoo i686)
=================================================================
System Settings
=================================================================
System uname: Linux-4.0.5-gentoo-i686-AMD_Athlon-tm-_XP_2900+-with-gentoo-2.2
KiB Mem: 1553280 total, 933776 free
KiB Swap: 524284 total, 524284 free
Timestamp of repository gentoo: Sun, 12 Jul 2015 19:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash: 4.3_p33-r2::gentoo
dev-lang/perl: 5.20.2::gentoo
dev-lang/python: 2.7.9-r1::gentoo, 3.3.5-r1::gentoo
dev-util/cmake: 3.2.2::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.2::gentoo
sys-apps/openrc: 0.16.4::gentoo
sys-apps/sandbox: 2.6-r1::gentoo
sys-devel/autoconf: 2.69::gentoo
sys-devel/automake: 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo
sys-devel/binutils: 2.24-r3::gentoo
sys-devel/gcc: 4.8.4::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6::gentoo
sys-devel/make: 4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc: 2.20-r2::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i486-pc-linux-gnu"
CFLAGS="-O2 -march=i486 -pipe"
CHOST="i486-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i486 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="acl berkdb bindist bzip2 cli cracklib crypt curl cxx dri flac fortran gdbm iconv id3tag ipv6 mad modules ncurses nls nptl ogg openmp pam pcre readline session ssl tcpd unicode vim-syntax vorbis wavpack x86 zlib" ABI_X86="32" ALSA_CARDS="CK8" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
=================================================================
Package Settings
=================================================================
media-sound/mpd-0.19.9-r1::gentoo was built with the following:
USE="alsa bzip2 curl ffmpeg fifo flac glib icu id3tag inotify ipv6 mad network ogg tcpd unicode vorbis wavpack -adplug -ao -audiofile -cdio -debug -expat -faad -fluidsynth -gme -jack -lame -libav -libmpdclient -libsamplerate -libsoxr -mikmod -mms -modplug -mpg123 -musepack -nfs -openal -opus -oss -pipe -pulseaudio -recorder -samba (-selinux) -sid -sndfile -soundcloud -sqlite -systemd -twolame -upnp -wildmidi -zeroconf -zip"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -L/usr/lib/sidplay/builders"
|
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|