[sane-devel] Segfault with Lide210

Uli Fouquet uli at gnufix.de
Fri Sep 23 12:40:26 UTC 2011

Hi Stef,

thanks again for the response!

Here is the gdb output, hope that it helps:

uli at pu:~/build/sane-1.0.22/sane-backends$
gdb ./frontend/.libs/scanimage 
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) r -v --resolution 75 -l 10 -t 10 -x 100 -y 100 --format=tiff >
program: /home/uli/build/sane-1.0.22/sane-backends/frontend/.libs/scanimage -v --resolution 75 -l 10 -t 10 -x 100 -y 100 --format=tiff > myimage.tiff
[Thread debugging using libthread_db enabled]
Error while reading shared library symbols:
Cannot find new threads: generic error
Cannot find new threads: generic error
(gdb) c
[New Thread 0xb74b66b0 (LWP 16190)]
scanimage: scanning image of size 292x295 pixels at 8 bits/pixel
scanimage: acquiring gray frame
scanimage: min/max graylevel value = 24/255
scanimage: read 86140 bytes in total

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb74b66b0 (LWP 16190)]
0xb761636d in fclose@@GLIBC_2.1 () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb761636d in fclose@@GLIBC_2.1 () from /lib/tls/i686/cmov/libc.so.6
#1  0xb6dfee31 in sane_genesys_cancel (handle=0x8080840) at \
#2  0xb7794ddf in sane_dll_cancel (handle=0x80812e0) at dll.c:1283
#3  0xb778323d in sane_cancel (h=0x80812e0) at dll-s.c:72
#4  0x0804d0a3 in main (argc=13, argv=0xbfd22b14) at scanimage.c:2350
(gdb) f 1
#1  0xb6dfee31 in sane_genesys_cancel (handle=0x8080840) at
7906	      fclose(s->dev->binary);
(gdb) l
7901	  DBG (DBG_proc, "sane_cancel: start\n");
7903	  /* end binary logging if needed */
7904	  if (s->dev->binary!=NULL)
7905	    {
7906	      fclose(s->dev->binary);
7907	      s->dev->binary=NULL;
7908	    }
7910	  s->scanning = SANE_FALSE;

Somehow the 'binary' seems not to be closable.

Best regards,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20110923/cc308428/attachment.pgp>

More information about the sane-devel mailing list