Bug 1887 - scanimage -L segfault
Summary: scanimage -L segfault
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: D Morgan
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-22 11:13 CEST by Jean-Marc Sarat
Modified: 2019-07-05 21:40 CEST (History)
5 users (show)

See Also:
Source RPM: sane
CVE:
Status comment:


Attachments
backtrace of scanimage -L scanner FS4000 off (704 bytes, text/plain)
2012-01-03 12:30 CET, Jean-Marc Sarat
Details
backtrace scanimage -L scanner FS4000 powered (7.15 KB, text/plain)
2012-01-03 12:31 CET, Jean-Marc Sarat
Details

Description Jean-Marc Sarat 2011-06-22 11:13:36 CEST
Description of problem:
Looking for new scanner ends with a segfault form a terminal but doesn't create a message error when used from the MCC.
scanimage -L ends with a segfault 

SANE_DEBUG_DLL=128 scanimage -L ends with libsane-canon.so.1

Version-Release number of selected component (if applicable):
1.0.22-1.mga1

How reproducible:
every time scanimage -L is launched

Steps to Reproduce:
1.
2.
3.

The Segfault is happening when scanimage looks for a canon scanner, so removing âall the related libs solved the problem :

/usr/lib64/sane/libsane-canon.so.1
/usr/lib64/sane/libsane-canon.so.1.0.22
/usr/lib64/sane/libsane-canon630u.so.1
/usr/lib64/sane/libsane-canon630u.so.1.0.22
/usr/lib64/sane/libsane-canon_dr.so.1
/usr/lib64/sane/libsane-canon_dr.so.1.0.22
/usr/lib64/sane/libsane-canon_pp.so.1
/usr/lib64/sane/libsane-canon_pp.so.1.0.22

scanimage -L now detects correctly my scanner :

device `v4l:/dev/video0' is a Noname Logitech QuickCam Zoom virtual device
device `net:192.168.2.2:hpaio:/usb/Officejet_J4500_series?serial=CN97TC92RM052T' is a Hewlett-Packard Officejet_J4500_series all-in-one
Comment 1 Samuel Verschelde 2011-10-01 15:55:55 CEST
Tomas, can you help on this one ?

CC: (none) => stormi, supp

Manuel Hiebel 2011-10-30 01:50:46 CEST

Source RPM: lib64sane1 => sane

Comment 2 Marja Van Waes 2011-12-24 11:12:31 CET
(In reply to comment #0)
> Description of problem:
> Looking for new scanner ends with a segfault form a terminal but doesn't create
> a message error when used from the MCC.
> scanimage -L ends with a segfault 
> 
> SANE_DEBUG_DLL=128 scanimage -L ends with libsane-canon.so.1
> 
> Version-Release number of selected component (if applicable):
> 1.0.22-1.mga1
> 
> How reproducible:
> every time scanimage -L is launched
> 

> 
> The Segfault is happening when scanimage looks for a canon scanner, so removing
> âall the related libs solved the problem :
> 
> /usr/lib64/sane/libsane-canon.so.1
> /usr/lib64/sane/libsane-canon.so.1.0.22
> /usr/lib64/sane/libsane-canon630u.so.1
> /usr/lib64/sane/libsane-canon630u.so.1.0.22
> /usr/lib64/sane/libsane-canon_dr.so.1
> /usr/lib64/sane/libsane-canon_dr.so.1.0.22
> /usr/lib64/sane/libsane-canon_pp.so.1
> /usr/lib64/sane/libsane-canon_pp.so.1.0.22
> 
> scanimage -L now detects correctly my scanner :
> 
> device `v4l:/dev/video0' is a Noname Logitech QuickCam Zoom virtual device
> device
> `net:192.168.2.2:hpaio:/usb/Officejet_J4500_series?serial=CN97TC92RM052T' is a
> Hewlett-Packard Officejet_J4500_series all-in-one

@ Florian

cc'ing you because this report might contain useful information and because I don't know what to do with this bug: The reporter found a workaround.
So I'll leave that to you to decice :D

CC: (none) => doktor5000, marja11

Comment 3 Florian Hubold 2011-12-28 13:57:30 CET
(In reply to comment #0)
> Description of problem:
> Looking for new scanner ends with a segfault form a terminal but doesn't create
> a message error when used from the MCC.
> scanimage -L ends with a segfault

Please check https://wiki.mageia.org/en/Debugging_software_crashes 
You need to provide a backtrace for the segfault, so in short you need to move the removed files back and then follow the instructions given in the wiki page.
Comment 4 Jean-Marc Sarat 2012-01-03 12:30:46 CET
Created attachment 1322 [details]
backtrace of scanimage -L scanner FS4000 off
Comment 5 Jean-Marc Sarat 2012-01-03 12:31:49 CET
Created attachment 1323 [details]
backtrace scanimage -L scanner FS4000 powered
Comment 6 Jean-Marc Sarat 2012-01-03 12:33:23 CET
I noticed that the problem occurs only when my SCSI scanner Canon FS4000US is connected and powered. Attached the results of the backtrace with an without the scanner powered.
Comment 7 Marja Van Waes 2012-02-17 16:37:54 CET
@ JeanMarc

Thanks for providing the backtrace

assigning to maintainer

Assignee: bugsquad => dmorganec

Comment 8 Marja Van Waes 2012-06-06 22:10:09 CEST
@ JeanMarc

Sorry, our maintainer was too busy 

I hope Mageia 2 solved the issue for you.... did it?
Comment 9 Jean-Marc Sarat 2012-06-07 08:15:22 CEST
(In reply to comment #8)
> @ JeanMarc
> 
> Sorry, our maintainer was too busy 
> 
> I hope Mageia 2 solved the issue for you.... did it?

The problem is still there but a "solution" is to remove /usr/lib64/libsane-canon.so.1.0.22. There is some sort of conflict when using this scanner maybe because its a scsi scanner or because it is not properly recognized. Once the lib is removed evrything works well as I use Vuescan to scan my films and slides.
Regards

Jean-Marc
Comment 10 Florian Hubold 2012-06-08 22:01:56 CEST
Per last comment i'd say closing it as the reporter has a workaround and nobody else reported this.

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

play game 2019-07-05 18:36:34 CEST

CC: (none) => pikachu17997


Note You need to log in before you can comment on or make changes to this bug.