Bug 67991

Summary: Pulseaudio hangs on startup
Product: PulseAudio Reporter: Mateusz Karwowski <sekstus.empiryk>
Component: coreAssignee: pulseaudio-bugs
Status: RESOLVED INVALID QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: lennart
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Pulseaudio log.
Pulse audio log with gconf disabled
Pulse audio log with gconf
List of installed software

Description Mateusz Karwowski 2013-08-11 11:26:43 UTC
Created attachment 83931 [details]
Pulseaudio log.

When I start pulseaudio I got this output(attached to this report) and next it hangs untill killed. If I start pulseaudio then it says that it's establishing connection to Pulseaudio, similarly it doesn't change until pulseaudio is killed. I don't know which information is relevant so please just tell me and I will deliver.
Comment 1 Tanu Kaskinen 2013-08-12 09:53:19 UTC
Is the CPU load high during the hang? It seems like the loading of module-combine-sink is hanging. Can you reproduce the hang if you comment out module-gconf in /etc/pulse/default.pa, and load module-combine-sink with this command after pulseaudio has started?

    pactl load-module module-combine-sink

(In your current configuration module-combine-sink is loaded by module-gconf.)

I can't reproduce this bug either via module-gconf or via pactl. Could you provide a backtrace of the hang, that is, run pulseaudio in gdb:

   gdb --args pulseaudio -vvv
   (gdb) run
   <wait for the hang>
   <Ctrl-C>
   thread apply all bt full

For the backtrace to be useful, you need to have debug symbols installed for pulseaudio before running gdb. It's distribution specific how to install the debug symbols, so I can't give exact steps.
Comment 2 Mateusz Karwowski 2013-08-12 11:05:44 UTC
Created attachment 83960 [details]
Pulse audio log with gconf disabled
Comment 3 Mateusz Karwowski 2013-08-12 11:06:17 UTC
Created attachment 83961 [details]
Pulse audio log with gconf
Comment 4 Mateusz Karwowski 2013-08-12 11:07:16 UTC
Created attachment 83962 [details]
List of installed software
Comment 5 Mateusz Karwowski 2013-08-12 11:07:26 UTC
Actually after reporting bug yesterday I was keep looking for solution myself. It turned out there were some group issues with audio. I fixed them, and pulseaudio still hangs on startup but in different place.
Anyway I started pulseaudio without module gconf, however result is same as with it loaded now.
I suspect problem may be with fact that I'm using libphtread-stubs. Removing it is almost impossible now, so if it is in fact my problem then maybe there is a way to compile pulseaudio and maybe few more libs to use regular libthread. For the sake of completeness my version of libthread-stubs is 2.0.

I'm attaching logs with module gconf and without is. Probably they report the same.

Logs attached. Additional one with everything what is installed on my system.
Comment 6 Tanu Kaskinen 2013-08-12 11:30:24 UTC
Pulseaudio indeed won't work with libpthread-stubs. I'll close this bug.
Comment 7 Mateusz Karwowski 2013-08-12 11:32:08 UTC
How can I compile pulseaudio so it avoid using libpthread-stubs?
Comment 8 Tanu Kaskinen 2013-08-12 11:39:36 UTC
I don't know, I'm not that familiar with libpthread-stubs. One fool-proof way is to not have libpthread-stubs installed when compiling (or when running, if the library completely replaces libpthread).

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.