View Issue Details

IDProjectCategoryView StatusLast Update
0000210AlmaLinux-8-OTHERpublic2022-04-05 13:57
Reporterolahaye74 Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status newResolutionopen 
Platformx86_64OSCentOSOS Version7
Summary0000210: Leapp preupgrade crashes UnicodeDecodeError: 'utf8' codec can't decode byte 0xef in position 3: invalid continuation byte
Description# LC_ALL=C leapp preupgrade
==> Processing phase `configuration_phase`
====> * ipu_workflow_config
        IPU workflow config actor
==> Processing phase `FactsCollection`
====> * scan_kernel_cmdline
        No documentation has been provided for the scan_kernel_cmdline actor.
====> * removed_pam_modules_scanner
        Scan PAM configuration for modules that are not available in RHEL-8.
====> * scan_sap_hana
        Gathers information related to SAP HANA instances on the system.
====> * scan_subscription_manager_info
        Scans the current system for subscription manager information
====> * system_facts
        Provides data about many facts from system.
====> * udevadm_info
        Produces data exported by the "udevadm info" command.
Process Process-187:
Traceback (most recent call last):
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 258, in _bootstrap
    self.run()
  File "/usr/lib64/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/repository/actor_definition.py", line 72, in _do_run
    actor_instance.run(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/leapp/actors/__init__.py", line 335, in run
    self.process(*args)
  File "/usr/share/leapp-repository/repositories/system_upgrade/common/actors/udev/udevadminfo/actor.py", line 18, in process
    out = run(['udevadm', 'info', '-e'])['stdout']
  File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/__init__.py", line 181, in run
    stdin=stdin, env=env, encoding=encoding)
  File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/call.py", line 179, in _call
    **extra
  File "/usr/lib/python2.7/site-packages/leapp/libraries/stdlib/call.py", line 59, in _multiplex
    linebufs[fd] += decoders[fd].decode(read)
  File "/usr/lib64/python2.7/codecs.py", line 296, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xef in position 3: invalid continuation byte


=============================================================================================
Actor udevadm_info unexpectedly terminated with exit code: 1 - Please check the above details
=============================================================================================

Debug output written to /var/log/leapp/leapp-preupgrade.log

============================================================
                           REPORT
============================================================

A report has been generated at /var/log/leapp/leapp-report.json
A report has been generated at /var/log/leapp/leapp-report.txt

============================================================
                       END OF REPORT
============================================================

Answerfile has been generated at /var/log/leapp/answerfile
Steps To Reproducesudo Leapp preupgrade
TagsNo tags attached.
abrt_hash
URL

Activities

olahaye74

2022-04-05 12:50

reporter   ~0000533

Attachment: the output of udevadm info -e
as you will notice, some output is written in Chinese. (example: line 3089).
This is obviously not ASCII, thus the crash.
udevadm_info-e.txt (303,641 bytes)

olahaye74

2022-04-05 13:27

reporter   ~0000534

It seems to crash when decoding this line:
E: HID_UNIQ=香晦晦香香晦晦香

(added a print(read) at line 59 in /usr/lib/python2.7/site-packages/leapp/libraries/stdlib/call.py (just before the crash).

olahaye74

2022-04-05 13:57

reporter   ~0000535

It seems that the device that raises the problem is a Belkin USB+VGA KVM adapter-module (need to physically check)
# lsusb -t -d 3032:
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
        |__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
        |__ Port 2: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
        |__ Port 6: Dev 3, If 0, Class=Hub, Driver=hub/6p, 480M
[root@drtcloud leapp]# lsusb -v -d 3032:

Bus 002 Device 003: ID 3032:1b1c
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 1.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor 0x3032
  idProduct 0x1b1c
  bcdDevice dd.28
  iManufacturer 4 ???
  iProduct 70 ????????????????????????????????
  iSerial 136 ??????????????????????????????
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 59
    bNumInterfaces 2
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower 100mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 3 Human Interface Device
      bInterfaceSubClass 1 Boot Interface Subclass
      bInterfaceProtocol 1 Keyboard
      iInterface 0
        HID Device Descriptor:
          bLength 9
          bDescriptorType 33
          bcdHID 1.00
          bCountryCode 33 US
          bNumDescriptors 1
          bDescriptorType 34 Report
          wDescriptorLength 63
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0008 1x 8 bytes
        bInterval 64
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 1
      bAlternateSetting 0
      bNumEndpoints 1
      bInterfaceClass 3 Human Interface Device
      bInterfaceSubClass 1 Boot Interface Subclass
      bInterfaceProtocol 2 Mouse
      iInterface 0
        HID Device Descriptor:
          bLength 9
          bDescriptorType 33
          bcdHID 1.00
          bCountryCode 0 Not supported
          bNumDescriptors 1
          bDescriptorType 34 Report
          wDescriptorLength 52
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x82 EP 2 IN
        bmAttributes 3
          Transfer Type Interrupt
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0004 1x 4 bytes
        bInterval 10
Device Status: 0x0002
  (Bus Powered)
  Remote Wakeup Enabled

Issue History

Date Modified Username Field Change
2022-04-05 12:17 olahaye74 New Issue
2022-04-05 12:50 olahaye74 Note Added: 0000533
2022-04-05 12:50 olahaye74 File Added: udevadm_info-e.txt
2022-04-05 13:27 olahaye74 Note Added: 0000534
2022-04-05 13:57 olahaye74 Note Added: 0000535