Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223289 - media-gfx/sane-backends-1.0.18-r6: normal user segfaults with SCSI scanner
Summary: media-gfx/sane-backends-1.0.18-r6: normal user segfaults with SCSI scanner
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High minor
Assignee: Patrick Kursawe (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-23 02:38 UTC by saellaven
Modified: 2008-06-05 09:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
stack trace of scanimage -L (scanimage.strace,19.50 KB, text/plain)
2008-05-23 02:39 UTC, saellaven
Details

Note You need to log in before you can comment on or make changes to this bug.
Description saellaven 2008-05-23 02:38:33 UTC
sane-find-scanner finds my Mustek SCSI scanner. When attempting to run scanimage to access the device, I get a segfault for normal users with rw permissions to the device. scanimage works fine for root. Ditto for xsane.

Reproducible: Always

Steps to Reproduce:
1.scanimage -L

Actual Results:  
$ scanimage -L
FATAL: Module parport not found.
FATAL: Module parport_pc not found.
FATAL: Module lp not found.
Segmentation fault

if I specify the device, it succeeds without error:
$ scanimage -d mustek:/dev/sg7 > tmp.pnm




Expected Results:  
normal operation

upgrading to media-gfx/sane-backends-1.0.19-r1 resolved the problem

$ ll /dev/sg7
crw-rw-rw- 1 root scanner 21, 7 May 22 12:39 /dev/sg7

# lsscsi
[0:0:0:0]    disk    IBM      DNES-309170      SAH0  /dev/sda
[0:0:2:0]    cd/dvd  TEAC     CD-W512SB        1.0C  /dev/sr0
[1:0:0:0]    disk    ATA      ST3250410AS      3.AA  /dev/sdb
[2:0:0:0]    cd/dvd  LITE-ON  DVDRW LH-20A1L   BL05  /dev/sr1
[7:0:0:0]    disk    SanDisk  ImageMate II     1.30  /dev/sdc
[8:0:0:0]    disk    Generic  USB SD Reader    2.00  /dev/sdd
[9:0:3:0]    scanner SCANNER                   1.01  -       
[9:0:5:0]    disk    SEAGATE  SX410800N        7117  /dev/sde

it's entry from /proc/scsi/sci
Host: scsi9 Channel: 00 Id: 03 Lun: 00
  Vendor: SCANNER  Model:                  Rev: 1.01
  Type:   Scanner                          ANSI  SCSI revision: 01 CCS
Comment 1 saellaven 2008-05-23 02:39:37 UTC
Created attachment 154025 [details]
stack trace of scanimage -L
Comment 2 Patrick Kursawe (RETIRED) gentoo-dev 2008-06-05 09:27:03 UTC
Looks like another reason to make .19-r1 stable. I just filed a bug to the arch teams requesting this. Thanks for the hint.