Bug 2039093 - [abrt] wireplumber: spa_bt_quirks_get_features(): wireplumber killed by SIGSEGV
Summary: [abrt] wireplumber: spa_bt_quirks_get_features(): wireplumber killed by SIGSEGV
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pipewire
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Wim Taymans
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:48927918e6e988027acdbe7f6b6...
: 2039362 2041229 2041253 2041256 2041481 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-10 22:59 UTC by Dima Ryazanov
Modified: 2022-01-19 11:33 UTC (History)
17 users (show)

Fixed In Version: pipewire-0.3.43-2.fc35
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-19 02:11:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (61.76 KB, text/plain)
2022-01-10 22:59 UTC, Dima Ryazanov
no flags Details
File: cgroup (505 bytes, text/plain)
2022-01-10 22:59 UTC, Dima Ryazanov
no flags Details
File: core_backtrace (10.31 KB, text/plain)
2022-01-10 22:59 UTC, Dima Ryazanov
no flags Details
File: cpuinfo (2.62 KB, text/plain)
2022-01-10 23:00 UTC, Dima Ryazanov
no flags Details
File: dso_list (643 bytes, text/plain)
2022-01-10 23:00 UTC, Dima Ryazanov
no flags Details
File: environ (2.30 KB, text/plain)
2022-01-10 23:00 UTC, Dima Ryazanov
no flags Details
File: exploitable (82 bytes, text/plain)
2022-01-10 23:00 UTC, Dima Ryazanov
no flags Details
File: limits (1.29 KB, text/plain)
2022-01-10 23:00 UTC, Dima Ryazanov
no flags Details
File: maps (3.91 KB, text/plain)
2022-01-10 23:00 UTC, Dima Ryazanov
no flags Details
File: mountinfo (3.85 KB, text/plain)
2022-01-10 23:00 UTC, Dima Ryazanov
no flags Details
File: open_fds (4.68 KB, text/plain)
2022-01-10 23:00 UTC, Dima Ryazanov
no flags Details
File: proc_pid_status (1.41 KB, text/plain)
2022-01-10 23:00 UTC, Dima Ryazanov
no flags Details
File: var_log_messages (93 bytes, text/plain)
2022-01-10 23:00 UTC, Dima Ryazanov
no flags Details

Description Dima Ryazanov 2022-01-10 22:59:54 UTC
Description of problem:
Crashed when I resumed the laptop from sleep.

Version-Release number of selected component:
wireplumber-0.4.5-3.fc35

Additional info:
reporter:       libreport-2.15.2
backtrace_rating: 4
cmdline:        /usr/bin/wireplumber
crash_function: spa_bt_quirks_get_features
executable:     /usr/bin/wireplumber
journald_cursor: s=2a1ea6f9af4f486cb63d72db1546e260;i=1b757;b=ea9dfa75d89b4e09afea31b2a46e6a7d;m=14606f90f9;t=5d541ee1d372c;x=dd29488c63af5cf5
kernel:         5.15.12-200.fc35.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (9 frames)
 #0 spa_bt_quirks_get_features at ../spa/plugins/bluez5/quirks.c:335
 #1 device_update_hw_volume_profiles at ../spa/plugins/bluez5/bluez5-dbus.c:1269
 #2 interface_added at ../spa/plugins/bluez5/bluez5-dbus.c:3465
 #3 interfaces_added at ../spa/plugins/bluez5/bluez5-dbus.c:3509
 #4 filter_cb at ../spa/plugins/bluez5/bluez5-dbus.c:3698
 #7 dispatch_cb at ../spa/plugins/support/dbus.c:96
 #8 loop_iterate at ../spa/plugins/support/loop.c:335
 #9 wp_loop_source_dispatch at ../lib/wp/core.c:41
 #12 g_main_context_iterate.constprop.0 at ../glib/gmain.c:4175

Comment 1 Dima Ryazanov 2022-01-10 22:59:57 UTC
Created attachment 1849978 [details]
File: backtrace

Comment 2 Dima Ryazanov 2022-01-10 22:59:58 UTC
Created attachment 1849979 [details]
File: cgroup

Comment 3 Dima Ryazanov 2022-01-10 22:59:59 UTC
Created attachment 1849980 [details]
File: core_backtrace

Comment 4 Dima Ryazanov 2022-01-10 23:00:00 UTC
Created attachment 1849981 [details]
File: cpuinfo

Comment 5 Dima Ryazanov 2022-01-10 23:00:01 UTC
Created attachment 1849982 [details]
File: dso_list

Comment 6 Dima Ryazanov 2022-01-10 23:00:02 UTC
Created attachment 1849983 [details]
File: environ

Comment 7 Dima Ryazanov 2022-01-10 23:00:03 UTC
Created attachment 1849984 [details]
File: exploitable

Comment 8 Dima Ryazanov 2022-01-10 23:00:04 UTC
Created attachment 1849985 [details]
File: limits

Comment 9 Dima Ryazanov 2022-01-10 23:00:05 UTC
Created attachment 1849986 [details]
File: maps

Comment 10 Dima Ryazanov 2022-01-10 23:00:06 UTC
Created attachment 1849987 [details]
File: mountinfo

Comment 11 Dima Ryazanov 2022-01-10 23:00:07 UTC
Created attachment 1849988 [details]
File: open_fds

Comment 12 Dima Ryazanov 2022-01-10 23:00:08 UTC
Created attachment 1849989 [details]
File: proc_pid_status

Comment 13 Dima Ryazanov 2022-01-10 23:00:09 UTC
Created attachment 1849990 [details]
File: var_log_messages

Comment 14 Tomas Wiedermann 2022-01-11 15:30:18 UTC
*** Bug 2039362 has been marked as a duplicate of this bug. ***

Comment 15 Michael 2022-01-14 17:13:21 UTC
Similar problem has been detected:

Wake up from sleep

reporter:       libreport-2.15.2
backtrace_rating: 4
cgroup:         0::/user.slice/user-1000.slice/user/session.slice/wireplumber.service
cmdline:        /usr/bin/wireplumber
crash_function: spa_bt_quirks_get_features
executable:     /usr/bin/wireplumber
journald_cursor: s=ef1ce73eeb814711bdc728d3aa59fcb3;i=140ff;b=bc0815f2af364022982aa1b60e459e92;m=1014ea526;t=5d57d4996733a;x=98a531a1b15c6ca1
kernel:         5.15.11-200.fc35.x86_64
package:        wireplumber-0.4.5-3.fc35
reason:         wireplumber killed by SIGSEGV
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Comment 16 martin.kuehl 2022-01-16 10:37:45 UTC
Similar problem has been detected:

i have a bluetooth speaker in my home (bose bluetooth soundlink ii, in case it matters) and paired it with my fedora laptop.
if it's in range when the laptop wakes from suspend, the crash occurs.
in this case i had disconnected it (via gnome settings) before suspend, but wireplumber crashes on wake in either case.

reporter:       libreport-2.15.2
backtrace_rating: 4
cgroup:         0::/user.slice/user-1000.slice/user/session.slice/wireplumber.service
cmdline:        /usr/bin/wireplumber
crash_function: spa_bt_quirks_get_features
executable:     /usr/bin/wireplumber
journald_cursor: s=6d009d86030847fa895f307fb69f0c87;i=163b63;b=1905f05279ab4798abdad854a7a1d5c6;m=25002852;t=5d5b06cb6aeff;x=e5df092b8b7d0252
kernel:         5.15.14-200.fc35.x86_64
package:        wireplumber-0.4.7-2.fc35
reason:         wireplumber killed by SIGSEGV
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Comment 17 reshef.dov 2022-01-16 15:44:32 UTC
*** Bug 2041229 has been marked as a duplicate of this bug. ***

Comment 18 ValdikSS 2022-01-16 16:28:04 UTC
Happens to me as well, on every laptop resume from sleep.

Comment 19 Raphos 2022-01-16 19:14:45 UTC
*** Bug 2041253 has been marked as a duplicate of this bug. ***

Comment 20 raccostamauro 2022-01-16 19:32:15 UTC
*** Bug 2041256 has been marked as a duplicate of this bug. ***

Comment 21 ValdikSS 2022-01-16 22:28:39 UTC
I'd guess bug #2017984 and bug #2015749 are also related, although the call graph is different.

Comment 22 ValdikSS 2022-01-16 22:41:46 UTC
This is a race condition upon resuming. bluetoothd is restarting right after resume, and wireplumber tries to probe bluetooth adapters in the middle of daemon shut down.
This might be a regression since KDE plasma bluetooth applet does not work after resuming, I have to restart either plasma or bluetoothd.

Comment 23 Marco 2022-01-17 13:15:47 UTC
*** Bug 2041481 has been marked as a duplicate of this bug. ***

Comment 24 Fedora Update System 2022-01-17 14:30:36 UTC
FEDORA-2022-5e4c355142 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-5e4c355142

Comment 25 ValdikSS 2022-01-17 14:44:08 UTC
Issue is not fixed with pipewire-0.3.43-2.fc35.

Comment 26 ValdikSS 2022-01-17 14:47:14 UTC
It crashes in another place now

(gdb) bt
#0  0x00007f08d0bd6b98 in spa_bt_device_supports_a2dp_codec () at /usr/lib64/spa-0.2/bluez5/libspa-bluez5.so
#1  0x00007f08d0bd6d25 in spa_bt_device_get_supported_a2dp_codecs () at /usr/lib64/spa-0.2/bluez5/libspa-bluez5.so
#2  0x00007f08d0bcd699 in set_initial_profile.lto_priv () at /usr/lib64/spa-0.2/bluez5/libspa-bluez5.so
#3  0x00007f08d0bd1f70 in impl_init.lto_priv () at /usr/lib64/spa-0.2/bluez5/libspa-bluez5.so
#4  0x00007f08e18d2ae1 in load_spa_handle.lto_priv () at /lib64/libpipewire-0.3.so.0
#5  0x00007f08e18d2e54 in pw_load_spa_handle () at /lib64/libpipewire-0.3.so.0
#6  0x00007f08e18ac349 in pw_context_load_spa_handle () at /lib64/libpipewire-0.3.so.0
#7  0x00007f08e1affef6 in wp_spa_device_new_from_spa_factory () at /lib64/libwireplumber-0.4.so.0
#8  0x00007f08d2864b0d in spa_device_new () at /usr/lib64/wireplumber-0.4/libwireplumber-module-lua-scripting.so
#9  0x00007f08d27fec32 in luaD_precall () at /lib64/liblua-5.4.so
#10 0x00007f08d2810a3a in luaV_execute () at /lib64/liblua-5.4.so
#11 0x00007f08d27f4996 in f_call () at /lib64/liblua-5.4.so
#12 0x00007f08d27f99f3 in luaD_rawrunprotected () at /lib64/liblua-5.4.so
#13 0x00007f08d27fb674 in luaD_pcall () at /lib64/liblua-5.4.so
#14 0x00007f08d27f028c in lua_pcallk () at /lib64/liblua-5.4.so
#15 0x00007f08d2867b07 in _wplua_pcall () at /usr/lib64/wireplumber-0.4/libwireplumber-module-lua-scripting.so
#16 0x00007f08d2867c52 in _wplua_closure_marshal () at /usr/lib64/wireplumber-0.4/libwireplumber-module-lua-scripting.so
#17 0x00007f08e1a91c7f in g_closure_invoke () at /lib64/libgobject-2.0.so.0
#18 0x00007f08e1aae106 in signal_emit_unlocked_R () at /lib64/libgobject-2.0.so.0
#19 0x00007f08e1aaf9ca in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
#20 0x00007f08e1aafbe3 in g_signal_emit () at /lib64/libgobject-2.0.so.0
#21 0x00007f08e1aff9ff in spa_device_event_object_info () at /lib64/libwireplumber-0.4.so.0
#22 0x00007f08d0bd68a9 in emit_device_info.lto_priv () at /usr/lib64/spa-0.2/bluez5/libspa-bluez5.so
#23 0x00007f08d0bfa0c7 in device_connected.isra () at /usr/lib64/spa-0.2/bluez5/libspa-bluez5.so
#24 0x00007f08d0bddc70 in interfaces_added () at /usr/lib64/spa-0.2/bluez5/libspa-bluez5.so

Comment 27 ValdikSS 2022-01-17 17:19:29 UTC
The developer says this commit may help
https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/1122

Comment 28 Fedora Update System 2022-01-18 01:44:23 UTC
FEDORA-2022-5e4c355142 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-5e4c355142`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-5e4c355142

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 30 Fedora Update System 2022-01-19 02:11:19 UTC
FEDORA-2022-5e4c355142 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.


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