[pulseaudio-tickets] [Bug 104761] New: Crash when changing port

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jan 24 07:32:33 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=104761

            Bug ID: 104761
           Summary: Crash when changing port
           Product: PulseAudio
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: alsa
          Assignee: pulseaudio-bugs at lists.freedesktop.org
          Reporter: tanuk at iki.fi
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
                CC: lennart at poettering.net

With the current master changing ports on an alsa card makes PulseAudio crash:

#0  __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff60d319a in __GI_abort () at abort.c:89
#2  0x00007ffff79008a5 in pa_sink_suspend (s=s at entry=0x55555583be10,
suspend=suspend at entry=false, cause=<optimized out>)
    at pulsecore/sink.c:849
#3  0x00007fffecb4ac01 in sink_set_port_cb (s=0x55555583be10, p=0x5555557b0090)
at modules/alsa/alsa-sink.c:1533
#4  0x00007ffff7906e82 in pa_sink_process_msg (o=o at entry=0x55555583be10,
code=code at entry=22, userdata=userdata at entry=0x7fffffffd5f0, 
    offset=offset at entry=0, chunk=chunk at entry=0x0) at pulsecore/sink.c:2921
#5  0x00007fffecb4c9cb in sink_process_msg (o=0x55555583be10, code=22,
data=0x7fffffffd5f0, offset=0, chunk=0x0)
    at modules/alsa/alsa-sink.c:1231
#6  0x00007ffff78e7155 in asyncmsgq_read_work (i=0x5555557b5250) at
pulsecore/rtpoll.c:566
#7  0x00007ffff78e7a75 in pa_rtpoll_run (p=0x5555559908b0) at
pulsecore/rtpoll.c:236
#8  0x00007fffecb4d665 in thread_func (userdata=0x555555990660) at
modules/alsa/alsa-sink.c:1822
#9  0x00007ffff76833a8 in internal_thread_func (userdata=0x55555584e3a0) at
pulsecore/thread-posix.c:81
#10 0x00007ffff6b67519 in start_thread (arg=0x7fffecb23700) at
pthread_create.c:456
#11 0x00007ffff618aa4f in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:97

The pa_sink_suspend() call was recently added to sink_set_port_cb().
sink_set_port_cb() is called from the IO thread when deferred volume is
enabled, as it usually is.

Fixing this doesn't seem trivial. I think I'll try to make things so that
sink_set_port_cb() is only called from the main thread so that it can safely
call pa_sink_suspend(). The mixer handling will still need to happen in the IO
thread when deferred volume is enabled, but sink_set_port_cb() can probably do
that by sending a message to the IO thread.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20180124/44fa2c0e/attachment.html>


More information about the pulseaudio-bugs mailing list