Description of problem: Start xscanimage from the CLI with scanner powered on. You get immediately a segmentation fault Version-Release number of selected component (if applicable): Mageia 8 x86-64 Plasma fully updated (official updates) up to today 4/8/2022. How reproducible: Each and every time. Has been confirmed by Morgan Leijström. Steps to Reproduce: 1. 2. 3.
Yes confirming. And as for Herman, xsane still works for me. My scanner is an Epson Perfection 1660 Photo, Herman have a Epson 2400 Photoscanner an an all-in-one HP-printer-scanner HP Envy 6022. Without scanner attached it exits with message about that, without segfault. Found in journal: svarten.tribun kernel: xscanimage[26936]: segfault at 0 ip 00007f560fe0f07a sp 00007ffd4f0df568 error 4 in libc-2.32.so[7f560fda3000+14f000] Libc version incompatibility? No maintainer, assigning to all.
Source RPM: (none) => sane-frontends-1.0.14-27.mga8Assignee: bugsquad => pkg-bugsCC: (none) => fri
Does this also happen with scanimage from sane-backends-1.0.31-3.mga8?
$ scanimage -L device `epson2:libusb:001:003' is a Epson GT-9300 flatbed scanner So, no segmentation fault, but it presentq another issue: the HP Envy 6022 is not listed, allthough it shows up in MCC-HW-Scanner. And it used to work OK.
And there is no HW problem, since the xscanimage works perfectly OK from Fedora 36 on a VM on the same desktop PC.
Never used it manually, trying: [morgan@svarten ~]$ /usr/bin/scanimage --help ... -L, --list-devices show available scanner devices ... -T, --test test backend thoroughly $ /usr/bin/scanimage -L device `epson2:libusb:003:004' is a Epson GT-8300 flatbed scanner (wrong model name but probably compatible) [morgan@svarten ~]$ /usr/bin/scanimage -T Output format is not set, using pnm as a default. scanimage: scanning image of size 208x292 pixels at 1 bits/pixel scanimage: acquiring gray frame, 1 bits/sample scanimage: reading one scanline, 26 bytes... FAIL Error: Error during device I/O And the scanner lamp started blinking (usually does at scanning and warming up, but it was already ready) After this the scanner need be power cycled (or maybe only replug it) for xsane to see it, and then xsane works perfectly.
We should maybe consider to update the complete sane stack (maybe in backports) as we are using an antigue version from Aug 2020. In the meantime two new versions where released with several bugfixes for segfaults with different scanner manufacturers. Even in cauldron it seems that we are using a outdated version from over a year ago.
Good idea, lets first see if whole stack can be updated. Bug 30703 - Update the complete sane stack
Depends on: (none) => 30703
*** Bug 28405 has been marked as a duplicate of this bug. ***
Just fyi, with my Canon, Inc. PIXMA MP150 Scanner, xscanimage is working.
CC: (none) => davidwhodgins
One thing I haven't seen mentioned, which seems strange. When I run xscanimage, I get the popup requesting the password for my user before it runs. After entering the password, it works.
That was strange - I get no popup asking for password. That said, my user is in wheel group.
As is mine. I'd forgotten about the groups. $ grep -e sane -e scan /etc/group usb:x:43:saned,ups,dave cdwriter:x:80:saned,dave scanner:x:466:dave saned:x:464:dave Can anyone experiencing the problem ensure their id is in the scanner and saned groups?
Mine isn't, has never been.
$ grep -e sane -e scan /etc/group scanner:x:987:
And second: I created a "junk" user afresh. It didn't see any scanner. I added it to the scanner group and then it saw the Epson scanner, not the HP, and the xscanimage crashed as well.
Added myself to scanner group, logged out, in, still segfaults.
There was no saned group in my system... so created it, and joined, logged out-in, but still not better. Is a system reboot needed? [morgan@svarten ~]$ grep -e sane -e scan /etc/group scanner:x:987:morgan saned:x:988:morgan [morgan@svarten ~]$ xscanimage Segmenteringsfel (minnesutskrift skapad)
Possibly related packages $ rpm -qa|grep -e sane -e scan | sort lib64kf5sane5-20.12.0-1.mga8 lib64sane1-1.0.31-3.mga8 lib64sane-hpaio1-3.22.6-1.mga8 libksane-20.12.0-1.mga8 libsane1-1.0.31-3.mga8 sane-backends-1.0.31-3.mga8 sane-backends-iscan-1.0.31-3.mga8 saned-1.0.31-3.mga8 sane-frontends-1.0.14-27.mga8 simple-scan-3.38.2-1.mga8 sslscan-2.0.6-1.mga8 task-printing-scanning-2018-6.mga8 task-scanning-2011.0-11.mga8 xsane-0.999-14.mga8 xsane-gimp-0.999-14.mga8
Added myself to usb group too, no change. I notice from Comment 12, Dave have a user "saned" that also is member of usb, somewhat logical maybe as the scanner is on USB. How cone there is a user "saned" and not on my system. *xsane* work anyway on mine and Hermans systems, but not xscanimage... -- $ rpm -qa|grep -e sane -e scan | sort lib64kf5sane5-20.12.0-1.mga8 lib64sane1-1.0.31-3.mga8 lib64sane-hpaio1-3.22.6-1.mga8 libksane-20.12.0-1.mga8 sane-backends-1.0.31-3.mga8 sane-backends-iscan-1.0.31-3.mga8 sane-frontends-1.0.14-27.mga8 simple-scan-3.38.2-1.mga8 xsane-0.999-14.mga8 Will now add up to list per Comment 18...
[morgan@svarten ~]$ rpm -qa|grep -e sane -e scan | sort lib64kf5sane5-20.12.0-1.mga8 lib64sane1-1.0.31-3.mga8 lib64sane-hpaio1-3.22.6-1.mga8 libksane-20.12.0-1.mga8 sane-backends-1.0.31-3.mga8 sane-backends-iscan-1.0.31-3.mga8 saned-1.0.31-3.mga8 sane-frontends-1.0.14-27.mga8 simple-scan-3.38.2-1.mga8 task-printing-scanning-2018-6.mga8 task-scanning-2011.0-11.mga8 xsane-0.999-14.mga8 xsane-gimp-0.999-14.mga8 [morgan@svarten ~]$ [morgan@svarten ~]$ grep -e sane -e scan /etc/group scanner:x:987:morgan saned:x:988:morgan Hm, I expected user "saned" should be created when sane installed, but no. $ xscanimage Segmenteringsfel (minnesutskrift skapad)
(I did reboot after installing packages)
# rpm -q --scripts saned|head -n 3 preinstall scriptlet (using /bin/sh): # Add saned to group scanner, cdwriter and usb for scanner access. /usr/sbin/useradd -r -M -s /bin/false -d /etc/sane.d -c "system user for saned" saned -G cdwriter,usb,scanner || : So it should have been created when the package saned was installed. Regards, Dave Hodgins
Ah, the script probably stumbled because I made the saned group already (Comment 17) Test: $ sudo LC_ALL=C /usr/sbin/useradd -r -M -s /bin/false -d /etc/sane.d -c "system user for saned" saned -G cdwriter,usb,scanner || : useradd: group saned exists - if you want to add this user to that group, use -g. I urpme sane (and thus task-printing-scanning too), delete group saned, urpmi the two packages back. Result OK: [morgan@svarten ~]$ grep -e sane -e scan /etc/group usb:x:43:root,morgan,saned cdwriter:x:80:saned scanner:x:987:morgan,saned saned:x:948: $ xscanimage Segmenteringsfel (minnesutskrift skapad) So still not OK. Adding myself, to fully replicate Dave in comment 12 Also rebooted the system [morgan@svarten ~]$ grep -e sane -e scan /etc/group usb:x:43:root,morgan,saned cdwriter:x:80:saned,morgan scanner:x:987:morgan,saned saned:x:948:morgan [morgan@svarten ~]$ xscanimage Segmenteringsfel (minnesutskrift skapad) And still journal logs "error 4 in libc-2.32.so" At the same time it segfaults, HPLIP system tray applet shows a warning message (no details)
Adding kernel and drivers team to cc list as it's libc that's segfaulting.
CC: (none) => kernel
For someone using cauldron, is the problem the same?
CC: (none) => yves.brungard_mageia
It has something to do with the configuration of the system. On the laptop where I test the upcoming updates, xscanimage works perfectly with the wifi-connected HP Envy 6022.
@Herman, on the working system, do you get a password dialogue like Dave in Comment 10?
No. Never seen that before either.
And forgot to mention: the user on the working system does not belong in any other group besides its own.
Figured out why I'm getting polkit requesting my password. It's because I have avahi-daemon.service stopped and masked. After unmasking and starting it, I don't get the password prompt. I still don't get a segfault though.
Still segfault with sane-1.1.1-2.mga8.src.rpm Bug 30703
To clarify, xscanimage come from sane-frontends which is more or less abandoned upstream (last release is 17 years old) and had not been updated in bug #30703. scanimage (without the x) is a cli program which come from sane-backends and had been updated. regards julien
CC: (none) => julien.moragny
Ah. Maybe time to drop it in mga9 then?
That would be my preference, only gscan2pdf depends on sane-frontends and I don't understand why since it works without issue after removing it (with --nodeps); and for the gimp plugin, it can be replaced with xsane-gimp.
Precision, sane-frontends provide an optional alternate engine (scanadf) for scanning in gscan2pdf (scanimage is also an alternate engine). gscan2pdf works without sane-frontends, it just doesn't propose scanadf as alternate engine. The author of gscan2pdf is in the process of deprecating those alternates engines ( https://sourceforge.net/p/gscan2pdf/mailman/message/37200258/ ).
(In reply to Julien Moragny from comment #35) ... > > The author of gscan2pdf is in the process of deprecating those alternates > engines ( https://sourceforge.net/p/gscan2pdf/mailman/message/37200258/ ). I use gscan2pdf a lot and notice the author states (2021-01-18): "So - is there anyone using the scanimage or scanadf frontends in gscan2pdf who would have a problem switching to the libsane-image-perl frontend?" I can't find anything `libsane-image-perl` in MGA8, if that is what will be required. Thanks.
CC: (none) => rolfpedersen
The package is named perl-Image-Sane in MGA8. You can see and choose the frontend in the preference. regards julien
Hello, I just pushed an updated version of sane-frontends (latest git) to cauldron and 8 update_testing. Can someone with the issue try to see if it is fixed? There are some commit related to segfaults in the log regards Julien