Lennart Poettering wrote:
On Wed, 29.04.09 14:18, Ng Oon-Ee ([email protected]) wrote:
Hi all,
I'm using module-jack-sink and module-jack-source such that Pulse is
running above my Jack server. It doesn't give problems about half the
time, but sometimes the sound from my mpd server just dies. This is
because the pulse daemon has crashed and died (as shown by different PID
of pulseaudio before and after this happens). I've tried to run
pulseaudio in a terminal instead of daemonized, and in that situation I
can almost guaruntee a crash almost as soon as I start playing, though
if I start pulse with pulseaudio --start it seems to be able to work for
a much longer period of time.
In case it matters, my default.pa does NOT load module-hal-detect,
module-alsa-sink/source, or module-jack-sink/source, but the other
default modules are loaded. I have two scripts, pulse-nojack and
pulse-withjack, which would check for a running Jack server and
start/kill depending on the needs of the situation, as well as
load/unload the modules as needed.
I'm quite at a lost on how to analyze the situation, since there seems
to be a difference between running pulseaudio --start (which if I'm not
wrong is the same as pulseaudio, except it checks for a running daemon,
which I can confirm does NOT exist before running the command) and just
running pulseaudio.
What ist the pulseaudio -vvvvv output when this happens? If this is a
segfault, could you get me a stack trace please?
http://pulseaudio.org/wiki/Community#BugsPatchesTranslationsx
Lennart
Hi Lennart, yes it is a segfault. I can reproduce it regularly here on
my laptop, will try in my office desktop when I get to work in a couple
of hours time. Basically I start up pulseaudio (just with pulseaudio
-vvvvv > pulselog.txt 2>&1), then my script uses pactl list to get a
list of modules (checking whether alsa is loaded, in this case it isn't
since its commented out from my default.pa), then starts up the Jack
server with jackd and calls pactl load-module on both
module-jack-sink/source. After that, I run paplay
/usr/share/sounds/alsa/Rear_Center.wav, and pulse dies AFTER playing the
sound. I include with this email my gdb stack trace, at the end of which
I'm left in gdb and quit using q, not sure what the *etc, etc* in the
wiki means.
[ngoo...@ngoonee-laptop ~]$ LD_BIND_NOW=1 gdb pulseaudio
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...
(no debugging symbols found)
(gdb) handle SIGXCPU SIGPWR SIG33 SIG34 SIG42 SIG43 SIG44 SIG45 SIG46 SIG47
SIG48 SIG49 SIG50 SIG51 SIG52 SIG53 SIG63 SIG62 SIG61 SIG60 SIG59 SIG58 nostop
noprint
Signal Stop Print Pass to program Description
SIGXCPU No No Yes CPU time limit exceeded
SIGPWR No No Yes Power fail/restart
SIG33 No No Yes Real-time event 33
SIG34 No No Yes Real-time event 34
SIG42 No No Yes Real-time event 42
SIG43 No No Yes Real-time event 43
SIG44 No No Yes Real-time event 44
SIG45 No No Yes Real-time event 45
SIG46 No No Yes Real-time event 46
SIG47 No No Yes Real-time event 47
SIG48 No No Yes Real-time event 48
SIG49 No No Yes Real-time event 49
SIG50 No No Yes Real-time event 50
SIG51 No No Yes Real-time event 51
SIG52 No No Yes Real-time event 52
---Type <return> to continue, or q <return> to quit---
SIG53 No No Yes Real-time event 53
SIG58 No No Yes Real-time event 58
SIG59 No No Yes Real-time event 59
SIG60 No No Yes Real-time event 60
SIG61 No No Yes Real-time event 61
SIG62 No No Yes Real-time event 62
SIG63 No No Yes Real-time event 63
(gdb)
(gdb) run
Starting program: /usr/bin/pulseaudio
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
W: pid.c: Stale PID file, overwriting.
[New Thread 0x7f56f80516f0 (LWP 14124)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
E: bluetooth-util.c: Error from ListAdapters reply:
org.freedesktop.DBus.Error.ServiceUnknown
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0x7f56ee9c8950 (LWP 14192)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0x7f56ed59a950 (LWP 14282)]
[New Thread 0x7f56ecd99950 (LWP 14284)]
[New Thread 0x7f56ec598950 (LWP 14285)]
[Thread 0x7f56ee9c8950 (LWP 14192) exited]
(no debugging symbols found)
[New Thread 0x7f56ee9c8950 (LWP 14288)]
[New Thread 0x7f56eeb73950 (LWP 14289)]
W: module-jack-source.c: JACK error >zombified - calling shutdown handler<
(no debugging symbols found)
[Thread 0x7f56ec598950 (LWP 14285) exited]
[Thread 0x7f56ed59a950 (LWP 14282) exited]
(no debugging symbols found)
[New Thread 0x7f56ed59a950 (LWP 14290)]
[Thread 0x7f56ecd99950 (LWP 14284) exited]
E: shm.c: Assertion 'madvise(ptr, size, MADV_DONTNEED) == 0' failed at
pulsecore/shm.c:257, function pa_shm_punch(). Aborting.
---Type <return> to continue, or q <return> to quit---
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7f56f80516f0 (LWP 14124)]
0x00007f56f50b10c5 in raise () from /lib/libc.so.6
(gdb) thread apply all bt full
Thread 8 (Thread 0x7f56ed59a950 (LWP 14290)):
#0 0x00007f56f5145e95 in ppoll () from /lib/libc.so.6
No symbol table info available.
#1 0x00007f56f7c1c810 in pa_rtpoll_run ()
from /usr/lib/libpulsecore-0.9.15.so
No symbol table info available.
#2 0x00007f56e7dfe04f in thread_func ()
from /usr/lib/pulse-0.9.15/modules/module-null-sink.so
No symbol table info available.
#3 0x00007f56f779d9f0 in internal_thread_func ()
from /usr/lib/libpulsecommon-0.9.15.so
No symbol table info available.
#4 0x00007f56f53d9fc7 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5 0x00007f56f514e5dd in clone () from /lib/libc.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#6 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 7 (Thread 0x7f56eeb73950 (LWP 14289)):
#0 0x00007f56f5145c66 in poll () from /lib/libc.so.6
No symbol table info available.
#1 0x00007f56ed5a30c6 in jack_client_core_wait ()
from /usr/lib/libjack.so.0
No symbol table info available.
#2 0x00007f56ed5a350b in jack_thread_wait ()
from /usr/lib/libjack.so.0
No symbol table info available.
#3 0x00007f56ed5a36aa in jack_client_thread ()
from /usr/lib/libjack.so.0
No symbol table info available.
#4 0x00007f56f53d9fc7 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#5 0x00007f56f514e5dd in clone () from /lib/libc.so.6
No symbol table info available.
#6 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 6 (Thread 0x7f56ee9c8950 (LWP 14288)):
#0 0x00007f56f5145e95 in ppoll () from /lib/libc.so.6
No symbol table info available.
#1 0x00007f56f7c1c810 in pa_rtpoll_run ()
from /usr/lib/libpulsecore-0.9.15.so
No symbol table info available.
#2 0x00007f56ec316531 in thread_func ()
from /usr/lib/pulse-0.9.15/modules/module-jack-source.so
No symbol table info available.
#3 0x00007f56f779d9f0 in internal_thread_func ()
from /usr/lib/libpulsecommon-0.9.15.so
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#4 0x00007f56f53d9fc7 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#5 0x00007f56f514e5dd in clone () from /lib/libc.so.6
No symbol table info available.
#6 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 1 (Thread 0x7f56f80516f0 (LWP 14124)):
#0 0x00007f56f50b10c5 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0x00007f56f50b25e3 in abort () from /lib/libc.so.6
No symbol table info available.
#2 0x00007f56f7c25299 in pa_shm_punch ()
from /usr/lib/libpulsecore-0.9.15.so
No symbol table info available.
#3 0x00007f56f7788de8 in pa_mempool_vacuum ()
from /usr/lib/libpulsecommon-0.9.15.so
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#4 0x00007f56f7c2656b in pa_sink_input_unlink ()
from /usr/lib/libpulsecore-0.9.15.so
No symbol table info available.
#5 0x00007f56f020445d in playback_stream_unlink ()
from /usr/lib/pulse-0.9.15/modules/libprotocol-native.so
No symbol table info available.
#6 0x00007f56f0210189 in command_delete_stream ()
from /usr/lib/pulse-0.9.15/modules/libprotocol-native.so
No symbol table info available.
#7 0x00007f56f778e1b0 in pa_pdispatch_run ()
from /usr/lib/libpulsecommon-0.9.15.so
No symbol table info available.
#8 0x00007f56f0208c97 in pstream_packet_callback ()
from /usr/lib/pulse-0.9.15/modules/libprotocol-native.so
No symbol table info available.
#9 0x00007f56f7791b5f in do_something ()
---Type <return> to continue, or q <return> to quit---
from /usr/lib/libpulsecommon-0.9.15.so
No symbol table info available.
#10 0x00007f56f79cb534 in pa_mainloop_dispatch ()
from /usr/lib/libpulse.so.0
No symbol table info available.
#11 0x00007f56f79cb7f6 in pa_mainloop_iterate ()
from /usr/lib/libpulse.so.0
No symbol table info available.
#12 0x00007f56f79cb8b0 in pa_mainloop_run ()
from /usr/lib/libpulse.so.0
No symbol table info available.
#13 0x000000000040aff6 in main ()
No symbol table info available.
(gdb)
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss