[sane-devel] hp5300c usb problem

abel deuring adeuring at gmx.net
Mon Feb 25 23:35:05 GMT 2002


Stefan Kornhuber wrote:
> 
> Hi Rene!
> 
> I have tried following:
> 
> stefan at stefan:~ > scanimage -d avision:/dev/scanner
> scanimage: sanei_scsi.c:4334: sanei_scsi_cmd: Assertion `src_size >= cmd_size'
> failed.
> Abgebrochen
> 
> but what means that.

This means that you discovered a bug either in sanei_scsi.c or in the
avision backend ;) More technically: It means that the function
sanei_scsi_cmd in the sanei_scsi library was called with an "illegal"
SCSI command. This function receives the SCSI comamnd block and possibly
a write data block associated with this command from the caller;
sanei_scsi_cmd needs to figure out (or to guess, if you prefer that) the
size of the SCSI command block; if this guessed size is less than the
parameter src_size, the program is stopped by an assert().

Rene, do you have any idea where this could happen? Stefan, if you run 

	export SANE_DEBUG_AVISION=255
	scanimage -d avision:/dev/scanner

we might get, what happens.

Abel



More information about the sane-devel mailing list