Bug 26429

Summary: drakrpm-update segfaulted, while updating bluez and kernel
Product: Mageia Reporter: Andrew Piubellini <penguin.sekai+mageiaidentity.writing>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal    
Version: 7   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: rpmdrake-6.30-1.mga7 CVE:
Status comment:

Description Andrew Piubellini 2020-04-03 18:26:58 CEST
The "drakrpm-update" program crashed. Drakbug-18.21 caught it.

I was installing updates (there were 19 packages; as far as I remember, these included packages related to bluez, the kernel, the GIMP, libnghttp, and libheif). The crash occurred when the updater was sitting at the end of the progress bar - considering that, and the noise that my laptop's CPU fan was making, I'm assuming the crash happened while the updater was in the process of compiling DKMS modules (for the proprietary NVIDIA graphics driver, installed via mageia-prime). Also, I was using a Steam Controller as a mouse, in Bluetooth Low Energy mode (possibly relevant, since there was a bluez update), controlled by the SC Controller daemon. A few seconds before the updater crashed, the Steam Controller suddenly switched off, while I was using it to move the mouse cursor.

SEGV
Glibc's trace:
4: /lib64/libperl.so.5.28(Perl_sighandler+0x226) [0x7efffbf32ba6]
5: /lib64/libc.so.6(+0x3caf0) [0x7efffbccdaf0]
6: /lib64/libgdk-3.so.0(+0x5f8aa) [0x7efff93e98aa]
7: /lib64/libgdk-3.so.0(+0x69938) [0x7efff93f3938]
8: /lib64/libgdk-3.so.0(+0x694a5) [0x7efff93f34a5]
9: /lib64/libgdk-3.so.0(gdk_display_get_event+0x40) [0x7efff93be8a0]
10: /lib64/libgdk-3.so.0(+0x690c2) [0x7efff93f30c2]
11: /lib/../lib64/libglib-2.0.so.0(g_main_context_dispatch+0x135) [0x7efffa077665]
12: /lib/../lib64/libglib-2.0.so.0(+0x4d9e8) [0x7efffa0779e8]
13: /lib/../lib64/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7efffa077a6c]
14: /lib64/libgtk-3.so.0(gtk_main_iteration+0x15) [0x7efff96b3075]
15: /lib64/libffi.so.6(ffi_call_unix64+0x4c) [0x7efffa22177e]
16: /lib64/libffi.so.6(ffi_call+0x22f) [0x7efffa22114f]
17: /usr/lib64/perl5/vendor_perl/auto/Glib/Object/Introspection/Introspection.so(+0x10400) [0x7efff9fa4400]
18: /usr/lib64/perl5/vendor_perl/auto/Glib/Object/Introspection/Introspection.so(+0x10ddd) [0x7efff9fa4ddd]
19: /lib64/libperl.so.5.28(Perl_pp_entersub+0x1f1) [0x7efffbf4de11]

Perl's trace:
drakbug::bug_handler() called from /usr/lib/libDrakX/drakbug.pm:41
drakbug::__ANON__() called from /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm:67
(eval)() called from /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm:67
Glib::Object::Introspection::__ANON__() called from /usr/share/perl5/vendor_perl/gurpm/RPMProgressDialog.pm:251
gurpm::RPMProgressDialog::sync() called from /usr/share/perl5/vendor_perl/gurpm/RPMProgressDialog.pm:326
gurpm::RPMProgressDialog::callback_inst() called from /usr/share/perl5/vendor_perl/urpm/install.pm:382
urpm::install::install() called from /usr/share/perl5/vendor_perl/urpm/main_loop.pm:271
::urpm::main_loop::_run_transaction() called from /usr/share/perl5/vendor_perl/urpm/main_loop.pm:552
::urpm::main_loop::run() called from /usr/share/perl5/vendor_perl/Rpmdrake/pkg.pm:877
Rpmdrake::pkg::perform_installation() called from /usr/share/perl5/vendor_perl/Rpmdrake/gui.pm:937
Rpmdrake::gui::do_action__real() called from /usr/share/perl5/vendor_perl/Rpmdrake/gui.pm:952
(eval)() called from /usr/share/perl5/vendor_perl/Rpmdrake/gui.pm:952
Rpmdrake::gui::do_action() called from /usr/libexec/drakrpm-update:201
main::__ANON__() called from /usr/share/perl5/vendor_perl/Gtk3.pm:578
(eval)() called from /usr/share/perl5/vendor_perl/Gtk3.pm:578
Gtk3::main() called from /usr/share/perl5/vendor_perl/Gtk3.pm:523
Gtk3::__ANON__() called from /usr/lib/libDrakX/mygtk3.pm:1550
mygtk3::main() called from /usr/lib/libDrakX/ugtk3.pm:857
ugtk3::main() called from /usr/libexec/drakrpm-update:282
main::run_treeview_dialog() called from /usr/libexec/drakrpm-update:293

Theme name: Adwaita
Kernel version = 5.5.9-desktop-1.mga7
Distribution=Mageia release 7 (Official) for x86_64
CPU=Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Comment 1 Andrew Piubellini 2020-04-03 18:30:00 CEST
As requested by the bug reporting tool, I'm providing the output of "lspcidrake -v":

[root@andrew-P640RF-mageia ~]# lspcidrake -v
unknown         : Intel Corporation|100 Series/C230 Series Chipset Family PCI Express Root Port #3 [BRIDGE_PCI] (vendor:8086 device:a112) (rev: f1)
i2c_i801        : Intel Corporation|100 Series/C230 Series Chipset Family SMBus [SERIAL_SMBUS] (vendor:8086 device:a123 subv:1558 subd:6400) (rev: 31)
xhci_pci        : Intel Corporation|100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller [SERIAL_USB] (vendor:8086 device:a12f subv:1558 subd:6400) (rev: 31)
Card:Intel 810 and later: Intel Corporation|HD Graphics 530 [DISPLAY_VGA] (vendor:8086 device:191b subv:1558 subd:6400) (rev: 06)
iwlwifi         : Intel Corporation|Wireless 8260 [NETWORK_OTHER] (vendor:8086 device:24f3 subv:8086 subd:1010) (rev: 3a)
unknown         : Intel Corporation|100 Series/C230 Series Chipset Family PCI Express Root Port #5 [BRIDGE_PCI] (vendor:8086 device:a114) (rev: f1)
snd_hda_intel   : NVIDIA Corporation|GM206 High Definition Audio Controller [MULTIMEDIA_AUDIO_DEV] (vendor:10de device:0fba) (rev: a1)
unknown         : Intel Corporation|Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers [BRIDGE_HOST] (vendor:8086 device:1910 subv:1558 subd:6400) (rev: 07)
snd_hda_intel   : Intel Corporation|100 Series/C230 Series Chipset Family HD Audio Controller [MULTIMEDIA_AUDIO_DEV] (vendor:8086 device:a170 subv:1558 subd:6400) (rev: 31)
r8169           : Realtek Semiconductor Co., Ltd.|RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [NETWORK_ETHERNET] (vendor:10ec device:8168 subv:1558 subd:6400) (rev: 12)
unknown         : Intel Corporation|100 Series/C230 Series Chipset Family PCI Express Root Port #4 [BRIDGE_PCI] (vendor:8086 device:a113) (rev: f1)
Card:NVIDIA GeForce 635 series and later: NVIDIA Corporation|GM206M [GeForce GTX 965M] [DISPLAY_VGA] (vendor:10de device:1427 subv:1558 subd:6400) (rev: a1)
mei_me          : Intel Corporation|100 Series/C230 Series Chipset Family MEI Controller #1 [COMMUNICATION_OTHER] (vendor:8086 device:a13a subv:1558 subd:6400) (rev: 31)
unknown         : Intel Corporation|Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) [BRIDGE_PCI] (vendor:8086 device:1901) (rev: 07)
unknown         : Intel Corporation|HM170 Chipset LPC/eSPI Controller [BRIDGE_ISA] (vendor:8086 device:a14e subv:1558 subd:6400) (rev: 31)
unknown         : Intel Corporation|100 Series/C230 Series Chipset Family PCI Express Root Port #1 [BRIDGE_PCI] (vendor:8086 device:a110) (rev: f1)
unknown         : Intel Corporation|100 Series/C230 Series Chipset Family Power Management Controller [MEMORY_OTHER] (vendor:8086 device:a121 subv:1558 subd:6400) (rev: 31)
unknown         : Intel Corporation|HM170/QM170 Chipset SATA Controller [AHCI Mode] [STORAGE_SATA] (vendor:8086 device:a103 subv:1558 subd:6400) (rev: 31)
rtsx_pci        : Realtek Semiconductor Co., Ltd.|RTL8411B PCI Express Card Reader (vendor:10ec device:5287 subv:1558 subd:6400) (rev: 01)
hub             : Linux 5.5.9-desktop-1.mga7 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
usbhid          :  |USB Keyboard [Human Interface Device|Boot Interface Subclass|Keyboard] (vendor:04d9 device:1503)
btusb           : Intel Corp.|Unknown [Wireless|Radio Frequency|Bluetooth] (vendor:8087 device:0a2b)
hub             : Linux 5.5.9-desktop-1.mga7 xhci-hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0003)
hid_generic     :   USB Keyboard
hid_generic     :   USB Keyboard
[root@andrew-P640RF-mageia ~]#
Comment 2 Andrew Piubellini 2020-04-03 19:24:20 CEST
Well, having just tested my laptop (in both mageia-prime's Intel mode, and mageia-prime's NVIDIA mode), it seems that the new kernel and DKMS modules are running fine.

On the other hand, I've now found some reproducible issues with my Steam Controller.

Whenever I start up my laptop, the first time that I start up my Steam Controller, it abruptly shuts down after a few seconds - though after starting the Steam Controller a second time, it stays on as normal, until I turn off the laptop.

Furthermore, the SC Controller daemon is no longer detecting the Steam Controller, and is not taking control of it. Instead, the Steam Controller is being controlled by the kernel driver by default (which only supports mouse movement, left-clicking and right-clicking - unlike SC Controller or the proprietary Steam client, which offer mousewheel support, support for common keys like Enter, Spacebar, etc., and the ability to remap buttons). Alternatively, if I start up the proprietary Steam client, then Steam successfully takes control of the Steam Controller.

So, given the timing of the drakrpm-update crash (a few seconds after the Steam Controller suddenly shut down), my current suspicion is that drakrpm-update may have been trying to reconnect to all Bluetooth devices (due to the bluez update), which failed due to a regression in bluez.

I'll look into this more tomorrow, if I get the chance.
Comment 3 Lewis Smith 2020-04-03 21:04:42 CEST
Sorry for your angst on this matter.
There are many other bugs - not identical - for drakrpm[-update] segfaults:
bug 23748, bug 20288, bug 22868, bug 22387, bug 21898.
I cannot perceive this one as a duplicate of any of the others.

Assigning to mageia tools team; CC'ing kernel/drivers for the 'Steam Controller' issue.

Assignee: bugsquad => mageiatools
CC: (none) => kernel

Comment 4 Andrew Piubellini 2020-04-05 13:24:19 CEST
I just tested my Steam Controller using its USB dongle (rather than directly pairing the Steam Controller with my laptop, in Bluetooth Low Energy mode, as I had been doing before). SC Controller was able to take control of it just fine. So SC Controller only fails, when the Steam Controller is connecting to the laptop via Bluetooth.

In the coming days, I should get the chance to install Mageia 7 on a desktop PC. When I do that, I'll test whether the Steam Controller issue is reproducible on that desktop PC. If it *isn't* reproducible on the desktop, then I suspect the drakrpm-update crash screwed up the Bluetooth configuration on my laptop.  If it *is* reproducible on the desktop, then I suspect it's a regression in bluez (and presumably, I'd need to create a separate bug report for it).
Comment 5 Lewis Smith 2020-04-07 20:56:14 CEST
Andrew

I should have asked this sooner: this bug was raised for a segfault in drakrpm-update.
The Steam controller business is a quite separate issue; please raise a new bug for *that*. Copy comments 2 & 4 from this bug to the new one.

CC: kernel => (none)

Comment 6 Aurelien Oudelet 2021-07-06 13:17:49 CEST
Mageia 7 is EOL since July 1st 2021.
There will not have any further bugfix for this release.

You are encouraged to upgrade to Mageia 8 as soon as possible.

@reporter, if this bug still apply with Mageia 8, please let us know it.

@packager, if you work on the Mageia 7 version of your package, please check the Mageia 8 package if issue is also present. In this case, please fix the Mageia 8 version instead.

This bug report will be closed OLD if there is no further notice within 1st September 2021.
Comment 7 Marja Van Waes 2021-09-07 14:09:51 CEST
Hi bug reporter and hi assignee and others involved,

Please reopen this bug report if it is still valid for Mageia 8 or 9(cauldron), and change "Version:" in the upper left of this report accordingly.

This report is being closed as OLD because it was filed against Mageia 7, for which  support ended on June 30th 2021.

Thanks,
Marja

Status: NEW => RESOLVED
Resolution: (none) => OLD