Re: gphoto2 bus error

From: John <freebsd-lists_at_potato.growveg.org>
Date: Wed, 2 Oct 2013 13:04:12 +0100
On Wed, Oct 02, 2013 at 08:25:30AM +0200, Hans Petter Selasky wrote:

> Hi,
> 
> Can you try to apply the attached patch to:
> 
> cd /usr/ports/graphics/sane-backends
> 
> make clean extract patch
> 
> cd /usr/ports/graphics/sane-backends/work/sane-backends-1.0.23
> 
> cat sane-backend-debug.diff | patch -p1
> 
> cd /usr/ports/graphics/sane-backends
> 
> make all deinstall install

Thanks for the patch! I have applied it now

> Maybe you can figure out exactly what line is causing the crash by 
> adding more printf's like shown in the attached patch.

I think you over-estimate my programming ability!

I have soft linked genesys.so as per sane manpages as that's the scanner I have. I don't
know why some of the errors are coming up with microtek. 

$ ls -la /usr/local/lib/sane/libsane.so          
lrwxr-xr-x  1 root  wheel    22B  2 Oct 11:59 /usr/local/lib/sane/libsane.so_at_ -> ./libsane-genesys.so.1

sane-find-scanner finds it at 
found USB scanner (vendor=0x04a9 [Canon], product=0x1909 [CanoScan], chip=GL124) at libusb:/dev/usb:/dev/ugen4.4

OK here is the output from scanimage -L :

$ scanimage -L
A 0x802ce2808 /dev/pass0
B
C
A 0x802ce3208 /dev/pass1
B
C
A 0x802ce3c08 /dev/pass2
B
C
A 0x802ce4608 /dev/pass3
B
C
A 0x802ce5008 /dev/pass4
B
C
D
E
F
G
Bus error: 10 (core dumped)

Here is the gdb output:

(gdb) bt
#0  0x00000008063c1915 in scsi_inquiry () from /usr/local/lib/sane/libsane-microtek2.so.1
#1  0x00000008063b38dc in attach () from /usr/local/lib/sane/libsane-microtek2.so.1
#2  0x00000008063b4af9 in attach_one () from /usr/local/lib/sane/libsane-microtek2.so.1
#3  0x000000080083205b in sanei_scsi_find_devices () from /usr/local/lib/libsane.so.1
#4  0x000000080082ef1e in sanei_config_attach_matching_devices () from /usr/local/lib/libsane.so.1
#5  0x00000008063b4a23 in sane_microtek2_init () from /usr/local/lib/sane/libsane-microtek2.so.1
#6  0x000000080083acb4 in init () from /usr/local/lib/libsane.so.1
#7  0x000000080083a944 in sane_dll_get_devices () from /usr/local/lib/libsane.so.1
#8  0x0000000000402089 in ?? ()
#9  0x0000000000401c41 in ?? ()
#10 0x0000000800628000 in ?? ()
#11 0x0000000000000000 in ?? ()
(gdb) 

Although scanimage -L gives the bus error, the following doesn't:

$ scanimage -d genesys -x 100 -y 100 --format=jpg >image.jpg

I have no idea why microtek2 is in that output. This is a new install and libscan.so is linked
to libsane-genesys.so.1

thanks,
-- 
Received on Wed Oct 02 2013 - 10:04:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:42 UTC