Merge lp:~diwic/ubuntu/lucid/pulseaudio/bugfixes into lp:ubuntu/lucid/pulseaudio

Proposed by David Henningsson
Status: Needs review
Proposed branch: lp:~diwic/ubuntu/lucid/pulseaudio/bugfixes
Merge into: lp:ubuntu/lucid/pulseaudio
Diff against target: 50 lines (+27/-0)
3 files modified
debian/changelog (+6/-0)
debian/patches/0010-jack-server-shutdown.patch (+20/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~diwic/ubuntu/lucid/pulseaudio/bugfixes
Reviewer Review Type Date Requested Status
Daniel T Chen Approve
Review via email: mp+21335@code.launchpad.net

Description of the change

LP: #538815

On sink unlinking, existing sink inputs are moved, which in turn calls
a get latency callback, which references the jack client. Therefore,
make sure the sink is unlinked before the client is closed. Failure to
do so might lead to SIGSEGV.

To post a comment you must log in.
Revision history for this message
Daniel T Chen (crimsun) wrote :

I've merged this locally, but LP is taking its sweet time handling the repo pack format upgrade to 2a.

review: Approve

Unmerged revisions

119. By David Henningsson

Fix SIGSEGV on jack server shutdown

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2010-03-10 18:53:51 +0000
+++ debian/changelog 2010-03-14 21:14:14 +0000
@@ -1,3 +1,9 @@
1pulseaudio (1:0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu13) lucid; urgency=low
2
3 * Fix SIGSEGV on jack server shutdown (LP: #538815)
4
5 -- David Henningsson <diwic@ubuntu.com> Sun, 14 Mar 2010 22:03:00 +0100
6
1pulseaudio (1:0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu12) lucid; urgency=low7pulseaudio (1:0.9.22~0.9.21+stable-queue-32-g8478-0ubuntu12) lucid; urgency=low
28
3 * debian/pulseaudio.init: Remove udev from Required-* LSB headers9 * debian/pulseaudio.init: Remove udev from Required-* LSB headers
410
=== added file 'debian/patches/0010-jack-server-shutdown.patch'
--- debian/patches/0010-jack-server-shutdown.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/0010-jack-server-shutdown.patch 2010-03-14 21:14:14 +0000
@@ -0,0 +1,20 @@
1Index: pulseaudio-0.9.22~0.9.21+stable-queue-32-g8478/src/modules/jack/module-jack-sink.c
2===================================================================
3--- pulseaudio-0.9.22~0.9.21+stable-queue-32-g8478.orig/src/modules/jack/module-jack-sink.c 2010-03-14 19:55:41.344734134 +0100
4+++ pulseaudio-0.9.22~0.9.21+stable-queue-32-g8478/src/modules/jack/module-jack-sink.c 2010-03-14 20:05:54.593480089 +0100
5@@ -475,12 +475,12 @@
6 if (!(u = m->userdata))
7 return;
8
9- if (u->client)
10- jack_client_close(u->client);
11-
12 if (u->sink)
13 pa_sink_unlink(u->sink);
14
15+ if (u->client)
16+ jack_client_close(u->client);
17+
18 if (u->thread) {
19 pa_asyncmsgq_send(u->thread_mq.inq, NULL, PA_MESSAGE_SHUTDOWN, NULL, 0, NULL);
20 pa_thread_free(u->thread);
021
=== modified file 'debian/patches/series'
--- debian/patches/series 2010-03-10 18:53:51 +0000
+++ debian/patches/series 2010-03-14 21:14:14 +0000
@@ -3,6 +3,7 @@
3#0005-load-sample-dir-lazy.patch3#0005-load-sample-dir-lazy.patch
40007-esd-honour-system-pulseaudio.patch40007-esd-honour-system-pulseaudio.patch
5#0090-use-volume-ignore-for-analog-output.patch5#0090-use-volume-ignore-for-analog-output.patch
60010-jack-server-shutdown.patch
60054-mute-iec958-optical-raw-for-audigyX.patch70054-mute-iec958-optical-raw-for-audigyX.patch
70090-disable-flat-volumes.patch80090-disable-flat-volumes.patch
80091-dont-load-cork-music-on-phone.patch90091-dont-load-cork-music-on-phone.patch

Subscribers

People subscribed via source and target branches