pipewire-media-session segfault
GNU gdb (GDB) Fedora 10.1-2.fc33
Copyright (C) 2020 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-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from pipewire-media-session...
(gdb) r
Starting program: /usr/bin/pipewire-media-session
Missing separate debuginfos, use: dnf debuginfo-install pipewire-0.3.19-3.fc33.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff6e1a640 (LWP 35232)]
[E][000082264.894566][backend-ofono.c:525 ofono_register_reply()] oFono: Register() failed: org.freedesktop.DBus.Error.ServiceUnknown
[E][000082264.913682][alsa-mixer.c:1718 element_probe_volume()] The decibel volume range for element 'Headphone' (-2837 dB - -6 dB) has negative maximum. Disabling the decibel range.
[E][000082264.913741][alsa-mixer.c:1718 element_probe_volume()] The decibel volume range for element 'Headphone' (-2837 dB - -6 dB) has negative maximum. Disabling the decibel range.
[E][000082264.913771][alsa-mixer.c:1718 element_probe_volume()] The decibel volume range for element 'Headphone' (-2837 dB - -6 dB) has negative maximum. Disabling the decibel range.
[E][000082264.913786][alsa-mixer.c:1718 element_probe_volume()] The decibel volume range for element 'Headphone' (-2837 dB - -6 dB) has negative maximum. Disabling the decibel range.
[E][000082289.894097][bluez5-dbus.c:1761 get_managed_objects_reply()] GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply
Thread 1 "pipewire-media-" received signal SIGSEGV, Segmentation fault.
0x0000000000440467 in metadata_property (object=0x509d50, subject=103, key=0x0, type=<optimized out>, value=0x0) at ../src/examples/media-session/policy-node.c:847
847 } else if (val == SPA_ID_INVALID && strcmp(key, "target.node") == 0) {
(gdb) bt
#0 0x0000000000440467 in metadata_property (object=0x509d50, subject=103, key=0x0, type=<optimized out>, value=0x0) at ../src/examples/media-session/policy-node.c:847
#1 0x00000000004306f6 in clear_subjects (this=0x4d3a10, subject=103) at ../src/examples/media-session/metadata.c:165
#2 0x000000000042c6eb in remove_object (obj=0x604558, impl=0x7fffffffcd00) at ../src/examples/media-session/media-session.c:209
#3 sm_object_destroy (obj=0x604558) at ../src/examples/media-session/media-session.c:293
#4 0x00007ffff65e7a48 in registry_demarshal_global_remove (object=0x4d3510, msg=<optimized out>) at ../src/modules/module-protocol-native/protocol-native.c:1889
#5 0x00007ffff65e52da in process_remote (impl=impl@entry=0x4c11d0) at ../src/modules/module-protocol-native.c:766
#6 0x00007ffff65e5750 in on_remote_data (data=0x4c11d0, fd=<optimized out>, mask=1) at ../src/modules/module-protocol-native.c:800
#7 0x00007ffff7fb7a4b in loop_iterate (object=0x486bd8, timeout=<optimized out>) at ../spa/plugins/support/loop.c:308
#8 0x00007ffff7f48c5b in pw_main_loop_run (loop=0x486a90) at ../src/pipewire/main-loop.c:158
#9 0x00000000004044a6 in main (argc=<optimized out>, argv=<optimized out>) at ../src/examples/media-session/media-session.c:2375
(gdb) print key
$1 = 0x0
(gdb) print val
$2 = 4294967295
clear_subjects
function contains:
pw_metadata_emit_property(&this->hooks, subject, NULL, NULL, NULL);
Is this what results in the call to metadata_property
in policy-node.c
?
Which appears to be called with an argument key = NULL
.