<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - PulseAudio is crashing when connecting AD2P device"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107044">107044</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PulseAudio is crashing when connecting AD2P device
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>major
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>modules
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mikefender@cryptolab.net
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello, I'm running Pulseaudio 12.0 on Arch Linux.

When I try to switch my Bluetooth headphones to the AD2P profile PulseAudio is
crashing with the following in the log:

Jun 26 11:38:01 jason pulseaudio[1306]: E: [pulseaudio] module-bluez5-device.c:
Assertion '!u->thread' failed at modules/bluetooth/module-bluez5-device.c:1731,
function start_thread(). Aborting.
Jun 26 11:38:02 jason systemd[1037]: pulseaudio.service: Main process exited,
code=dumped, status=6/ABRT
Jun 26 11:38:02 jason systemd[1037]: pulseaudio.service: Failed with result
'core-dump'.
Jun 26 11:38:02 jason systemd[1037]: pulseaudio.service: Service hold-off time
over, scheduling restart.
Jun 26 11:38:02 jason systemd[1037]: pulseaudio.service: Scheduled restart job,
restart counter is at 1.
Jun 26 11:38:02 jason systemd[1037]: Stopped Sound Service.
Jun 26 11:38:02 jason systemd[1037]: Starting Sound Service...
Jun 26 11:38:02 jason pulseaudio[4006]: W: [pulseaudio] pid.c: Stale PID file,
overwriting.
Jun 26 11:38:02 jason systemd-coredump[3987]: Process 1306 (pulseaudio) of user
1000 dumped core.
                                              Stack trace of thread 1306:
                                              #0  0x00007f5aa7ab086b raise
(libc.so.6)
                                              #1  0x00007f5aa7a9b40e abort
(libc.so.6)
                                              #2  0x00007f5a967a7d17 n/a
(module-bluez5-device.so)
                                              #3  0x00007f5a967aac3f n/a
(module-bluez5-device.so)
                                              #4  0x00007f5aa9037c4a
pa_card_set_profile (libpulsecore-12.0.so)
                                              #5  0x00007f5aa009a481 n/a
(libprotocol-native.so)
                                              #6  0x00007f5aa8b7cf48
pa_pdispatch_run (libpulsecommon-12.0.so)
                                              #7  0x00007f5aa00a30d6 n/a
(libprotocol-native.so)
                                              #8  0x00007f5aa8b7fa9f n/a
(libpulsecommon-12.0.so)
                                              #9  0x00007f5aa8b8290b n/a
(libpulsecommon-12.0.so)
                                              #10 0x00007f5aa8b82cba n/a
(libpulsecommon-12.0.so)
                                              #11 0x00007f5aa8b8354a n/a
(libpulsecommon-12.0.so)
                                              #12 0x00007f5aa8de5d18
pa_mainloop_dispatch (libpulse.so.0)
                                              #13 0x00007f5aa8de5fef
pa_mainloop_iterate (libpulse.so.0)
                                              #14 0x00007f5aa8de6091
pa_mainloop_run (libpulse.so.0)
                                              #15 0x000055e1835003b3 main
(pulseaudio)
                                              #16 0x00007f5aa7a9d06b
__libc_start_main (libc.so.6)
                                              #17 0x000055e18350109a _start
(pulseaudio)
                                              Stack trace of thread 1310:
                                              #0  0x00007f5aa7b67fa6 ppoll
(libc.so.6)
                                              #1  0x00007f5aa9047e10
pa_rtpoll_run (libpulsecore-12.0.so)
                                              #2  0x00007f5a9efe9911 n/a
(libalsa-util.so)
                                              #3  0x00007f5aa8b939fc n/a
(libpulsecommon-12.0.so)
                                              #4  0x00007f5aa8041075
start_thread (libpthread.so.0)
                                              #5  0x00007f5aa7b7253f __clone
(libc.so.6)
                                              Stack trace of thread 3985:
                                              #0  0x00007f5aa7b67fa6 ppoll
(libc.so.6)
                                              #1  0x00007f5aa9047e10
pa_rtpoll_run (libpulsecore-12.0.so)
                                              #2  0x00007f5a967ab338 n/a
(module-bluez5-device.so)
                                              #3  0x00007f5aa8b939fc n/a
(libpulsecommon-12.0.so)
                                              #4  0x00007f5aa8041075
start_thread (libpthread.so.0)
                                              #5  0x00007f5aa7b7253f __clone
(libc.so.6)
                                              Stack trace of thread 1311:
                                              #0  0x00007f5aa7b67fa6 ppoll
(libc.so.6)
                                              #1  0x00007f5aa9047e10
pa_rtpoll_run (libpulsecore-12.0.so)
                                              #2  0x00007f5a9eff0267 n/a
(libalsa-util.so)
                                              #3  0x00007f5aa8b939fc n/a
(libpulsecommon-12.0.so)
                                              #4  0x00007f5aa8041075
start_thread (libpthread.so.0)
                                              #5  0x00007f5aa7b7253f __clone
(libc.so.6)

This may not be a problem in PulseAudio but rather in some libraries, and
started with latest package updates.

Can you please give some advice to how debug this issue?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>