Bug#685258: module-jack-sink: segfault in pa_init unless jackd2 >= 1.9.7

Steven Chamberlain steven at pyro.eu.org
Sat Aug 18 21:41:36 UTC 2012


Package: pulseaudio-module-jack
Version: 2.0-6
File: /usr/lib/pulse-2.0/modules/module-jack-sink.so
Severity: important

Hi,

After upgrading pulseaudio (but not libjackd2) to the version in wheezy,
I noticed it segfaulting on startup.

I conclude this was because it tries to use the new JACK latency API
which wasn't introduced until 1.9.7.

In the backtrace below, modules/jack/module-jack-sink.c:450 refers to
jack_port_get_latency_range, which I guess is inlined, and that itself
contains the code which triggers the segfault.

Indeed upgrading to libjack-jackd2-0 1.9.8~dfsg.4+20120529git007cdc37-1
(in wheezy) fixes this.  So I think perhaps pulseaudio needs some sort
of versioned dependency.

An RC bug severity might have been appropriate, except I think that
anyone doing a full apt-get upgrade would be unaffected.

Perhaps this is a jackd2 bug also.

Thanks!

> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000000000 in ?? ()
> (gdb) bt full
> #0  0x0000000000000000 in ?? ()
> No symbol table info available.
> #1  0x00007fffed9e99b9 in module_jack_sink_LTX_pa__init (m=Unhandled dwarf expression opcode 0xf3
> ) at modules/jack/module-jack-sink.c:450
>         u = <value optimized out>
>         ss = {format = PA_SAMPLE_FLOAT32LE, rate = 44100, channels = 10 '\n'}
>         map = {channels = 10 '\n', map = {PA_CHANNEL_POSITION_AUX0, PA_CHANNEL_POSITION_AUX1, PA_CHANNEL_POSITION_FRONT_LEFT, PA_CHANNEL_POSITION_FRONT_RIGHT, 
>             PA_CHANNEL_POSITION_AUX2, PA_CHANNEL_POSITION_AUX3, PA_CHANNEL_POSITION_AUX4, PA_CHANNEL_POSITION_AUX5, PA_CHANNEL_POSITION_AUX6, PA_CHANNEL_POSITION_AUX7, 
>             PA_CHANNEL_POSITION_INVALID <repeats 22 times>}}
>         ma = 0x632ac0
>         status = 0
>         server_name = 0x0
>         client_name = <value optimized out>
>         channels = 10
>         do_connect = true
>         i = <value optimized out>
>         ports = 0x646820
>         p = <value optimized out>
>         data = {name = 0x64a830 "jack-sink", proplist = 0x657150, driver = 0x7fffed9e9f68 "modules/jack/module-jack-sink.c", module = 0x632db0, card = 0x0, ports = 0x0, 
>           active_port = 0x0, sample_spec = {format = PA_SAMPLE_FLOAT32LE, rate = 44100, channels = 10 '\n'}, channel_map = {channels = 10 '\n', map = {
>               PA_CHANNEL_POSITION_AUX0, PA_CHANNEL_POSITION_AUX1, PA_CHANNEL_POSITION_FRONT_LEFT, PA_CHANNEL_POSITION_FRONT_RIGHT, PA_CHANNEL_POSITION_AUX2, 
>               PA_CHANNEL_POSITION_AUX3, PA_CHANNEL_POSITION_AUX4, PA_CHANNEL_POSITION_AUX5, PA_CHANNEL_POSITION_AUX6, PA_CHANNEL_POSITION_AUX7, 
>               PA_CHANNEL_POSITION_INVALID <repeats 22 times>}}, alternate_sample_rate = 0, volume = {channels = 10 '\n', values = {65536, 65536, 65536, 65536, 65536, 65536, 
>               65536, 65536, 65536, 65536, 0 <repeats 22 times>}}, muted = false, sample_spec_is_set = true, channel_map_is_set = true, alternate_sample_rate_is_set = false, 
>           volume_is_set = false, muted_is_set = false, namereg_fail = false, save_port = false, save_volume = false, save_muted = false}
>         r = {min = 0, max = 0}
>         n = <value optimized out>
>         __func__ = "module_jack_sink_LTX_pa__init"
>         __PRETTY_FUNCTION__ = "module_jack_sink_LTX_pa__init"

-- System Information:
Debian Release: 6.0.5
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-3+dsdt1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pulseaudio-module-jack depends on:
ii  libc6                     2.13-33        Embedded GNU C Library:
Shared lib
ii  libcap2                   1:2.19-3       support for getting/setting
POSIX.
ii  libdbus-1-3               1.6.0-1        simple interprocess
messaging syst
ii  libjack-jackd2-0 [libjack 1.9.6~dfsg.1-2 JACK Audio Connection Kit
(librari
ii  libpulse0                 2.0-6          PulseAudio client libraries
ii  pulseaudio                2.0-6          PulseAudio sound server

pulseaudio-module-jack recommends no packages.

pulseaudio-module-jack suggests no packages.

-- no debconf information



More information about the pkg-pulseaudio-devel mailing list