Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 202713

Summary: media-sound/pulseaudio-0.9.8-r2 fails to start
Product: Gentoo Linux Reporter: Christoph Brill (egore) (RESIGNED) <egore>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christoph Brill (egore) (RESIGNED) 2007-12-18 18:03:09 UTC
When I boot my system and don't start X11/gdm and try to start pulseaudio. It fails. So I did:

pulseaudio --system

and got:

W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Die Operation ist nicht erlaubt
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Die Operation ist nicht erlaubt
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
E: x11wrap.c: XOpenDisplay() failed
E: module.c: Failed to load  module "module-x11-publish" (argument: ""): initialization failed.
E: main.c: Module load failed.
E: main.c: failed to initialize daemon.

So I thougt: Well let's start X and then start pulseaudio. And I tries "pulseaudio --system" and it failed with:

W: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
W: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
ALSA lib control.c:909:(snd_ctl_open_noupdate) Invalid CTL front:0
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

E: x11wrap.c: XOpenDisplay() failed
E: module.c: Failed to load  module "module-x11-publish" (argument: ""): initialization failed.
E: main.c: Module load failed.
E: main.c: failed to initialize daemon.

I can work around the later issue by doing "xhost local:root" as normal user first but that's not a long time solution.

Reproducible: Always

Steps to Reproduce:




Portage 2.1.4_rc10 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.23-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Timestamp of tree: Tue, 18 Dec 2007 17:30:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64 -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=athlon64 -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer multilib-strict sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirror.muntinternet.net/pub/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/sunrise /usr/local/overlays/java-overlay /usr/local/overlays/sajinet /usr/local/overlays/gentoo-de /usr/local/overlays/gnome-experimental /usr/local/overlays/portage /usr/local/overlays/java-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X a52 aac acl acpi adns aiglx alsa amd64 apache2 applet artworkextra avahi berkdb bitmap-fonts bluetooth bzip2 cairo cddb cdr cegui cg cli cpufreq cracklib crypt ctype cups curl daap dbus devhelp device-mapper dri dts dvd dvdnav dvdr dvdread eds epiphany exif extraengine fam ffmpeg firefox flac fontconfig foomaticdb fortran galago gcc4 gdbm gdm gedit gif gimp glade glitz glsa glut gnome gphoto2 gpm gsf gstreamer gtk guile hal hash hddtemp howl-compat http ical iconv imlib inherit-graph inkjar innodb iproute2 ipv6 isdnlog java javascript joystick jpeg jpeg2k keyring lcms libnotify libvisual lm_sensors mad maildir mdnsresponder-compat midi mmx mmxext mono mp3 mpeg mpeg2 mplayer mudflap mysql mysqli nautilus ncurses nforce2 nls nptl nptlonly nsplugin obex ogg openal opengl openmp openvpn pam pcre pdf pdo perl php pic png portage postfix postscript ppds pppd pulseaudio python quicktime rar readline reflection samba scanner sdl session shout smp snmp soup sourceview spell spl sqlite sse sse2 ssl ssse3 subversion svg tagwriting tcpd tga theora threads tidy tiff tracker truetype truetype-fonts type1 type1-fonts unicode usb valgrind vim vim-syntax visualization vorbis wmf x264 xattr xiph xml xorg xpm xv xvid zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" CAMERAS="canon casio_qv" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse wacom joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


media-sound/pulseaudio: 0.9.8-r2
x11-base/xorg-server: 1.4.0.90
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-12-19 01:39:58 UTC
The problem is not the X11 message, that's correct to read.
The problem is the Invalid CTL I'd say.

Please also note that if you enable X USE for pulseaudio, you should not be using the systemwide instance.
Comment 2 Christoph Brill (egore) (RESIGNED) 2007-12-20 19:54:53 UTC
If I don't do "xhost local:root" first, startup failes.
If I do, startup is fine.
I still get the CTL warning/error, but pulseaudio is working fine.

Could you explain what you mean by "Please also note that if you enable X USE for pulseaudio, you should not be using the systemwide instance." Does this mean that if I have X in my use flags it's wrong to run "pulseaudio --system"? So the deamon is running as the logged in user?
Comment 3 Christoph Brill (egore) (RESIGNED) 2007-12-20 20:16:11 UTC
On a sidenote: I dropped the X useflag and pulseaudio started without complaining.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-12-29 17:35:28 UTC
Really the only thing I can do is point to the documentation where X USE flag is declared as conflicting with system-wide instance. I'll see if I can write some extra documentation in the next weeks.