[sane-devel] Segfault with Lide210

stef stef.dev at free.fr
Fri Sep 23 03:45:51 UTC 2011


Le jeudi 22 septembre 2011 22:35:09 Uli Fouquet, vous avez écrit :
> Hi stef,
> 
> stef wrote:
> > Le jeudi 22 septembre 2011 11:58:21 Uli Fouquet, vous avez écrit :
> [snip]
> 
> > > root at pu:~# scanimage -L
> > > device `genesys:libusb:002:006' is a Canon LiDE 210 flatbed scanner
> > > 
> > > Strange enough: a scan is performed, but the process finishes with a
> > > segfault:
> > > 
> > > root at pu:~# /usr/bin/scanimage -v --resolution=150 -l 10 -t 10 -x 100 \
> > > 
> > >                               -y 100 --format=tiff > image.tiff
> 
> [snip]
> 
> > > Segmentation fault
> > > root at pu:~#
> > 	
> > 	Hello,
> > 
> > 	could you enable debug traces with:
> > export SANE_DEBUG_GENESYS=255
> > export SANE_DEBUG_GENESYS_LOW=255
> > export SANE_DEBUG_GENESYS_GL646=255
> > export SANE_DEBUG_GENESYS_GL841=255
> > export SANE_DEBUG_GENESYS_GL843=255
> > export SANE_DEBUG_GENESYS_GL847=255
> > export SANE_DEBUG_GENESYS_GL124=255
> > 
> > 	then run the same scan, redirecting error log:
> > /usr/bin/scanimage -v --resolution=150 -l 10 -t 10 -x 100 \
> > -y 100 --format=tiff > image.tiff 2>debug.log
> > 
> >    and send the debug log ?
> 
> Wow, what a bunch of mysterious symbols ;)
> 
> Anyway, the logfile is attached.
> 
> Thanks a lot for the quick reply!

	Hello,

	the log shows that if something happens, it is after sane_cancel is 
called. But there is nothing conclusive. I have run my LiDE 110 with the same 
parameters without any trouble. The next debugging step is to compile with 
full debug symbols and run the scan from a debugger. If your current dir is 
'backend', run
gdb ../frontend/.libs/scanimage 
then in gdb:
r  -v --resolution=150 -l 10 -t 10 -x 100 -y 100 --format=tiff > image.tiff 

then we will know for sure where it fails.

Regards,
	Stef




More information about the sane-devel mailing list