Bug 15986

Summary: Scanner recognized canon_lide210 (mageia4) but crashe
Product: Mageia Reporter: andre cohendoz <acohendoz>
Component: RPM PackagesAssignee: José Jorge <lists.jjorge>
Status: RESOLVED OLD QA Contact:
Severity: normal    
Priority: Normal CC: anaselli, juergen.harms, loginov_alex, luigiwalser, marja11, remco
Version: 4   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
URL: http://dl.free.fr/cMhILnJtRhttp://
Whiteboard:
Source RPM: sane-backends-1.0.24-3.mga4 CVE:
Status comment:

Description andre cohendoz 2015-05-19 21:44:03 CEST
Description of problem:

Sane Start> click Menu> Window> Overview <Overview acquisition or digitization
"Failed scanner Invalid argument"

Overview works sometimes but not the digitization

# lspcidrake -v
r8169           : Realtek Semiconductor Co., Ltd.|RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [NETWORK_ETHERNET] (vendor:10ec device:8168 subv:1043 subd:8554) (rev: 0c)
Card:NVIDIA GeForce 8100 to GeForce 360: NVIDIA Corporation|G92 [GeForce 8800 GT] [DISPLAY_VGA] (vendor:10de device:0611 subv:1458 subd:3468) (rev: a2)
i2c_i801        : Intel Corporation|8 Series/C220 Series Chipset Family SMBus Controller [SERIAL_SMBUS] (vendor:8086 device:8c22 subv:1043 subd:8534) (rev: 05)
unknown         : Intel Corporation|8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] [STORAGE_SATA] (vendor:8086 device:8c02 subv:1043 subd:8534) (rev: 05)
lpc_ich         : Intel Corporation|B85 Express LPC Controller [BRIDGE_ISA] (vendor:8086 device:8c50 subv:1043 subd:8534) (rev: 05)
ehci_pci        : Intel Corporation|8 Series/C220 Series Chipset Family USB EHCI #1 [SERIAL_USB] (vendor:8086 device:8c26 subv:1043 subd:8534) (rev: 05)
shpchp          : Intel Corporation|8 Series/C220 Series Chipset Family PCI Express Root Port #3 [BRIDGE_PCI] (vendor:8086 device:8c14) (rev: d5)
shpchp          : Intel Corporation|8 Series/C220 Series Chipset Family PCI Express Root Port #1 [BRIDGE_PCI] (vendor:8086 device:8c10) (rev: d5)
snd_hda_intel   : Intel Corporation|8 Series/C220 Series Chipset High Definition Audio Controller [MULTIMEDIA_AUDIO_DEV] (vendor:8086 device:8c20 subv:1043 subd:8576) (rev: 05)
ehci_pci        : Intel Corporation|8 Series/C220 Series Chipset Family USB EHCI #2 [SERIAL_USB] (vendor:8086 device:8c2d subv:1043 subd:8534) (rev: 05)
mei_me          : Intel Corporation|8 Series/C220 Series Chipset Family MEI Controller #1 [COMMUNICATION_OTHER] (vendor:8086 device:8c3a subv:1043 subd:8534) (rev: 04)
xhci_hcd        : Intel Corporation|8 Series/C220 Series Chipset Family USB xHCI [SERIAL_USB] (vendor:8086 device:8c31 subv:1043 subd:8534) (rev: 05)
shpchp          : Intel Corporation|Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller [BRIDGE_PCI] (vendor:8086 device:0c01) (rev: 06)
unknown         : Intel Corporation|4th Gen Core Processor DRAM Controller [BRIDGE_HOST] (vendor:8086 device:0c00 subv:1043 subd:8534) (rev: 06)
hub             : Linux 3.14.41-desktop-1.mga4 xhci_hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0003)
hub             : Linux 3.14.41-desktop-1.mga4 xhci_hcd|xHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
unknown         : Canon|CanoScan (vendor:04a9 device:190a)
hub             : Linux 3.14.41-desktop-1.mga4 ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Intel Corp.|Unknown [Hub|Unused|Full speed (or root) hub] (vendor:8087 device:8000)
hub             : Linux 3.14.41-desktop-1.mga4 ehci_hcd|EHCI Host Controller [Hub|Unused|Full speed (or root) hub] (vendor:1d6b device:0002)
hub             : Intel Corp.|Unknown [Hub|Unused|Full speed (or root) hub] (vendor:8087 device:8008)

/usr/bin/sane-find-scanner (extract)
found USB scanner (vendor=0x04a9 [Canon], product=0x190a [CanoScan], chip=GL124) at libusb:003:003
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.
  

scanimage -L
device `genesys:libusb:003:003' is a Canon LiDE 210 flatbed scanner

lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp. 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 04a9:190a Canon, Inc. CanoScan LiDE 210
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Version-Release number of selected component (if applicable):




How reproducible:
reproductile x times

Steps to Reproduce:
1.
2.
3.


Reproducible: 

Steps to Reproduce:
Comment 1 Marja Van Waes 2015-06-16 06:05:49 CEST
Hi André,

Can you please open a konsole and start (as root):

     journalctl -f 2>&1 | tee output.txt

then try to make a scan until you get the error, and *attach* output.txt to this bug report.

Please also try whether you have the same problem when using simple-scan instead of xscan,

(adding some committers of sane-backends and xsane)

Keywords: (none) => NEEDINFO
CC: (none) => anaselli, juergen.harms, loginov_alex, luigiwalser, marja11, remco

Comment 2 andre cohendoz 2015-06-28 21:14:31 CEST
[root@localhost ~]# journalctl -f 2>&1 | tee output.txt
-- Logs begin at lun. 2015-05-25 16:07:19 CEST. --
juin 27 21:22:01 localhost pkexec[599]: pam_tcb(polkit-1:session): Session opened for root by (uid=500)
juin 27 21:22:01 localhost pkexec[599]: dede: Executing command [USER=root] [TTY=unknown] [CWD=/] [COMMAND=/usr/libexec/urpmi.update Tainted 32bit Backports]
juin 27 21:22:03 localhost mgaapplet[3916]: Packages are up to date
juin 27 21:22:08 localhost smartd[964]: Device: /dev/sda [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 73 to 69
juin 27 21:22:08 localhost smartd[964]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 151 to 142
juin 27 21:22:08 localhost smartd[964]: Device: /dev/sdb [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 66 to 64
juin 27 21:22:08 localhost smartd[964]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 34 to 36
juin 27 21:22:16 localhost su[608]: pam_tcb(su-l:auth): Authentication passed for root from dede(uid=500)
juin 27 21:22:16 localhost su[608]: (to root) dede on pts/1
juin 27 21:22:16 localhost su[608]: pam_tcb(su-l:session): Session opened for root by dede(uid=500)
juin 27 21:26:20 localhost kernel: usb 1-9: USB disconnect, device number 2
juin 27 21:26:20 localhost colord[1238]: device removed: sysfs-Canon-CanoScan

----------------
XSANE
[root@localhost ~]# journalctl -f 2>&1 | tee output.txt
-- Logs begin at lun. 2015-05-25 16:07:19 CEST. --
juin 27 21:22:08 localhost smartd[964]: Device: /dev/sdb [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 66 to 64
juin 27 21:22:08 localhost smartd[964]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 34 to 36
juin 27 21:22:16 localhost su[608]: pam_tcb(su-l:auth): Authentication passed for root from dede(uid=500)
juin 27 21:22:16 localhost su[608]: (to root) dede on pts/1
juin 27 21:22:16 localhost su[608]: pam_tcb(su-l:session): Session opened for root by dede(uid=500)
juin 27 21:26:20 localhost kernel: usb 1-9: USB disconnect, device number 2
juin 27 21:26:20 localhost colord[1238]: device removed: sysfs-Canon-CanoScan
juin 27 21:27:32 localhost su[2680]: pam_tcb(su-l:auth): Authentication passed for root from dede(uid=500)
juin 27 21:27:32 localhost su[2680]: (to root) dede on pts/3
juin 27 21:27:32 localhost su[2680]: pam_tcb(su-l:session): Session opened for root by dede(uid=500)

----------------
SIMPLE SCAN
[root@localhost ~]# journalctl -f 2>&1 | tee output.txt
-- Logs begin at lun. 2015-05-25 16:07:19 CEST. --
juin 27 21:33:06 localhost msec[5801]: udp        0      0 *:60234                     *:*                                     avahi-daemon: r
juin 27 21:33:06 localhost msec[5802]: udp        0      0 *:mdns                      *:*                                     avahi-daemon: r
juin 27 21:33:06 localhost msec[5803]: udp        0      0 *:22288                     *:*                                     dhclient
juin 27 21:33:06 localhost msec[5822]: Security Warning: change in processes with open network ports found :
juin 27 21:33:06 localhost msec[5823]: -   Added processes with open network ports : udp        0      0 *:38362                     *:*                                     dhclient
juin 27 21:33:06 localhost msec[5824]: -   Added processes with open network ports : udp        0      0 *:60234                     *:*                                     avahi-daemon: r
juin 27 21:33:06 localhost msec[5825]: -   Added processes with open network ports : udp        0      0 *:22288                     *:*                                     dhclient
juin 27 21:33:06 localhost msec[5826]: - Removed processes with open network ports : udp        0      0 *:46775                     *:*                                     avahi-daemon: r
juin 27 21:33:06 localhost msec[5827]: - Removed processes with open network ports : udp        0      0 *:16513                     *:*                                     dhclient
juin 27 21:33:06 localhost msec[5828]: - Removed processes with open network ports : udp        0      0 *:32626                     *:*                                     dhclient

---------------------
Comment 3 Samuel Verschelde 2015-07-02 09:21:35 CEST
You haven't said if you have the same problem with simple scan. I suppose it doesn't work either?
Comment 4 andre cohendoz 2015-07-02 17:18:34 CEST
sorry for not being clear
there is a
-------------
 point-1 then XSANE

-------------
2-point SINGLE SCAN (SIMPLE SCAN)

exite the problem in both cases
Samuel Verschelde 2015-07-02 17:21:28 CEST

Keywords: NEEDINFO => (none)

Comment 5 Marja Van Waes 2015-07-03 16:57:14 CEST

Is the switch at the bottom of the scanner fully in the "unlocked" position? (just noticed, after deliberately locking my scanner, that XSane did not give me a notification that the scanner should be unlocked)

Does this scanner work well with a different version of Mageia, or a different Linux-flavour, or with a totally different OS?

Do you have the problem regardless of which USB-port the scanner is connected to?
With a different cable?

Source RPM: xsane-0998.5mga4 sane-backends-1.0.24-3.mga4 => sane-backends-1.0.24-3.mga4

Comment 6 andre cohendoz 2015-07-03 22:24:22 CEST
1-yes, fully switch in position "unlocked"

performed several maneuvers "locked" <===> "unlocked" (for potential isolation)


2-The scanner works "xsane" and "single scan"
with MAGEIA3.
Uname ---> 03/10/60-desktop-1.mga3

pakages:

xsane-0.908-3.mga3 x86_64
sane-backends-1.0.23-7.mga3 x86_64
lib64ksane0-4.10.5-1.1.mga3 x86_64
lib64sane-hpaio-x86_64 3.12.9 6-3.mga3
lib64sane1-1.0.23-7.mga3 x86_64

The scanner works "xsane" and "single scan"
SUSE 13.1

3-for mga4 the problem exists with 5 different usb ports

4-cable it does not seem concerned cf (mga3 suse13.1)
I did a test with another cable without result
Comment 7 Marja Van Waes 2015-07-03 23:36:22 CEST
Thanks a lot for all the feedback, André!

Do you mind getting a backtrace with gdb?

https://wiki.mageia.org/en/Debugging_software_crashes

I'm not sure which debuginfo packages, apart from, of course, sane's, you'll all need (gdb should tell you), but please do also install libusbx-debuginfo.
Comment 8 andre cohendoz 2015-07-04 21:31:22 CEST
1-
ROOT
[dede@localhost ~]$ su -
Mot de passe : 
[root@localhost ~]#  urpmi.update --no-ignore debug
[root@localhost ~]# 
-------------------------------------------------------
2-
USER
[dede@localhost ~]$ gdb
GNU gdb (GDB) 7.6-6.mga4 (Mageia release 4)
Copyright (C) 2013 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-mageia-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.

(gdb) run /usr/bin/scanimage
Starting program:  /usr/bin/scanimage
No executable file specified.
Use the "file" or "exec-file" command.
(gdb) exec-file /usr/bin/scanimage
(gdb)
(gdb) file /usr/bin/scanimage
Reading symbols from /usr/bin/scanimage...Reading symbols from /usr/bin/scanimage...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install sane-backends-1.0.24-3.mga4.x86_64
(gdb) 
(gdb) debuginfo-install sane-backends-1.0.24-3.mga4.x86_64
(gdb) 
---------------------------------------------------
3-
ROOT
[dede@localhost ~]$ su -
Mot de passe : 
[root@localhost ~]# debuginfo-install sane-backends-1.0.24-3.mga4.x86_64


    $MIRRORLIST: media/debug/core/release/sane-debuginfo-1.0.24-3.mga4.x86_64.rpm
installation de sane-debuginfo-1.0.24-3.mga4.x86_64.rpm depuis /var/cache/urpmi/rpms
Préparation...                   #################################################
      1/1: sane-debuginfo        #################################################
[root@localhost ~]# 
-----------------------------------------------------
4-
USER_SCANIMAGE
(gdb) run /usr/bin/scanimage
Starting program: /usr/bin/scanimage /usr/bin/scanimage
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff2ee3700 (LWP 25639)]
[Thread 0x7ffff2ee3700 (LWP 25639) exited]
[New Thread 0x7ffff2ee3700 (LWP 25640)]
scanimage: argument without option: `/usr/bin/scanimage'; try scanimage --help
[Thread 0x7ffff2ee3700 (LWP 25640) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6ab1318 in do_close () from /lib64/libusb-1.0.so.0

-->(gdb) bt full
#0  0x00007ffff6ab1318 in do_close () from /lib64/libusb-1.0.so.0
No symbol table info available.
#1  0x00007ffff6ab15c8 in libusb_close () from /lib64/libusb-1.0.so.0
No symbol table info available.
#2  0x00007ffff6ee2bdc in usb_close () from /lib64/libusb-0.1.so.4
No symbol table info available.
#3  0x00007ffff7bbb747 in sanei_usb_close (dn=0) at sanei_usb.c:2143
No locals.
#4  0x00007fffeaa1f970 in sane_genesys_close (handle=<optimized out>)
    at genesys.c:6914
        prev = <optimized out>
        s = 0x6842b0
        cache = <optimized out>
        next_cache = <optimized out>
        status = <optimized out>
        __FUNCTION__ = "sane_genesys_close"
#5  0x00007ffff7bcd404 in sane_dll_close (handle=0x62a750) at dll.c:1223
        s = 0x62a750
#6  0x0000000000406155 in scanimage_exit ()
No symbol table info available.
#7  0x00007ffff7830699 in __run_exit_handlers () from /lib64/libc.so.6
No symbol table info available.
#8  0x00007ffff78306e5 in exit () from /lib64/libc.so.6
No symbol table info available.
#9  0x00000000004037bf in main ()
No symbol table info available.
(gdb) 
------------------------------------------------
5-
USER_XSANE
(gdb) run /usr/bin/xsane
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /usr/bin/scanimage /usr/bin/xsane
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff2ee3700 (LWP 25917)]
[Thread 0x7ffff2ee3700 (LWP 25917) exited]
[New Thread 0x7ffff2ee3700 (LWP 25918)]
scanimage: argument without option: `/usr/bin/xsane'; try scanimage --help
[Thread 0x7ffff2ee3700 (LWP 25918) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6ab1318 in do_close () from /lib64/libusb-1.0.so.0
(gdb) 

-->(gdb) bt full
#0  0x00007ffff6ab1318 in do_close () from /lib64/libusb-1.0.so.0
No symbol table info available.
#1  0x00007ffff6ab15c8 in libusb_close () from /lib64/libusb-1.0.so.0
No symbol table info available.
#2  0x00007ffff6ee2bdc in usb_close () from /lib64/libusb-0.1.so.4
No symbol table info available.
#3  0x00007ffff7bbb747 in sanei_usb_close (dn=0) at sanei_usb.c:2143
No locals.
#4  0x00007fffeaa1f970 in sane_genesys_close (handle=<optimized out>)
    at genesys.c:6914
        prev = <optimized out>
        s = 0x6842b0
        cache = <optimized out>
        next_cache = <optimized out>
        status = <optimized out>
        __FUNCTION__ = "sane_genesys_close"
#5  0x00007ffff7bcd404 in sane_dll_close (handle=0x62a750) at dll.c:1223
        s = 0x62a750
#6  0x0000000000406155 in scanimage_exit ()
No symbol table info available.
#7  0x00007ffff7830699 in __run_exit_handlers () from /lib64/libc.so.6
No symbol table info available.
#8  0x00007ffff78306e5 in exit () from /lib64/libc.so.6
No symbol table info available.
#9  0x00000000004037bf in main ()
No symbol table info available.
(gdb)
Comment 9 Samuel Verschelde 2015-09-11 09:28:19 CEST
Assigning to maintainer.

Assignee: bugsquad => lists.jjorge

Comment 10 Samuel Verschelde 2015-09-21 13:19:20 CEST
Mageia 4 changed to end-of-life (EOL) status on 2015-09-19. It is is no longer 
maintained, which means that it will not receive any further security or bug 
fix updates.

Package Maintainer: If you wish for this bug to remain open because you plan to 
fix it in a currently maintained version, simply change the 'version' to a later 
Mageia version.

Bug Reporter: Thank you for reporting this issue and we are sorry that we weren't 
able to fix it before Mageia 4's end of life. If you are able to reproduce it 
against a later version of Mageia, you are encouraged to click on "Version" and 
change it against that version of Mageia. If it's valid in several versions, 
select the highest and add MGAxTOO in whiteboard for each other valid release.
Example: it's valid in cauldron and Mageia 5, set to cauldron and add MGA5TOO.

Although we aim to fix as many bugs as possible during every release's lifetime, 
sometimes those efforts are overtaken by events. Often a more recent Mageia 
release includes newer upstream software that fixes bugs or makes them obsolete.

If you would like to help fixing bugs in the future, don't hesitate to join the
packager team via our mentoring program [1] or join the teams that fit you 
most [2].

[1] https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
[2] http://www.mageia.org/contribute/
Comment 11 David Walser 2015-09-21 13:25:17 CEST
Closing this.  Please re-open with new debugging information if Mageia 5 is affected.

Status: NEW => RESOLVED
Resolution: (none) => OLD