Having pulseaudio installed causes segmentation fault when exiting from playing video

Bug #366002 reported by Andy
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MythTV
Invalid
Unknown
Mythbuntu
Won't Fix
High
Unassigned

Bug Description

Hi, after upgrade from 8.10 to 9.04 (stable) I consistently get a segmentation fault when exiting from playing video. The last line in the console is

2009-04-24 11:32:57.358 TV: Attempting to change from WatchingPreRecorded to None

This happend when exiting from playing recordings and also exiting from live tv.

I have attached the backtrace and valgrind output.

Revision history for this message
Andy (acc-launchpad) wrote :
Revision history for this message
Andy (acc-launchpad) wrote :
Revision history for this message
MarcRandolph (mrand) wrote :

Upstream mythtv trac 6415 describes a very similar problem

Changed in mythbuntu:
importance: Undecided → Medium
status: New → Confirmed
Changed in mythtv:
status: Unknown → Confirmed
Revision history for this message
LeeWells (gtp-tj) wrote :

I'm seeing the exact same problem, and found that un-installing pulseaudio fixes it.

I debugged it a bit. Its the SpawnDecode thread that segfaults, but it only happens after SpawnDecode returns. After chasing it a bit further, it seems the problem is happenning during audio initialization down in snd_pcm_open() in libasound2.... but this is my first time trying to debug MythTV & libasound2, so that bit of info should be verified by someone more familiar with that code.

But chasing it into libasound2 is what prompted me to try removing pulseaudio.

Revision history for this message
LeeWells (gtp-tj) wrote :

A bit more info here:
https://bugs.launchpad.net/ubuntu/+source/vlc/+bug/368996

Problem came back when I reinstalled pulseaudio, but re-installing libavcodec and libavutil seems
to have fixed it.

Revision history for this message
Andy (acc-launchpad) wrote :

yes, that fixed it for me too. Uninstalled pulseaudio, rebooted. Problem fixed. Installed pulseaudio and problem returned. Marked libavutil49 3:0.svn20090303-1ubuntu6 and libavcodec52 3:0.svn20090303-1ubuntu6 for re-install in synaptic and this resolved the problem.

Changed in mythtv:
status: Confirmed → Unknown
Changed in mythtv:
status: Unknown → Invalid
MarcRandolph (mrand)
summary: - segmentation fault when exiting from playing video
+ Having pulseaudio installed causes segmentation fault when exiting from
+ playing video
Revision history for this message
harvest316 (harvest316) wrote :

Uninstalled pulseaudio and it fixed it.
What was the good of pulseaudio anyway?
Am hoping someone will post here when this bug is fixed, so I can reinstall pulseaudio, if anyone can explain why I need it.

PS: You have to uninstall ubuntu-desktop too, but this has no impact as its just a wrapper.

Revision history for this message
Garry Leach (garry-leach) wrote :

I followed the steps as mentioned by Andy, but I had the same result as kit on (on bug report 366002). So I uninstalled pulseaudio, & Myth seems OK now.

Like harvest316, I would be interested to know what pulseaudio is for.

Revision history for this message
MarcRandolph (mrand) wrote :
Changed in mythbuntu:
importance: Medium → High
status: Confirmed → Triaged
Revision history for this message
MarcRandolph (mrand) wrote :

We're going to have to live with work-arounds regarding pulseaudio until things settle down more. Thank you for your bug report, and please do not let the closing of this bug deter you from opening bugs regarding other problems you find with Mythbuntu!

Changed in mythbuntu:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.