Bug#992721: hplip: Scanning with Deskjet 3050A J611 crash
Hi, I applied the patch and try it on hplip 3.21.6+dfsg0-1. No more stack smashing. But at a random point during the scan, simple-scan stop and display a message : « Failed to scan - Error communicating with scanner ». Nothing in the terminal nor in journald. The random point where it failed is random in the sense of when I scan, I can show the beginning of the scanned picture appear in simple-scan, and at one point (sometimes at the begining, sometimes near the end), the error message appear. Cheers, Florence Le Mon, 20 Sep 2021 19:18:11 +0200, Bernhard Übelacker a écrit : > Hello Florence, dear Maintainer, > then attached patch is growing this buffer from 6 > to 10 usable bytes, making a size around 1 TB possible. > And tries to break the loop before overrunning the buffer. > > Unfortunately I cannot test this patch, > so it is completely untested, just compiles... > > Kind regards, > Bernhard > -- Florence Birée (elle) 06 52 92 15 32 En ces temps d'état policier, ne les laissons pas lire nos mails, chiffrons-les ! https://emailselfdefense.fsf.org/fr/index.html pgpkYNlALlFKr.pgp Description: Signature digitale OpenPGP
Bug#992721: hplip: Scanning with Deskjet 3050A J611 crash
Hello, Le Thu, 16 Sep 2021 00:29:47 +0200, Bernhard Übelacker a écrit : > One easy thing might be to test if the resolution could be > changed to some lower value in the hope to get this "size" to > a lower value, does the scan then succeed ? You seems to be right. I try to scan with simple scan, in text mode: - with resolution 75ppp: scan ok - with resolution 150ppp: scan ok - with resolution 200ppp: scan ok - with resolution 300ppp: simple scan crash, stack smashing detected the stack trace: sept. 20 10:31:48 lyra systemd-coredump[78476]: [] Process 78221 (simple-scan) of user 1000 dumped core. Stack trace of thread 78257: #0 0x7f7ebf71 raise (libc.so.6 + 0x3ce71) #1 0x7f7ebfed8536 abort (libc.so.6 + 0x26536) #2 0x7f7ebff302b8 n/a (libc.so.6 + 0x7e2b8) #3 0x7f7ebffbed42 __fortify_fail (libc.so.6 + 0x10cd42) #4 0x7f7ebffbed20 __stack_chk_fail (libc.so.6 + 0x10cd20) #5 0x7f7e9834b146 get_size (libsane-hpaio.so.1 + 0x14146) #6 0x n/a (n/a + 0x0) Cheers, -- Florence Birée (elle) 06 52 92 15 32 En ces temps d'état policier, ne les laissons pas lire nos mails, chiffrons-les ! https://emailselfdefense.fsf.org/fr/index.html pgpd6OWxyyT2t.pgp Description: Signature digitale OpenPGP
Bug#992721: hplip: Scanning with Deskjet 3050A J611 crash
Hi Bernhard, Here is the stack trace (scanning with simple-scan): sept. 15 18:55:47 lyra systemd[1]: Created slice Slice /system/systemd-coredump. sept. 15 18:55:47 lyra systemd[1]: Started Process Core Dump (PID 113128/UID 0). sept. 15 18:55:48 lyra systemd-coredump[113129]: [] Process 113052 (simple-scan) of user 1000 dumped core. Stack trace of thread 113079: #0 0x7f858b12ae71 raise (libc.so.6 + 0x3ce71) #1 0x7f858b114536 abort (libc.so.6 + 0x26536) #2 0x7f858b16c2b8 n/a (libc.so.6 + 0x7e2b8) #3 0x7f858b1fad42 __fortify_fail (libc.so.6 + 0x10cd42) #4 0x7f858b1fad20 __stack_chk_fail (libc.so.6 + 0x10cd20) #5 0x7f857c763146 get_size (libsane-hpaio.so.1 + 0x14146) #6 0x n/a (n/a + 0x0) sept. 15 18:55:48 lyra systemd[1]: systemd-coredump@0-113128-0.service: Succeeded. I hope it will be useful! Cheers, Florence Le Mon, 13 Sep 2021 18:11:40 +0200, Bernhard Übelacker a écrit : > Hello Florence, > there might be still something that could be done > to retrieve some more information (if you have still > the versions installed that show the issue). > > The easiest first thing might be to install the package > systemd-coredump, if possible. > > Then open in another terminal 'journalctl -f'. > > And reproduce one of the "stack smashings". > > Then in the other terminal a "Stack trace" should appear - this > should point out the library and maybe function where the issue is. > > Kind regards, > Bernhard -- Florence Birée (elle) 06 52 92 15 32 En ces temps d'état policier, ne les laissons pas lire nos mails, chiffrons-les ! https://emailselfdefense.fsf.org/fr/index.html pgpVSCXc5R4fJ.pgp Description: Signature digitale OpenPGP
Bug#992721: hplip: Scanning with Deskjet 3050A J611 crash
Le Tue, 24 Aug 2021 10:50:19 +0100, Brian Potkin a écrit : > Can you scan with any of these? > > scanimage -d > "hpaio:/usb/Deskjet_3050A_J611_series?serial=CN31L1CQMP05WK" > > image.pnm > simple-scan > "hpaio:/usb/Deskjet_3050A_J611_series?serial=CN31L1CQMP05WK" > xsane > "hpaio:/usb/Deskjet_3050A_J611_series?serial=CN31L1CQMP05WK" With some tests, it seems the crash is not always reproducible (sometimes, it's working…), so I run each command 4 times to see (and add hp-scan again, in case it crash sometimes too). Without removing the slash: $ scanimage -d "hpaio:/usb/Deskjet_3050A_J611_series?serial=CN31L1CQMP05WK" > image.pnm -> on 4 runs, 1 give "stack smashing", 3 works well… $ simple-scan "hpaio:/usb/Deskjet_3050A_J611_series?serial=CN31L1CQMP05WK" -> on 4 runs, 4 "stack smashing" crashes. I can see the top of the image appearing in simple-scan, and the program do no crash at the same times (sometimes more of the scan is displayed before the crash) $ xsane "hpaio:/usb/Deskjet_3050A_J611_series?serial=CN31L1CQMP05WK" -> on 4 runs, 4 "stack smashing" crashes $ hp-scan -> on 4 runs, 4 "stack smashing" crash… (but it worked yesterday…) ** after the removal of the slash in os-release: $ scanimage -d "hpaio:/usb/Deskjet_3050A_J611_series?serial=CN31L1CQMP05WK" > image.pnm -> on 4 runs, 1 "stack smashing", 3 works $ simple-scan "hpaio:/usb/Deskjet_3050A_J611_series?serial=CN31L1CQMP05WK" -> on 4 runs, 4 "stack smashing" crashes. $ xsane "hpaio:/usb/Deskjet_3050A_J611_series?serial=CN31L1CQMP05WK" -> on 4 runs, 4 "stack smashing" crashes (but on some preliminary tests, it works sometimes…) $ hp-scan -> on 4 runs, 4 "stack smashing" crash, at various percentages of scanning So… it seems the problem is not 100% reproducible, even if it happens in the large majority of times… And I'm not sure the os-release changes really changes something, maybe the times when hp-scan was working was just luck… Cheers, -- Florence Birée (elle) 06 52 92 15 32 En ces temps d'état policier, ne les laissons pas lire nos mails, chiffrons-les ! https://emailselfdefense.fsf.org/fr/index.html pgpOGOsGNaBul.pgp Description: Signature digitale OpenPGP
Bug#992721: hplip: Scanning with Deskjet 3050A J611 crash
Le Mon, 23 Aug 2021 23:50:45 +0100, Brian Potkin a écrit : > > > But the problem is still the same for simple-scan and xsane… > > Is the "stack smashing detected" message given in these cases? Yes, exactly. > Please provide > > scanimage -L $ scanimage -L device `hpaio:/usb/Deskjet_3050A_J611_series?serial=CN31L1CQMP05WK' is a Hewlett-Packard Deskjet_3050A_J611_series all-in-one Cheers, -- Florence Birée (elle) 06 52 92 15 32 En ces temps d'état policier, ne les laissons pas lire nos mails, chiffrons-les ! https://emailselfdefense.fsf.org/fr/index.html pgpIvMmBaHqjE.pgp Description: Signature digitale OpenPGP
Bug#992721: hplip: Scanning with Deskjet 3050A J611 crash
Le Mon, 23 Aug 2021 17:05:28 +0100, Brian Potkin a écrit : > Reduce bookworm/sid to fewer than 12 characters. For examole, remove > "sid". Save and try scanning. This makes hp-scan works well, thanks! (I've now a working scanning solution) But the problem is still the same for simple-scan and xsane… Cheers, -- Florence Birée (elle) 06 52 92 15 32 En ces temps d'état policier, ne les laissons pas lire nos mails, chiffrons-les ! https://emailselfdefense.fsf.org/fr/index.html pgpgo8jg5PD3U.pgp Description: Signature digitale OpenPGP
Bug#992721: hplip: Scanning with Deskjet 3050A J611 crash
Hello Brian, Here is the output: $ grep PRETTY /usr/lib/os-release PRETTY_NAME="Debian GNU/Linux bookworm/sid" Regards, Florence Le Mon, 23 Aug 2021 15:03:58 +0100, Brian Potkin a écrit : > On Sun 22 Aug 2021 at 18:58:26 +0200, Florence Birée wrote: > > > Package: hplip > > Version: 3.21.4+dfsg0-1 > > Severity: important > > X-Debbugs-Cc: flore...@biree.name > > > > Dear Maintainer, > > > > My HP Deskjet 3055A, used only to scan files, doesn't work anymore > > when scanning with both hp-scan, xsane or simple-scan, here on > > Debian unstable/experimental. It used to work with another computer > > on Debian Buster (didn't try with Bullseye, the computer is dead), > > as well on other computer with Ubuntu 20.04. > > > > Either of this three programs crashes with this message on a > > terminal: > > > *** stack smashing detected ***: terminated > > > fish : Tâche , 'simple-scan' terminée par le signal SIGABRT > > > (Abandon) > > > > I tried to 'apt purge' all packages involved in scanning and hplip, > > and install them again, with the same result. > > > > I'm ready to give you more informations if needed… > > > > Thanks for your works, > > Florence > > Hello Florence, > > Thank you for your detailed report. Please give us the output of > > grep PRETTY /usr/lib/os-release > > Regards, > > Brian. > -- Florence Birée (elle) 06 52 92 15 32 En ces temps d'état policier, ne les laissons pas lire nos mails, chiffrons-les ! https://emailselfdefense.fsf.org/fr/index.html pgpXcj4OhUJAS.pgp Description: Signature digitale OpenPGP
Bug#992721: hplip: Scanning with Deskjet 3050A J611 crash
Package: hplip Version: 3.21.4+dfsg0-1 Severity: important X-Debbugs-Cc: flore...@biree.name Dear Maintainer, My HP Deskjet 3055A, used only to scan files, doesn't work anymore when scanning with both hp-scan, xsane or simple-scan, here on Debian unstable/experimental. It used to work with another computer on Debian Buster (didn't try with Bullseye, the computer is dead), as well on other computer with Ubuntu 20.04. Either of this three programs crashes with this message on a terminal: > *** stack smashing detected ***: terminated > fish : Tâche , 'simple-scan' terminée par le signal SIGABRT (Abandon) I tried to 'apt purge' all packages involved in scanning and hplip, and install them again, with the same result. I'm ready to give you more informations if needed… Thanks for your works, Florence -- Package-specific info: Saving output in log file: /home/florence/hp-check.log HP Linux Imaging and Printing System (ver. 3.21.4) Dependency/Version Check Utility ver. 15.1 Copyright (c) 2001-18 HP Development Company, LP This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details. Note: hp-check can be run in three modes: 1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to successfully compile HPLIP. 2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies installed to successfully run. 3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies). Check types: a. EXTERNALDEP - External Dependencies b. GENERALDEP - General Dependencies (required both at compile and run time) c. COMPILEDEP - Compile time Dependencies d. [All are run-time checks] PYEXT SCANCONF QUEUES PERMISSION Status Types: OK MISSING - Missing Dependency or Permission or Plug-in INCOMPAT - Incompatible dependency-version or Plugin-version warning: debian-11 version is not supported. Using debian-10.8 versions dependencies to verify and install... --- | SYSTEM INFO | --- Kernel: 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) GNU/Linux Host: lyra Proc: 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) GNU/Linux Distribution: debian 11 Bitness: 64 bit --- | HPLIP CONFIGURATION | --- HPLIP-Version: HPLIP 3.21.4 HPLIP-Home: /usr/share/hplip warning: HPLIP-Installation: Auto installation is not supported for debian distro 11 version Current contents of '/etc/hp/hplip.conf' file: # hplip.conf. Generated from hplip.conf.in by configure. [hplip] version=3.21.4 [dirs] home=/usr/share/hplip run=/var/run ppd=/usr/share/ppd/hplip/HP ppdbase=/usr/share/ppd/hplip doc=/usr/share/doc/hplip html=/usr/share/doc/hplip-doc icon=no cupsbackend=/usr/lib/cups/backend cupsfilter=/usr/lib/cups/filter drv=/usr/share/cups/drv bin=/usr/bin apparmor=/etc/apparmor.d # Following values are determined at configure time and cannot be changed. [configure] network-build=yes libusb01-build=no pp-build=no gui-build=yes scanner-build=yes fax-build=yes dbus-build=yes cups11-build=no doc-build=yes shadow-build=no hpijs-install=yes foomatic-drv-install=yes foomatic-ppd-install=no foomatic-rip-hplip-install=no hpcups-install=yes cups-drv-install=yes cups-ppd-install=no internal-tag=3.21.4 restricted-build=no ui-toolkit=qt5 qt3=no qt4=no qt5=yes policy-kit=yes lite-build=no udev_sysfs_rules=no hpcups-only-build=no hpijs-only-build=no apparmor_build=no class-driver=no Current contents of '/var/lib/hp/hplip.state' file: Plugins are not installed. Could not access file: No such file or directory Current contents of '~/.hplip/hplip.conf' file: [commands] scan = /usr/bin/simple-scan %SANE_URI% [fax] email_address = voice_phone = [installation] date_time = 08/22/21 18:51:05 version = 3.21.4 [last_used] device_uri = hpaio:/usb/Deskjet_3050A_J611_series?serial=CN31L1CQMP05WK printer_name = working_dir = . [polling] device_list = enable = false interval = 5 [refresh] enable = false rate = 30 type = 1 [settings] systray_messages = 0 systray_visible = 0 [upgrade]