Bug 530004 - pulseaudio segfault with jack plugin
Summary: pulseaudio segfault with jack plugin
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: pulseaudio
Version: 13
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 555960 559529 564971 584087 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-21 06:09 UTC by Matt Hirsch
Modified: 2011-06-27 14:27 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-27 14:27:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Matt Hirsch 2009-10-21 06:09:10 UTC
Description of problem: When playing audio through pulseaudio while using the jack-sink using some programs, pulseaudio segfaults.

paplay always causes a segfault, while mplayer -ao pulse never does. Some programs that play through the alsa plug do not cause a problem (firefox) and some do (xbmc).

Version-Release number of selected component (if applicable):

pulseaudio-module-jack-0.9.15-17.fc11.i586
pulseaudio-0.9.15-17.fc11.i586
jack-audio-connection-kit-0.116.1-5.fc11.i586

How reproducible:
Always

Steps to Reproduce:
1. Add the following lines to /etc/pulse/default.pa:

.ifexists module-jack-sink.so
.nofail
load-module module-jack-sink sink_name=puff-jack-output channels=6 connect=false
.fail
.endif

I added these lines after the RTP section.

2. Launch jackd: jackd -R -dalsa -djack51 -r48000 -n4 -o6 -P -p1024 &
3. Relaunch the pulseaudio daemon
4. paplay /usr/share/sounds/warning.wav
  
Actual results:

The pulseaudio daemon dies after the sound is played. The following message appears in the system log:

pulseaudio[32189]: segfault at b7423949 ip 0090075a sp b26fcf1c error 4 in libjack.so.0.0.28[8f8000+11000]

Expected results:

The pulseaudio daemon does not segfault after the sound is played.

Additional info:

Running pulseaudio from the terminal and attempting the above gives:
$ pulseaudio
W: pid.c: Stale PID file, overwriting.
W: module-jack-sink.c: JACK error >zombified - calling shutdown handler<
N: alsa-source.c: Increasing wakeup watermark to 30.00 ms
Segmentation fault

Running in verbose mode seems to prevent the crash, but still causes an Abort. Note that alsa fails because jack is running (expected):

$ pulseaudio -v
I: main.c: We're in the group 'pulse-rt', allowing high-priority scheduling.
I: main.c: We're in the group 'pulse-rt', allowing real-time scheduling.
I: main.c: RLIMIT_RTPRIO is set to 99, allowing real-time scheduling.
I: main.c: RLIMIT_NICE is set to 40, allowing high-priority scheduling.
I: core-util.c: Successfully gained nice level -11.
I: main.c: Giving up CAP_NICE
I: main.c: This is PulseAudio 0.9.15
I: main.c: Page size is 4096 bytes
I: main.c: Machine ID is 03915f3e108fe94a48048100463a06ad.
I: main.c: Using runtime directory /home/media/.pulse/03915f3e108fe94a48048100463a06ad:runtime.
I: main.c: Using state directory /home/media/.pulse.
I: main.c: Running in system mode: no
W: pid.c: Stale PID file, overwriting.
I: main.c: Fresh high-resolution timers available! Bon appetit!
I: module-device-restore.c: Sucessfully opened database file '/home/media/.pulse/03915f3e108fe94a48048100463a06ad:device-volumes.i386-redhat-linux-gnu.gdbm'.
I: module.c: Loaded "module-device-restore" (index: #0; argument: "").
I: module-stream-restore.c: Sucessfully opened database file '/home/media/.pulse/03915f3e108fe94a48048100463a06ad:stream-volumes.i386-redhat-linux-gnu.gdbm'.
I: module.c: Loaded "module-stream-restore" (index: #1; argument: "").
I: module-card-restore.c: Sucessfully opened database file '/home/media/.pulse/03915f3e108fe94a48048100463a06ad:card-database.i386-redhat-linux-gnu.gdbm'.
I: module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: module.c: Loaded "module-augment-properties" (index: #3; argument: "").
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D0p failed
I: alsa-util.c: Error opening PCM device hw:0: Device or resource busy
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D0p failed
I: alsa-util.c: Error opening PCM device front:0: Device or resource busy
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D0p failed
I: alsa-util.c: Error opening PCM device hw:0: Device or resource busy
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D0p failed
I: alsa-util.c: Error opening PCM device iec958:0: Device or resource busy
I: (alsa-lib)conf.c: Unknown parameters 0
I: (alsa-lib)pcm.c: Unknown PCM hdmi:0
I: alsa-util.c: Error opening PCM device hdmi:0: Invalid argument
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D0p failed
I: alsa-util.c: Error opening PCM device surround40:0: Device or resource busy
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: No such file or directory
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D0p failed
I: alsa-util.c: Error opening PCM device surround41:0: Device or resource busy
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D0p failed
I: alsa-util.c: Error opening PCM device surround50:0: Device or resource busy
I: (alsa-lib)pcm_hw.c: open /dev/snd/pcmC0D0p failed
I: alsa-util.c: Error opening PCM device surround51:0: Device or resource busy
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: No such file or directory
I: (alsa-lib)conf.c: Unknown parameters 0
I: (alsa-lib)pcm.c: Unknown PCM surround71:0
I: alsa-util.c: Error opening PCM device surround71:0: Invalid argument
I: alsa-util.c: Failed to set hardware parameters on plug:hw:0: Invalid argument
I: module-alsa-card.c: Found profile 'Input Analog Stereo'
I: module-alsa-card.c: Found profile 'Input Digital Stereo (IEC958)'
I: (alsa-lib)conf.c: Unknown parameters 0
I: (alsa-lib)pcm.c: Unknown PCM hdmi:0
I: alsa-util.c: Error opening PCM device hdmi:0: Invalid argument
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround40:0: Invalid argument
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: No such file or directory
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround41:0: Invalid argument
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround50:0: Invalid argument
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: (alsa-lib)pcm_params.c: Slave PCM not usable
I: alsa-util.c: Failed to set hardware parameters on plug:surround51:0: Invalid argument
I: (alsa-lib)pcm.c: Unknown PCM a52:0
I: alsa-util.c: Error opening PCM device a52:0: No such file or directory
I: (alsa-lib)conf.c: Unknown parameters 0
I: (alsa-lib)pcm.c: Unknown PCM surround71:0
I: alsa-util.c: Error opening PCM device surround71:0: Invalid argument
I: card.c: Created 0 "alsa_card.pci_1039_7012_sound_card_0"
I: alsa-source.c: Successfully opened device front:0.
I: alsa-source.c: Selected configuration 'Analog Stereo' (analog-stereo).
I: alsa-source.c: Successfully enabled mmap() mode.
I: alsa-source.c: Successfully enabled timer-based scheduling mode.
I: (alsa-lib)control.c: Invalid CTL front:0
I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory
I: alsa-util.c: Successfully attached to mixer 'hw:0'
I: alsa-util.c: Using mixer control "Capture".
I: module-device-restore.c: Restoring volume for source alsa_input.pci_1039_7012_sound_card_0.
I: module-device-restore.c: Restoring mute state for source alsa_input.pci_1039_7012_sound_card_0.
I: source.c: Created source 0 "alsa_input.pci_1039_7012_sound_card_0" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: source.c:     alsa.resolution_bits = "16"
I: source.c:     alsa.mixer_element = "Capture"
I: source.c:     device.api = "alsa"
I: source.c:     device.class = "sound"
I: source.c:     alsa.class = "generic"
I: source.c:     alsa.subclass = "generic-mix"
I: source.c:     alsa.name = "SiS SI7012"
I: source.c:     alsa.id = "Intel ICH"
I: source.c:     alsa.subdevice = "0"
I: source.c:     alsa.subdevice_name = "subdevice #0"
I: source.c:     alsa.device = "0"
I: source.c:     alsa.card = "0"
I: source.c:     alsa.card_name = "SiS SI7012"
I: source.c:     alsa.long_card_name = "SiS SI7012 with AD1980 at irq 18"
I: source.c:     alsa.driver_name = "snd_intel8x0"
I: source.c:     device.bus = "pci"
I: source.c:     device.vendor.id = "1039"
I: source.c:     device.vendor.name = "Silicon Integrated Systems [SiS]"
I: source.c:     device.product.id = "7012"
I: source.c:     device.product.name = "AC'97 Sound Controller"
I: source.c:     device.form_factor = "internal"
I: source.c:     device.bus_path = "/devices/pci0000:00/0000:00:02.7/sound/card0"
I: source.c:     hal.udi = "/org/freedesktop/Hal/devices/pci_1039_7012_sound_card_0"
I: source.c:     hal.product = "SiS SI7012 with AD1980 Sound Card"
I: source.c:     hal.card_id = "SiS SI7012 with AD1980"
I: source.c:     device.string = "front:0"
I: source.c:     device.buffering.buffer_size = "65536"
I: source.c:     device.buffering.fragment_size = "65536"
I: source.c:     device.access_mode = "mmap+timer"
I: source.c:     device.profile.name = "analog-stereo"
I: source.c:     device.profile.description = "Analog Stereo"
I: source.c:     device.description = "Internal Audio"
I: source.c:     device.icon_name = "audio-card-pci"
I: alsa-source.c: Using 1 fragments of size 65536 bytes, buffer time is 371.52ms
I: alsa-source.c: Time scheduling watermark is 20.00ms
I: alsa-source.c: Volume ranges from 0 to 15.
I: alsa-source.c: Volume ranges from 0.00 dB to 22.50 dB.
I: alsa-source.c: Fixing base volume to -22.50 dB
I: alsa-util.c: All 2 channels can be mapped to mixer channels.
I: alsa-source.c: Using hardware volume control. Hardware dB scale supported.
I: core-util.c: Successfully enabled SCHED_FIFO scheduling for thread, with priority 5.
I: module.c: Loaded "module-alsa-card" (index: #4; argument: "device_id=0 name=pci_1039_7012_sound_card_0 card_name=alsa_card.pci_1039_7012_sound_card_0 tsched=1").
I: module-hal-detect.c: Loaded 1 modules.
I: module.c: Loaded "module-hal-detect" (index: #5; argument: "").
I: module.c: Loaded "module-esound-protocol-unix" (index: #6; argument: "").
I: module.c: Loaded "module-native-protocol-unix" (index: #7; argument: "").
I: module-jack-sink.c: Successfully connected as 'PulseAudio JACK Sink-14'
I: module-device-restore.c: Restoring volume for sink puff-jack-output.
I: module-device-restore.c: Restoring mute state for sink puff-jack-output.
I: sink.c: Created sink 0 "puff-jack-output" with sample spec float32le 6ch 48000Hz and channel map front-left,front-right,rear-left,rear-right,front-center,lfe
I: sink.c:     device.api = "jack"
I: sink.c:     device.description = "Jack sink (PulseAudio JACK Sink-14)"
I: sink.c:     jack.client_name = "PulseAudio JACK Sink-14"
I: sink.c:     device.icon_name = "audio-card"
I: module-device-restore.c: Restoring volume for source puff-jack-output.monitor.
I: module-device-restore.c: Restoring mute state for source puff-jack-output.monitor.
I: source.c: Created source 1 "puff-jack-output.monitor" with sample spec float32le 6ch 48000Hz and channel map front-left,front-right,rear-left,rear-right,front-center,lfe
I: source.c:     device.description = "Monitor of Jack sink (PulseAudio JACK Sink-14)"
I: source.c:     device.class = "monitor"
I: source.c:     device.icon_name = "audio-input-microphone"
I: core-util.c: Successfully enabled SCHED_FIFO scheduling for thread, with priority 5.
I: module-jack-sink.c: JACK thread starting up.
I: core-util.c: Successfully enabled SCHED_FIFO scheduling for thread, with priority 9.
I: module.c: Loaded "module-jack-sink" (index: #8; argument: "sink_name=puff-jack-output channels=6 connect=false").
I: module.c: Loaded "module-gconf" (index: #9; argument: "").
I: module-default-device-restore.c: Restored default sink 'puff-jack-output'.
I: module-default-device-restore.c: Restored default source 'alsa_input.pci_1039_7012_sound_card_0'.
I: module.c: Loaded "module-default-device-restore" (index: #10; argument: "").
I: module.c: Loaded "module-rescue-streams" (index: #11; argument: "").
I: module.c: Loaded "module-always-sink" (index: #12; argument: "").
I: module.c: Loaded "module-suspend-on-idle" (index: #13; argument: "").
I: module.c: Loaded "module-console-kit" (index: #14; argument: "").
I: module.c: Loaded "module-position-event-sounds" (index: #15; argument: "").
I: module.c: Loaded "module-cork-music-on-phone" (index: #16; argument: "").
I: main.c: Daemon startup complete.
I: alsa-source.c: Overrun!
N: alsa-source.c: Increasing wakeup watermark to 30.00 ms
I: alsa-source.c: Overrun!
N: alsa-source.c: Increasing wakeup watermark to 40.00 ms
I: alsa-source.c: Overrun!
N: alsa-source.c: Increasing wakeup watermark to 50.00 ms
I: module-suspend-on-idle.c: Source alsa_input.pci_1039_7012_sound_card_0 idle for too long, suspending ...
I: alsa-source.c: Device suspended...
I: module-suspend-on-idle.c: Sink puff-jack-output idle for too long, suspending ...
I: client.c: Created 0 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=500 gid=500 success=1
I: resampler.c: Using resampler 'speex-float-3'
I: resampler.c: Using float32le as working format.
I: resampler.c: Choosing speex quality setting 3.
I: sink-input.c: Created input 0 "/usr/share/sounds/warning.wav" on puff-jack-output with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: protocol-native.c: Requested tlength=250.00 ms, minreq=20.00 ms
I: protocol-native.c: Final latency 540.00 ms = 250.00 ms + 2*20.00 ms + 250.00 ms
W: module-jack-sink.c: JACK error >zombified - calling shutdown handler<
I: module-jack-sink.c: JACK thread shutting down.
I: module.c: Unloading "module-jack-sink" (index: #8).
I: module-device-restore.c: Restoring volume for sink auto_null.
I: module-device-restore.c: Restoring mute state for sink auto_null.
I: sink.c: Created sink 1 "auto_null" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: sink.c:     device.description = "Null Output"
I: sink.c:     device.class = "abstract"
I: sink.c:     device.icon_name = "audio-card"
I: module-device-restore.c: Restoring volume for source auto_null.monitor.
I: module-device-restore.c: Restoring mute state for source auto_null.monitor.
I: source.c: Created source 2 "auto_null.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: source.c:     device.description = "Monitor of Null Output"
I: source.c:     device.class = "monitor"
I: source.c:     device.icon_name = "audio-input-microphone"
I: module.c: Loaded "module-null-sink" (index: #17; argument: "sink_name=auto_null").
W: module-jack-sink.c: JACK error >hung in loop copying position A<
Abort

Comment 1 Lennart Poettering 2009-10-21 15:28:01 UTC
That's actually not a segfault, but instead some internal thing in Jack I believe.

Please provide a stacktrace of this abort!

Comment 2 Matt Hirsch 2009-10-21 19:06:31 UTC
Here is a backtrace from the above scenario, running "paplay /usr/share/sounds/warning.wav".

(gdb) handle SIG63 noprint
Signal        Stop	Print	Pass to program	Description
SIG63         No	No	Yes		Real-time event 63
(gdb) run
Starting program: /usr/bin/pulseaudio 
[Thread debugging using libthread_db enabled]
W: pid.c: Stale PID file, overwriting.
warning: .dynamic section for "/usr/lib/libhal.so.1" is not at the expected address
warning: difference appears to be caused by prelink, adjusting expectations
Detaching after fork from child process 3226.
W: reserve-wrap.c: Unable to contact D-Bus session bus: org.freedesktop.DBus.Error.Spawn.ExecFailed: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
[New Thread 0xb3dc2b70 (LWP 3227)]
[New Thread 0xb31ffb70 (LWP 3228)]
Detaching after fork from child process 3229.
[New Thread 0xb25feb70 (LWP 3230)]
[New Thread 0xb3388b70 (LWP 3231)]
Detaching after fork from child process 3232.
N: alsa-source.c: Increasing wakeup watermark to 30.00 ms
Detaching after fork from child process 3233.
W: main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.Spawn.ExecFailed: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.
N: alsa-source.c: Increasing wakeup watermark to 40.00 ms
N: alsa-source.c: Increasing wakeup watermark to 50.00 ms
N: alsa-source.c: Increasing wakeup watermark to 60.00 ms

----====== run paplay here ======----

W: module-jack-sink.c: JACK error >zombified - calling shutdown handler<
[Thread 0xb3388b70 (LWP 3231) exited]
[Thread 0xb31ffb70 (LWP 3228) exited]
[New Thread 0xb31ffb70 (LWP 3237)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb25feb70 (LWP 3230)]
0x0090075a in jack_port_get_total_latency (client=0x8634ec0, port=0x7) at port.c:501
501		return port->shared->total_latency;
(gdb) bt
#0  0x0090075a in jack_port_get_total_latency (client=0x8634ec0, port=0x7) at port.c:501
#1  0x00740afb in pa_sink_process_msg (o=0x8634ec0, code=10, userdata=0x8642030, offset=0, chunk=0xb25fe1b4) at pulsecore/sink.c:1547
#2  0x0026e16a in sink_process_msg (o=0x8634ec0, code=10, data=0x8642030, offset=0, memchunk=0xb25fe1b4)
    at modules/module-jack-sink.c:195
#3  0x006ff180 in pa_asyncmsgq_dispatch (object=0x8634ec0, code=10, userdata=0x8642030, offset=0, memchunk=0xb25fe1b4)
    at pulsecore/asyncmsgq.c:322
#4  0x00724b32 in asyncmsgq_read_work (i=0x8632e90) at pulsecore/rtpoll.c:730
#5  0x00723249 in pa_rtpoll_run (p=0x86322c0, wait=true) at pulsecore/rtpoll.c:341
#6  0x0026e4e3 in thread_func (userdata=0x8632178) at modules/module-jack-sink.c:235
#7  0x008e17a4 in internal_thread_func (userdata=0x86352c8) at pulsecore/thread-posix.c:72
#8  0x00ca5935 in start_thread (arg=0xb25feb70) at pthread_create.c:297
#9  0x00bda94e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
(gdb) print port
$1 = (jack_port_t *) 0x7

Comment 3 Lennart Poettering 2009-10-26 23:48:13 UTC
Hmm, interesting. Seems we are passing an invalid 'port' pointer

Comment 4 Matt Hirsch 2010-01-26 01:32:05 UTC
This is still a problem on Fedora 12

pulseaudio-module-jack-0.9.21-2.fc12.i686
pulseaudio-0.9.21-2.fc12.i686
jack-audio-connection-kit-0.118.0-1.fc12.i686

Comment 5 Lennart Poettering 2010-02-01 01:29:49 UTC
*** Bug 559529 has been marked as a duplicate of this bug. ***

Comment 6 Lennart Poettering 2010-02-01 01:32:06 UTC
*** Bug 555960 has been marked as a duplicate of this bug. ***

Comment 7 Lennart Poettering 2010-02-23 02:26:42 UTC
*** Bug 564971 has been marked as a duplicate of this bug. ***

Comment 8 Matt Hirsch 2010-04-13 06:24:48 UTC
I tested this again with pulseaudio-0.9.21-5.fc12.i686.

I don't get the same segfault that I got before. However, things still don't work correctly. I get the message "JACK error >zombified - calling shutdown handler<". However, jackd continues running and accepting new connections. Are you asserting that this is an error in jack? If so could you give me a suggestion about where to start looking?

Here is verbose output:

$ pulseaudio -v
I: core-util.c: Successfully gained nice level -11.
I: main.c: This is PulseAudio 0.9.21
I: main.c: Page size is 4096 bytes
I: main.c: Machine ID is 903b4a098a350de9ce85347d4b3b411a.
I: main.c: Using runtime directory /home/media/.pulse/903b4a098a350de9ce85347d4b3b411a-runtime.
I: main.c: Using state directory /home/media/.pulse.
I: main.c: Using modules directory /usr/lib/pulse-0.9.21/modules.
I: main.c: Running in system mode: no
I: main.c: Fresh high-resolution timers available! Bon appetit!
I: cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 
I: svolume_mmx.c: Initialising MMX optimized functions.
I: remap_mmx.c: Initialising MMX optimized remappers.
I: svolume_sse.c: Initialising SSE2 optimized functions.
I: remap_sse.c: Initialising SSE2 optimized remappers.
I: sconv_sse.c: Initialising SSE2 optimized conversions.
I: module-udev-detect.c: Found 1 cards.
I: module.c: Loaded "module-udev-detect" (index: #0; argument: "").
I: module.c: Loaded "module-native-protocol-unix" (index: #1; argument: "").
I: module-jack-sink.c: Successfully connected as 'PulseAudio JACK Sink'
I: sink.c: Created sink 0 "puff-jack-output" with sample spec float32le 2ch 48000Hz and channel map front-left,front-right
I: sink.c:     device.api = "jack"
I: sink.c:     device.description = "Jack sink (PulseAudio JACK Sink)"
I: sink.c:     jack.client_name = "PulseAudio JACK Sink"
I: sink.c:     device.icon_name = "audio-card"
I: source.c: Created source 0 "puff-jack-output.monitor" with sample spec float32le 2ch 48000Hz and channel map front-left,front-right
I: source.c:     device.description = "Monitor of Jack sink (PulseAudio JACK Sink)"
I: source.c:     device.class = "monitor"
I: source.c:     device.icon_name = "audio-input-microphone"
I: core-util.c: Successfully enabled SCHED_RR scheduling for thread, with priority 5.
I: module-jack-sink.c: JACK thread starting up.
I: core-util.c: Successfully enabled SCHED_RR scheduling for thread, with priority 9.
I: module-jack-sink.c: Connecting PulseAudio JACK Sink:front-left to system:playback_1
I: module-jack-sink.c: Connecting PulseAudio JACK Sink:front-right to system:playback_2
I: module.c: Loaded "module-jack-sink" (index: #2; argument: "sink_name=puff-jack-output channels=2").
I: main.c: Daemon startup complete.
I: client.c: Created 0 "Native client (UNIX socket client)"
I: protocol-native.c: Got credentials: uid=500 gid=500 success=1
I: resampler.c: Using resampler 'speex-float-3'
I: resampler.c: Using float32le as working format.
I: resampler.c: Choosing speex quality setting 3.
I: sink-input.c: Created input 0 "/usr/share/sounds/purple/send.wav" on puff-jack-output with sample spec s16le 2ch 22050Hz and channel map front-left,front-right
I: sink-input.c:     media.software = "GoldWave (C) Chris S. Craig, http://www.goldwave.com"
I: sink-input.c:     media.date = "2004-08-19"
I: sink-input.c:     media.format = "WAV (Microsoft)"
I: sink-input.c:     application.name = "paplay"
I: sink-input.c:     media.name = "/usr/share/sounds/purple/send.wav"
I: sink-input.c:     native-protocol.peer = "UNIX socket client"
I: sink-input.c:     native-protocol.version = "16"
I: sink-input.c:     application.process.id = "4497"
I: sink-input.c:     application.process.user = "media"
I: sink-input.c:     application.process.host = "puff"
I: sink-input.c:     application.process.binary = "pacat"
I: sink-input.c:     application.language = "en_US.UTF-8"
I: sink-input.c:     window.x11.display = ":0"
I: sink-input.c:     application.process.machine_id = "903b4a098a350de9ce85347d4b3b411a"
I: protocol-native.c: Requested tlength=2000.00 ms, minreq=20.00 ms
I: protocol-native.c: Final latency 2250.00 ms = 1960.00 ms + 2*20.00 ms + 250.00 ms
W: module-jack-sink.c: JACK error >zombified - calling shutdown handler<
I: module-jack-sink.c: JACK thread shutting down.
I: module.c: Unloading "module-jack-sink" (index: #2).
I: sink-input.c: Freeing input 0 "/usr/share/sounds/purple/send.wav"
I: sink.c: Freeing sink 0 "puff-jack-output"
I: source.c: Freeing source 0 "puff-jack-output.monitor"
I: module.c: Unloaded "module-jack-sink" (index: #2).
I: client.c: Freed 0 "paplay"
I: protocol-native.c: Connection died.
I: core.c: We are idle, quitting...
I: main.c: Daemon shutdown initiated.
I: module.c: Unloading "module-udev-detect" (index: #0).
I: module.c: Unloaded "module-udev-detect" (index: #0).
I: module.c: Unloading "module-native-protocol-unix" (index: #1).
I: module.c: Unloaded "module-native-protocol-unix" (index: #1).
I: main.c: Daemon terminated.

Comment 9 Matt Hirsch 2010-07-10 02:26:37 UTC
This continues to be a problem in Fedora 13 with:

pulseaudio-0.9.21-6.fc13.i686
pulseaudio-module-jack-0.9.21-6.fc13.i686
jack-audio-connection-kit-0.118.0-1.fc13.i686

Comment 10 Hamidou Dia 2010-09-19 23:31:11 UTC
*** Bug 584087 has been marked as a duplicate of this bug. ***

Comment 11 aasfalcon 2011-01-20 20:03:12 UTC
The bug still persist in Fedora 14. I cant run PulseAudio with jack sink at all, it crashes on initialization. Can it be a kind of permissions issue? It starts normally for root user (e.g. #sudo pulseaudio).

Comment 12 Jane Dogalt 2011-04-21 05:04:57 UTC
I just ran across this longstanding bug because I'm getting a similar(/same?) segfault in pulseaudio when running atop jackd.  I've gotten a workaround which is sufficient for the timebeing, but in case it helps/connects-with this bug, I'll describe my specific case.

I'm running *el6.  I just bought a shiny new lexicon alpha usb audio device.  I never had this problem with the same config with the onboard intel hda, or brief experiments with a turtle beach audio amigo usb audio (though it has a horrible driver bug that introduces filterable noise on the line-in).

Finally, what is especially interesting, is that this only happens if I run jackd with a limited capture device.  i.e. -Chw:1,1 instead of -Chw:1.  Now, why would I want to do -Chw:1,1 in the first place?  If I don't do that (*and* there is a usb2.0 hub between the lexicon and the host), jackd fails to start, with syslog messages about failing to allocate sufficient usb bus bandwidth.

Now, maybe -Chw:1,1 wouldn't even do what I intended it to as a workaround (i.e. hoping to get 1 usable input on the device, not needing all 4 (stereo inputs 1/2).  But it does get jackd to start, and audio output working fine (for native jack apps, since I can't get pulseaudio started)

But I'm giving up on that attempt to use it with the hub, since getting full capabilities by plugging it into 1 of 2 of my hosts usb ports, barely works out (my other dozen devices chained off the other of the laptops skimpy 2 ports).

Anyway, not knowing the code, but making an educated guess, I wonder if pulse is confused by such a situation.  finally, and perhaps least importantly, I also noticed some (pipes?) from jack under /dev/shm, one with the name jack_0 and another jack_ack_0.  I'm guessing thats all fine and expected and not evidence of some string munging bug.

Comment 13 Bug Zapper 2011-06-02 17:35:19 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 14 Bug Zapper 2011-06-27 14:27:24 UTC
Fedora 13 changed to end-of-life (EOL) status on 2011-06-25. Fedora 13 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.