Re: SEGFAULT with sane 1.0.1
Rainer Krienke (krienke@uni-koblenz.de)
Mon, 03 May 1999 09:32:49 +0200
Rainer krienke wrote:
>
> Hello,
>
> I compiles sane 1.0.1 on my linux system running kernel 2.2.6 (with the
> new generic driver by Douglas Gilbert). The new release does not work
> for me whereas the older version did. Running xsbanimage or xsane or
> scanimage I get a segfault before the window of eg xscanimage comes up.
> The following trace is the output of a start of xscanimage with
> SANE_DEBUG_SANEI_SCSI=127 set (Adaptex 2940 Controller, Mustec 1200SP
> Scanner):
>
> [sanei_scsi] sanei_scsi_open: sanei_scsi_max_request_size=32768 bytes
> [sanei_scsi] scsi_req_enter: entered 0x80e21c0
> [sanei_scsi] sanei_scsi_req_wait: waiting for 0x80e21c0
> [sanei_scsi] sanei_scsi.issue: 0x80e21c0
> [sanei_scsi] sanei_scsi_req_wait: read 72 bytes
> [sanei_scsi] scsi_req_enter: entered 0x80e21c0
> [sanei_scsi] sanei_scsi_req_wait: waiting for 0x80e21c0
> [sanei_scsi] sanei_scsi.issue: 0x80e21c0
> [sanei_scsi] sanei_scsi_req_wait: read 36 bytes
> [sanei_scsi] sanei_scsi_req_wait: SCSI command complained: Success
> Segmentation fault
>
> The only thing that does work is if I run scanimage in Lineart mode.
> Setting SANE_DEBUG_MUSTEK=128 yields the following output:
>
> [sanei_init_debug]: Setting debug level of mustek to 128.
> [mustek] sane_init: strip-height set to 1 inches
> [mustek] attach: opening /dev/sgd as scsi device
> [mustek] attach: sending INQUIRY
> [mustek] scsi_wait_ready: sending TEST_UNIT_READY
> [mustek] attach: firmware revision 1.02
> [mustek] attach: scanner has automatic line-distance correction
> [mustek] attach: cover open
> [mustek] attach: found Mustek scanner model MFS-12000SP (flatbed
> scanner), 1-pas
> s
> [mustek] sane_init: enabling linedistance-fix for /dev/sgd
> [mustek] sane_init: enabling lineart-fix for /dev/sgd
> [mustek] attach: opening /dev/scanner as scsi device
> [mustek] attach: sending INQUIRY
> [mustek] scsi_wait_ready: sending TEST_UNIT_READY
> [mustek] attach: firmware revision 1.02
> [mustek] attach: scanner has automatic line-distance correction
> [mustek] attach: cover open
> [mustek] attach: found Mustek scanner model MFS-12000SP (flatbed
> scanner), 1-pas
> s
> [mustek] sane_init: enabling linedistance-fix for /dev/scanner
> [mustek] sane_init: enabling lineart-fix for /dev/scanner
> Segmentation fault
>
> Any idea?
>
The problem is solved. In between Kernel 2.2.7 arrived. Using this one
sane 1.0.1 seems to work again. So the problems are probably caused by
the developement of the new sg driver.
Thanks Rainer
--
---------------------------------------------------------------------
Rainer Krienke krienke@uni-koblenz.de
Universitaet Koblenz, http://www.uni-koblenz.de/~krienke
Rechenzentrum, Voice: +49 261 287 - 1312
Rheinau 1, 56075 Koblenz, Germany Fax: +49 261 287 - 1355
---------------------------------------------------------------------
--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
"start" -->