ippusbxd crashing on boot up in Focal Fossa

Bug #1877095 reported by Andy C on 2020-05-06
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ippusbxd (Ubuntu)
High
Till Kamppeter

Bug Description

ippusbxd 1.34-2 crashes on system boot in Focal Fossa Ubuntu 20.04. Kernel 5.4.0-29.
ippusbxd also crashes when booting from an install media USB Stick (Ubuntu 20.04).
This occurs on Desktop PC and laptops connected to an HP Envy 6200 series Printer via USB cable.
Disconnecting the USB cable to the printer, the crash does not occur on boot up.
Earlier releases of Ubuntu (eg 19.10 and 19.04) boot cleanly.

report :
systemctl --failed
  UNIT LOAD ACTIVE SUB DESCRIPTION
ippusbxd@001:003.service loaded failed failed Daemon to make IPP-over-USB printers available as network printers (001:003)

---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: MATE
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2020-05-04 (2 days ago)
InstallationMedia: Ubuntu-MATE 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
NonfreeKernelModules: nvidia_modeset nvidia
Package: ippusbxd 1.34-2ubuntu1
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
Tags: focal
Uname: Linux 5.4.0-29-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo vboxusers
_MarkForUpload: True

Andy C (tunggft) wrote :

Package :
ippusbxd:
  Installed: 1.34-2ubuntu1
  Candidate: 1.34-2ubuntu1

Desktop : HP Pavilion 590
Printer : HP Envy 6230

Andy C (tunggft) wrote :

Work-around, if printing over LAN is not required, is to mask the ippusbxd service in systemctl:

sudo systemctl mask ippusbxd@001:003.service *
sudo systemctl mask ippusbxd@.service

and remove crash logs in /var/crash

* check your bus/device nos via :
systemctl --failed

Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:

  apport-collect 1877095

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in ippusbxd (Ubuntu):
assignee: nobody → Till Kamppeter (till-kamppeter)
assignee: Till Kamppeter (till-kamppeter) → nobody
status: New → Incomplete

apport information

tags: added: apport-collected focal
description: updated

apport information

apport information

Andy C (tunggft) wrote :

Thanks, Sebastian, the apport report has been uploaded.
~ FYI my first attempt to log the bug got rejected (not authorised) when:
  - I ran <ubuntu-bug ippusbxd> from AltF2 (which does create the data you need, right?)
  - And attempted to upload the /var/crash log. Is that not allowed?
So I tried later on filing the bug directly, which did work...
I don't do this stuff often enough to learn the in's and outs ;-0

Andy C (tunggft) wrote :

Attach crash log.

Andy C (tunggft) wrote :

Updated details. I can confirm this issue is not isolated to one PC.
Same issue occurs on 2 other laptops, when they are connected by USB cable to HP Envy 6200 series printer.

description: updated

Backtrace output of the CoreDump in the attached crash report file. ippusbxd and ippusbxd-dbgsym packages must be installed.

----------
till@till-x1yoga:~/printing/scan/sane-airscan-wsd/tmp$ gdb -c CoreDump /usr/sbin/ippusbxd
GNU gdb (Ubuntu 9.1-0ubuntu1) 9.1
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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://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 /usr/sbin/ippusbxd...
Reading symbols from /usr/lib/debug/.build-id/76/55935607fe048bd0d323b46bfdebc9f63b9b7a.debug...
[New LWP 6049]
[New LWP 6050]
[New LWP 6047]
[New LWP 6052]
[New LWP 6048]
[New LWP 6051]

warning: Could not load shared library symbols for 22 libraries, e.g. /lib/x86_64-linux-gnu/libavahi-common.so.3.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
--Type <RET> for more, q to quit, c to continue without paging--
Core was generated by `ippusbxd'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
65 ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
[Current thread is 1 (Thread 0x7f3ab18ac700 (LWP 6049))]
(gdb) bt
#0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
#1 0x000055ecbecd3522 in get_format_paper (val=0x7f3ab18aba8d "12",
    val@entry=0x7f3ab18ab690 "{x-dimension=18415 y-dimension=26670},{x-dimension=21590 y-dimension=27940},{x-dimension=20320 y-dimension=25400},{x-dimension=13970 y-dimension=21590},{x-dimension=14800 y-dimension=21000},{x-dimensi"...)
    at ./src/capabilities.c:219
#2 0x000055ecbecd3a12 in ipp_request (printer=printer@entry=0x7f3aac000b60,
    port=<optimized out>) at ./src/capabilities.c:297
#3 0x000055ecbecd108c in dnssd_escl_register (data=0x55ecbf584870)
    at ./src/dnssd.c:226
#4 0x00007f3ab4f7d609 in start_thread (arg=<optimized out>)
    at pthread_create.c:477
#5 0x00007f3ab4c10103 in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb)
----------

Download full text (4.9 KiB)

More verbose:

-----------
(gdb) bt -full -entry-values both
#0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
No locals.
#1 0x000055ecbecd3522 in get_format_paper (val=0x7f3ab18aba8d "12",
    val@entry=0x7f3ab18ab690 "{x-dimension=18415 y-dimension=26670},{x-dimension=21590 y-dimension=27940},{x-dimension=20320 y-dimension=25400},{x-dimension=13970 y-dimension=21590},{x-dimension=14800 y-dimension=21000},{x-dimensi"...)
    at ./src/capabilities.c:219
        test1 = <optimized out>
        test2 = '\000' <repeats 254 times>
        tmp = 0x0
        a = <optimized out>
        x_dim_max = 21590
        x_dim = 10160
        y_dim_max = 30480
        y_dim = 12700
#2 0x000055ecbecd3a12 in ipp_request (printer=0x7f3aac000b60,
    printer@entry=0x7f3aac000b60, port=<optimized out>,
    port@entry=<optimized out>) at ./src/capabilities.c:297
        attr_name = 0x7f3aac028534 "media-size-supported"
        http = 0x7f3aac002420
        request = <optimized out>
        response = 0x7f3aac0087d0
        attr = 0x7f3aac029c30
--Type <RET> for more, q to quit, c to continue without paging--
        uri = "http://127.0.0.1:60000/ipp/print", '\000' <repeats 991 times>
        buffer = "{x-dimension=18415 y-dimension=26670},{x-dimension=21590 y-dimension=27940},{x-dimension=20320 y-dimension=25400},{x-dimension=13970 y-dimension=21590},{x-dimension=14800 y-dimension=21000},{x-dimensi"...
#3 0x000055ecbecd108c in dnssd_escl_register (data=0x55ecbf584870,
    data@entry=<optimized out>) at ./src/dnssd.c:226
        uscan_txt = <optimized out>
        ipp_txt = 0x55ecbf584870
        scanner = 0x0
        error = <optimized out>
        temp = '\000' <repeats 255 times>
        printer = 0x7f3aac000b60
#4 0x00007f3ab4f7d609 in start_thread (arg=<optimized out>,
    arg@entry=<optimized out>) at pthread_create.c:477
        ret = <optimized out>
        pd = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139890063492864,
                5850024025269200107, 140734207842846, 140734207842847,
                140734207842848, 139890063490304, -5811307293921516309,
                -5811301356907404053}, mask_was_saved = 0}}, priv = {pad = {
              0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0,
              canceltype = 0}}}
        not_first_call = 0
--Type <RET> for more, q to quit, c to continue without paging--
#5 0x00007f3ab4c10103 in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
(gdb)
(gdb)
(gdb) bt -full -entry-values both
#0 __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
No locals.
#1 0x000055ecbecd3522 in get_format_paper (val=0x7f3ab18aba8d "12",
    val@entry=0x7f3ab18ab690 "{x-dimension=18415 y-dimension=26670},{x-dimension=21590 y-dimension=27940},{x-dimension=20320 y-dimension=25400},{x-dimension=13970 y-dimension=21590},{x-dimension=14800 y-dimension=21000},{x-dimensi"...)
    at ./src/capabilities.c:219
        test1 = <optimized out>
        test2 = '\000' <repeats 254 times>
        tmp = 0x0
        a = <optimized out>
        x_dim_max = 21590
        x_dim = 10160
        y_dim_max = 30480
        y_dim = 12700
#2 0x00...

Read more...

Fixed upstream.

Sebastien Bacher (seb128) wrote :

Thanks Till, I'm assigning the bug to you

Changed in ippusbxd (Ubuntu):
status: Incomplete → In Progress
importance: Undecided → High
assignee: nobody → Till Kamppeter (till-kamppeter)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.