Thanks, that's fixed in
https://launchpad.net/ubuntu/+source/libusb-1.0/2:1.0.26-1 and I've
uploaded a stable update for 22.04 with a cherry pick from
https://github.com/libusb/libusb/commit/6b29aeb9 which fixes the issue

** Changed in: libusb-1.0 (Ubuntu)
   Importance: Undecided => High

** Changed in: libusb-1.0 (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libusb-1.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1973091

Title:
  Ubuntu 22.04: libusb-1.0.25 breaks libinklevel and ink

Status in libusb-1.0 package in Ubuntu:
  Fix Released

Bug description:
  * Impact

  libusb as an incompatibility with previous versions which breaks ink
  and maybe some other softwares

  *  Test case

  install ink and

  $ ink -p usb

  it shouldn't segfault

  * Regression potential

  libusb is used by fwupd, libfprint, cups, boxes, gvfs and others.
  Ensure those services are still working as expected (printing, listing
  new usb devices on the desktop, fingerprint login, firmware update,
  boxes VM usb hardware detection)

  --------------------------------------------

  The following packages are installed:

  1. libusb-1.0-0/jammy,now 2:1.0.25-1ubuntu1 amd64
  2. libinklevel5/jammy,now 0.9.3-3 amd64
  3. ink/jammy,now 0.5.3-3 amd64

  Command invoked is:

  ink -p usb

  Result is a segmentation fault. Backtrace in gdb:

  gdb) bt
  #0  0x00007ffff7dfcf74 in pthread_mutex_lock () from 
/lib/x86_64-linux-gnu/libc.so.6
  #1  0x00007ffff7d52879 in libusb_get_device_list () from 
/lib/x86_64-linux-gnu/libusb-1.0.so.0
  #2  0x00007ffff7f96c90 in find_printer () from 
/lib/x86_64-linux-gnu/libinklevel.so.5
  #3  0x00007ffff7f963e5 in get_device_id () from 
/lib/x86_64-linux-gnu/libinklevel.so.5
  #4  0x00007ffff7f90d55 in get_ink_level () from 
/lib/x86_64-linux-gnu/libinklevel.so.5
  #5  0x000055555555554e in ?? ()
  #6  0x00007ffff7d8ed90 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
  #7  0x00007ffff7d8ee40 in __libc_start_main () from 
/lib/x86_64-linux-gnu/libc.so.6
  #8  0x0000555555555795 in ?? ()

  I have compiled libusb-1.0.26 into my $HOME and pointed
  LD_LIBRARY_PATH to it. Then I get the expected result:

  ink -p usb
  ink 0.5.3 (c) 2018 Markus Heinz

  hp deskjet 5550

  Black:                                   0%
  Color:                                   0%

  ldd /usr/bin/ink
   linux-vdso.so.1 (0x00007ffe6e47b000)
   libinklevel.so.5 => /lib/x86_64-linux-gnu/libinklevel.so.5 
(0x00007f479dd44000)
   libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f479db1c000)
   libusb-1.0.so.0 => 
/home/markus/privat/programmieren/c/printer/libusb-dist/libusb-1.0.26/libusb/.libs/libusb-1.0.so.0
 (0x00007f479dafc000)
   /lib64/ld-linux-x86-64.so.2 (0x00007f479dd79000)
   libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f479dad2000)

  So I have the assumption that there is a regression in libusb-1.0.25
  which has been fixed in libusb-1.0.26.

  On Ubuntu 20.04 there was no problem with libusb and libinklevel /
  ink. It just appeared after the update to Ubuntu 22.04 which I did
  today.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libusb-1.0/+bug/1973091/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to