| Summary: | assertion failure in module-bluez5-device when trying to set bluetooth audio device as A2DP Sink via pavucontrol | ||
|---|---|---|---|
| Product: | PulseAudio | Reporter: | Anthony L. Eden <anthony.louis.eden> |
| Component: | modules | Assignee: | pulseaudio-bugs |
| Status: | RESOLVED DUPLICATE | QA Contact: | pulseaudio-bugs |
| Severity: | major | ||
| Priority: | medium | CC: | anthony.louis.eden, lennart |
| Version: | unspecified | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
| Attachments: | ArchLinux package versions | ||
This assertion failure is fully reproducible. Let me know if running a particular command would be helpful. I am running on ArchLinux, and my package versions are attached. Created attachment 140476 [details]
ArchLinux package versions
Felt like compiling pulseaudio with debug symbols and attaching a debugger before the assertion failure. From lldb:
* thread #1, name = 'pulseaudio', stop reason = signal SIGABRT
* frame #0: 0x00007f76e89b486b libc.so.6`__GI_raise + 267
frame #1: 0x00007f76e899f40e libc.so.6`__GI_abort + 297
frame #2: 0x00007f76dc779344 module-bluez5-device.so`start_thread(u=0x0000556b522ff040) at module-bluez5-device.c:1731
frame #3: 0x00007f76dc77a959 module-bluez5-device.so`set_profile_cb(c=0x0000556b522da850, new_profile=0x0000556b522da6d0) at module-bluez5-device.c:2075
frame #4: 0x00007f76e9f63a2b libpulsecore-12.0.so`pa_card_set_profile(c=0x0000556b522da850, profile=0x0000556b522da6d0, save=true) at card.c:318
frame #5: 0x00007f76e0fa5d2d libprotocol-native.so`command_set_card_profile(pd=0x0000556b52213a20, command=90, tag=25, t=0x0000556b522204d0, userdata=0x0000556b522a8d40) at protocol-native.c:4728
frame #6: 0x00007f76e9a91419 libpulsecommon-12.0.so`pa_pdispatch_run(pd=0x0000556b52213a20, packet=0x0000556b522bf3c0, ancil_data=0x0000556b5230b2f8, userdata=0x0000556b522a8d40) at pdispatch.c:346
frame #7: 0x00007f76e0fa65c2 libprotocol-native.so`pstream_packet_callback(p=0x0000556b5230b060, packet=0x0000556b522bf3c0, ancil_data=0x0000556b5230b2f8, userdata=0x0000556b522a8d40) at protocol-native.c:4951
frame #8: 0x00007f76e9a98dcc libpulsecommon-12.0.so`do_read(p=0x0000556b5230b060, re=0x0000556b5230b228) at pstream.c:1012
frame #9: 0x00007f76e9a9595d libpulsecommon-12.0.so`do_pstream_read_write(p=0x0000556b5230b060) at pstream.c:248
frame #10: 0x00007f76e9a95bdb libpulsecommon-12.0.so`srb_callback(srb=0x0000556b5240c2e0, userdata=0x0000556b5230b060) at pstream.c:287
frame #11: 0x00007f76e9a9b201 libpulsecommon-12.0.so`srbchannel_rwloop(sr=0x0000556b5240c2e0) at srbchannel.c:190
frame #12: 0x00007f76e9a9b261 libpulsecommon-12.0.so`semread_cb(m=0x0000556b52211e58, e=0x0000556b522f6ee0, fd=26, events=PA_IO_EVENT_INPUT, userdata=0x0000556b5240c2e0) at srbchannel.c:210
frame #13: 0x00007f76e9d08d11 libpulse.so.0`dispatch_pollfds(m=0x0000556b52211e00) at mainloop.c:655
frame #14: 0x00007f76e9d09b2d libpulse.so.0`pa_mainloop_dispatch(m=0x0000556b52211e00) at mainloop.c:898
frame #15: 0x00007f76e9d09cb1 libpulse.so.0`pa_mainloop_iterate(m=0x0000556b52211e00, block=1, retval=0x00007ffcc2a95c80) at mainloop.c:929
frame #16: 0x00007f76e9d09d14 libpulse.so.0`pa_mainloop_run(m=0x0000556b52211e00, retval=0x00007ffcc2a95c80) at mainloop.c:944
frame #17: 0x0000556b506ae663 pulseaudio`main(argc=2, argv=0x00007ffcc2a95f68) at main.c:1144
frame #18: 0x00007f76e89a106b libc.so.6`__libc_start_main + 235
frame #19: 0x0000556b506a4a5a pulseaudio`_start + 42
thread #2, name = 'null-sink'
frame #0: 0x00007f76e8a6bfa6 libc.so.6`__GI_ppoll + 166
frame #1: 0x00007f76e9f79fde libpulsecore-12.0.so`pa_rtpoll_run(p=0x0000556b5229d350) at rtpoll.c:314
frame #2: 0x00007f76de1ad2f4 module-null-sink.so`thread_func(userdata=0x0000556b5229d2d0) at module-null-sink.c:233
frame #3: 0x00007f76e9aafeb7 libpulsecommon-12.0.so`internal_thread_func(userdata=0x0000556b5228ca80) at thread-posix.c:81
frame #4: 0x00007f76e8f45075 libpthread.so.0`start_thread + 229
frame #5: 0x00007f76e8a7653f libc.so.6`__GI___clone + 63
thread #3, name = 'bluetooth'
frame #0: 0x00007f76e8a6bfa6 libc.so.6`__GI_ppoll + 166
frame #1: 0x00007f76e9f79fde libpulsecore-12.0.so`pa_rtpoll_run(p=0x0000556b522c7e90) at rtpoll.c:314
frame #2: 0x00007f76dc7790fc module-bluez5-device.so`thread_func(userdata=0x0000556b522ff040) at module-bluez5-device.c:1706
frame #3: 0x00007f76e9aafeb7 libpulsecommon-12.0.so`internal_thread_func(userdata=0x0000556b522d45b0) at thread-posix.c:81
frame #4: 0x00007f76e8f45075 libpthread.so.0`start_thread + 229
frame #5: 0x00007f76e8a7653f libc.so.6`__GI___clone + 63
This is from gdb, might be better. (gdb) backtrace #0 0x00007ff76eb1086b in raise () from /usr/lib/libc.so.6 #1 0x00007ff76eafb40e in abort () from /usr/lib/libc.so.6 #2 0x00007ff7428d5344 in start_thread (u=0x556ea7d72420) at modules/bluetooth/module-bluez5-device.c:1731 #3 0x00007ff7428d6959 in set_profile_cb (c=0x556ea7dea0b0, new_profile=0x556ea7df6820) at modules/bluetooth/module-bluez5-device.c:2075 #4 0x00007ff7700bfa2b in pa_card_set_profile (c=0x556ea7dea0b0, profile=0x556ea7df6820, save=true) at pulsecore/card.c:318 #5 0x00007ff767101d2d in command_set_card_profile (pd=0x556ea7dbe270, command=90, tag=21, t=0x556ea7d1f560, userdata=0x556ea7e0c9f0) at pulsecore/protocol-native.c:4728 #6 0x00007ff76fbed419 in pa_pdispatch_run (pd=0x556ea7dbe270, packet=0x556ea7d93050, ancil_data=0x556ea7dbd158, userdata=0x556ea7e0c9f0) at pulsecore/pdispatch.c:346 #7 0x00007ff7671025c2 in pstream_packet_callback (p=0x556ea7dbcec0, packet=0x556ea7d93050, ancil_data=0x556ea7dbd158, userdata=0x556ea7e0c9f0) at pulsecore/protocol-native.c:4951 #8 0x00007ff76fbf4dcc in do_read (p=0x556ea7dbcec0, re=0x556ea7dbd088) at pulsecore/pstream.c:1012 #9 0x00007ff76fbf195d in do_pstream_read_write (p=0x556ea7dbcec0) at pulsecore/pstream.c:248 #10 0x00007ff76fbf1bdb in srb_callback (srb=0x556ea7dfe2c0, userdata=0x556ea7dbcec0) at pulsecore/pstream.c:287 #11 0x00007ff76fbf7201 in srbchannel_rwloop (sr=0x556ea7dfe2c0) at pulsecore/srbchannel.c:190 #12 0x00007ff76fbf7261 in semread_cb (m=0x556ea7d10e68, e=0x556ea7dfff40, fd=31, events=PA_IO_EVENT_INPUT, userdata=0x556ea7dfe2c0) at pulsecore/srbchannel.c:210 #13 0x00007ff76fe64d11 in dispatch_pollfds (m=0x556ea7d10e10) at pulse/mainloop.c:655 #14 0x00007ff76fe65b2d in pa_mainloop_dispatch (m=0x556ea7d10e10) at pulse/mainloop.c:898 #15 0x00007ff76fe65cb1 in pa_mainloop_iterate (m=0x556ea7d10e10, block=1, retval=0x7fffbe2f96a0) at pulse/mainloop.c:929 #16 0x00007ff76fe65d14 in pa_mainloop_run (m=0x556ea7d10e10, retval=0x7fffbe2f96a0) at pulse/mainloop.c:944 #17 0x0000556ea6aaf663 in main (argc=2, argv=0x7fffbe2f9988) at daemon/main.c:1144 This bug is a duplicate of bug 107044 and already resolved in master. *** This bug has been marked as a duplicate of bug 107044 *** |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
Jul 05 12:12:59 vegeta pulseaudio[550]: E: [pulseaudio] module-bluez5-device.c: Assertion '!u->thread' failed at modules/bluetooth/module-bluez5-device.c:1731, function start_thread(). Aborting. Jul 05 12:12:59 vegeta systemd[443]: pulseaudio.service: Main process exited, code=dumped, status=6/ABRT Jul 05 12:12:59 vegeta systemd[443]: pulseaudio.service: Failed with result 'core-dump'. Jul 05 12:12:59 vegeta systemd-coredump[584]: Process 550 (pulseaudio) of user 1000 dumped core. Stack trace of thread 550: #0 0x00007f501258e86b raise (libc.so.6) #1 0x00007f501257940e abort (libc.so.6) #2 0x00007f4fe657ad17 n/a (module-bluez5-device.so) #3 0x00007f4fe657dc3f n/a (module-bluez5-device.so) #4 0x00007f5013b15c4a pa_card_set_profile (libpulsecore-12.0.so) #5 0x00007f500ab78481 n/a (libprotocol-native.so) #6 0x00007f501365af48 pa_pdispatch_run (libpulsecommon-12.0.so) #7 0x00007f500ab810d6 n/a (libprotocol-native.so) #8 0x00007f501365da9f n/a (libpulsecommon-12.0.so) #9 0x00007f501366090b n/a (libpulsecommon-12.0.so) #10 0x00007f5013660cba n/a (libpulsecommon-12.0.so) #11 0x00007f501366154a n/a (libpulsecommon-12.0.so) #12 0x00007f50138c3d18 pa_mainloop_dispatch (libpulse.so.0) #13 0x00007f50138c3fef pa_mainloop_iterate (libpulse.so.0) #14 0x00007f50138c4091 pa_mainloop_run (libpulse.so.0) #15 0x000055a6402993b3 main (pulseaudio) #16 0x00007f501257b06b __libc_start_main (libc.so.6) #17 0x000055a64029a09a _start (pulseaudio) Stack trace of thread 559: #0 0x00007f5012645fa6 ppoll (libc.so.6) #1 0x00007f5013b25e10 pa_rtpoll_run (libpulsecore-12.0.so) #2 0x00007f5007faca21 n/a (module-null-sink.so) #3 0x00007f50136719fc n/a (libpulsecommon-12.0.so) #4 0x00007f5012b1f075 start_thread (libpthread.so.0) #5 0x00007f501265053f __clone (libc.so.6) Stack trace of thread 582: #0 0x00007f5012645fa6 ppoll (libc.so.6) #1 0x00007f5013b25e10 pa_rtpoll_run (libpulsecore-12.0.so) #2 0x00007f4fe657e338 n/a (module-bluez5-device.so) #3 0x00007f50136719fc n/a (libpulsecommon-12.0.so) #4 0x00007f5012b1f075 start_thread (libpthread.so.0) #5 0x00007f501265053f __clone (libc.so.6)