Segmentation Fault with scanimage

Robert Högberg (robho956@student.liu.se)
Sun, 05 Dec 1999 20:51:43 +0100

Hello out there..

I've got a Mustek scanner model MSF-06000SP which I try to get to work with SANE. I've run into some problems
though.. The problem is that scanimage gives me a segmentation fault when I try to scan.

scanimage -L works good and the scanner is shown in the list but running scanimage -T or just scanimage doesn't
work. This is the output i get:

lillen:~$ scanimage -d mustek:/dev/scanner > pic
[sanei_init_debug]: Setting debug level of dll to 128.
[dll] adding backend mustek
[dll] loading backend mustek
[dll] dlopen()ing `/usr/local/lib/sane/libsane-mustek.so.1'
[dll] init: initializing backend `mustek'
[sanei_init_debug]: Setting debug level of mustek to 128.
[mustek] sane_init: strip-height set to 1 inches
[mustek] attach: opening /dev/scanner as scsi device
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.
[mustek] attach: sending INQUIRY
[sanei_scsi] scsi_req_enter: entered 0x804d3c8
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x804d3c8
[sanei_scsi] sanei_scsi.issue: 0x804d3c8
[sanei_scsi] sanei_scsi_req_wait: read 132 bytes
[mustek] scsi_wait_ready: sending TEST_UNIT_READY
[sanei_scsi] scsi_req_enter: entered 0x804d3c8
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x804d3c8
[sanei_scsi] sanei_scsi.issue: 0x804d3c8
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
[mustek] attach: firmware revision 2.10
[mustek] attach: scanner has automatic line-distance correction
[mustek] attach: cover open
[mustek] attach: found Mustek scanner model MSF-06000SP (flatbed scanner), 1-pas
s
[dll] control_option(handle=0x804d230,option=0,action=0,value=0xbffffc1c,info=(n
il))
[dll] control_option(handle=0x804d230,option=0,action=0,value=0xbffffbd8,info=(n
il))
[dll] get_option_descriptor(handle=0x804d230,option=0)
[dll] get_option_descriptor(handle=0x804d230,option=1)
[dll] get_option_descriptor(handle=0x804d230,option=2)
[dll] get_option_descriptor(handle=0x804d230,option=3)
[dll] get_option_descriptor(handle=0x804d230,option=4)
[dll] get_option_descriptor(handle=0x804d230,option=5)
[dll] get_option_descriptor(handle=0x804d230,option=6)
[dll] get_option_descriptor(handle=0x804d230,option=7)
[dll] get_option_descriptor(handle=0x804d230,option=8)
[dll] get_option_descriptor(handle=0x804d230,option=9)
[dll] get_option_descriptor(handle=0x804d230,option=10)
[dll] get_option_descriptor(handle=0x804d230,option=11)
[dll] get_option_descriptor(handle=0x804d230,option=12)
[dll] control_option(handle=0x804d230,option=12,action=0,value=0x804cff4,info=(n
il))
[dll] get_option_descriptor(handle=0x804d230,option=13)
[dll] control_option(handle=0x804d230,option=13,action=0,value=0x804cff8,info=(n
il))
[dll] get_option_descriptor(handle=0x804d230,option=14)
[dll] get_option_descriptor(handle=0x804d230,option=15)
[dll] get_option_descriptor(handle=0x804d230,option=16)
[dll] get_option_descriptor(handle=0x804d230,option=17)
[dll] get_option_descriptor(handle=0x804d230,option=18)
[dll] get_option_descriptor(handle=0x804d230,option=19)
[dll] get_option_descriptor(handle=0x804d230,option=20)
[dll] get_option_descriptor(handle=0x804d230,option=21)
[dll] get_option_descriptor(handle=0x804d230,option=22)
[dll] get_option_descriptor(handle=0x804d230,option=23)
[dll] get_option_descriptor(handle=0x804d230,option=24)
[dll] control_option(handle=0x804d230,option=10,action=0,value=0xbffffbd4,info=(
nil))
[dll] control_option(handle=0x804d230,option=11,action=0,value=0xbffffbd4,info=(
nil))
[dll] control_option(handle=0x804d230,option=10,action=0,value=0xbffffc18,info=(
nil))
[dll] get_option_descriptor(handle=0x804d230,option=12)
[dll] control_option(handle=0x804d230,option=12,action=1,value=0xbffffc14,info=0
xbffffbd0)
[dll] control_option(handle=0x804d230,option=11,action=0,value=0xbffffc18,info=(
nil))
[dll] get_option_descriptor(handle=0x804d230,option=13)
[dll] control_option(handle=0x804d230,option=13,action=1,value=0xbffffc14,info=0
xbffffbd0)
[dll] start(handle=0x804d230)
[sanei_init_debug]: Setting debug level of sanei_scsi to 128.
[mustek] scsi_wait_ready: sending TEST_UNIT_READY
[sanei_scsi] scsi_req_enter: entered 0x804d3c8
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x804d3c8
[sanei_scsi] sanei_scsi.issue: 0x804d3c8
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
[mustek] do_inquiry: sending INQUIRY
[sanei_scsi] scsi_req_enter: entered 0x804d3c8
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x804d3c8
[sanei_scsi] sanei_scsi.issue: 0x804d3c8
[sanei_scsi] sanei_scsi_req_wait: read 132 bytes
[sanei_scsi] scsi_req_enter: entered 0x804d3c8
[sanei_scsi] sanei_scsi_req_wait: waiting for 0x804d3c8
[sanei_scsi] sanei_scsi.issue: 0x804d3c8
[sanei_scsi] sanei_scsi_req_wait: read 36 bytes
Segmentation fault

The computer I'm running SANE on is running the 2.0.36 kernel with generic scsi drivers compiled in.

I guess that the sg drivers in that kernel is rather outdated, could that be a problem here? Is there a patch for the 2.0
kernels available?

Any other ideas about what could cause this?

Thanks!

Robert

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com