[sane-devel] Canon 2710: scanimage -L segfault

m. allan noah kitno455 at gmail.com
Tue Nov 10 18:46:18 UTC 2009


hmm- the driver calls test_unit_ready, and the scanner must return a
bad status, because we are suddenly in the sense_handler callback. the
sense data: f0 00 44 00 00 00 00 06 00 00 00 00 60 00 00 00 means
'lamp failure', but the backend explodes before it gets to interpret
this data, perhaps because dev->sane.vendor is corrupt/empty at that
stage? Do you have the ability to rebuild sane-backends from source?
If so, we could remove the code which checks for the vendor name,
canon.c line 388, and see if that helps.

allan

On Tue, Nov 10, 2009 at 10:00 AM, joachim.franek at pibf.de
<joachim.franek at t-online.de> wrote:
>
> Am Dienstag 10 November 2009 14:33:11 schrieb m. allan noah:
>> Did you use a big 'L' in scanimage -L
>>
>> allan
>
> Excuse: no
>
> jjf at nb8:~$ SANE_DEBUG_CANON=255 scanimage -L
> [sanei_debug] Setting debug level of canon to 255.
> [canon] >> sane_init
> [canon] sane_init: sane-backends 1.0.20
> [canon] >> attach_one
> [canon] >> attach
> [canon] attach: opening /dev/sg2
> [canon] attach: sending (standard) INQUIRY
> [canon] >> inquiry
> [canon] << inquiry
> [canon] attach: sending TEST_UNIT_READY
> [canon] >> test_unit_ready
> [canon] >> sense_handler
> [canon] canon_sense_handler(3, 0x85d9b60, (nil))
> [canon] sense buffer: f0 00 44 00 00 00 00 06 00 00 00 00 60 00 00 00
> Segmentation fault
> jjf at nb8:~$
> jjf at nb8:~$ lsscsi
> [0:0:0:0]    disk    ATA      Hitachi HTS54108 MB4O  /dev/sda
> [2:0:4:0]    scanner CANON    IX-27025E        1.12  -
> jjf at nb8:~$
>
>
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>             to sane-devel-request at lists.alioth.debian.org
>



-- 
"The truth is an offense, but not a sin"



More information about the sane-devel mailing list