https://bugzilla.novell.com/show_bug.cgi?id=408518
User bk90de@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=408518#c6
--- Comment #6 from Bernhard Novell König 2008-09-04 13:33:36 MDT ---
I tried to compile a new scanimage with debug-option, it produces the same
error: here the first message in gdb, if I call my new compiled scanimage:
gdb ./frontend/.libs/scanimage
GNU gdb 6.6.50.20070726-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-suse-linux"...
Using host libthread_db library "/lib64/libthread_db.so.1".
(gdb) r -d avision:libusb:003:003
Starting program:
/tmp/bhl/2008_09_04/sane/sane-backends-1.0.19/frontend/.libs/scanimage -d
avision:libusb:003:003
[Thread debugging using libthread_db enabled]
[New Thread 0x2ad6cdcd90d0 (LWP 30105)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2ad6cdcd90d0 (LWP 30105)]
0x00002ad6cdce3e25 in sort_and_average () from
/usr/lib64/sane/libsane-avision.so.1
(gdb) bt
#0 0x00002ad6cdce3e25 in sort_and_average () from
/usr/lib64/sane/libsane-avision.so.1
#1 0x00002ad6cdce41a3 in normal_calibration () from
/usr/lib64/sane/libsane-avision.so.1
#2 0x00002ad6cdce5953 in sane_avision_start () from
/usr/lib64/sane/libsane-avision.so.1
#3 0x00000000004046e9 in main (argc=<value optimized out>, argv=<value
optimized out>) at scanimage.c:2162
(gdb)
-- it calls the old libsane, therefore I copied the new libsane to this
position, but in this constellattion it completly fails on opening my device:
strace in this case says:
..
stat("/dev/", {st_mode=S_IFDIR|0755, st_size=7320, ...}) = 0
open("/dev/", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=7320, ...}) = 0
fcntl(3, F_SETFD, FD_CLOEXEC) = 0
getdents64(3, /* 139 entries */, 4096) = 4080
getdents64(3, /* 134 entries */, 4096) = 4096
getdents64(3, /* 93 entries */, 4096) = 2880
getdents64(3, /* 0 entries */, 4096) = 0
close(3) = 0
stat("/dev/usb/", 0x7fff2056ffe0) = -1 ENOENT (No such file or directory)
open("./avision.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/sane.d/avision.conf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=543, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2b988c1e8000
read(3, "\n# This are the possible options"..., 4096) = 543
read(3, "", 4096) = 0
close(3) = 0
munmap(0x2b988c1e8000, 4096) = 0
open("/proc/scsi/scsi", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2b988c1e8000
read(3, "Attached devices:\nHost: scsi0 Ch"..., 1024) = 813
read(3, "", 1024) = 0
close(3) = 0
munmap(0x2b988c1e8000, 4096) = 0
open("/proc/scsi/scsi", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2b988c1e8000
read(3, "Attached devices:\nHost: scsi0 Ch"..., 1024) = 813
read(3, "", 1024) = 0
close(3) = 0
munmap(0x2b988c1e8000, 4096) = 0
open("/proc/scsi/scsi", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
..
this repeats a lot of times then
..
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2b988c1e8000
read(3, "Attached devices:\nHost: scsi0 Ch"..., 1024) = 813
read(3, "", 1024) = 0
close(3) = 0
munmap(0x2b988c1e8000, 4096) = 0
open("/proc/scsi/scsi", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x2b988c1e8000
read(3, "Attached devices:\nHost: scsi0 Ch"..., 1024) = 813
read(3, "", 1024) = 0
close(3) = 0
munmap(0x2b988c1e8000, 4096) = 0
write(2, "scanimage: open of device avisio"..., 74scanimage: open of device
avision:libusb:003:004 failed: Invalid argument
) = 74
munmap(0x2b988bfc1000, 2254608) = 0
exit_group(1) = ?
checking my devies with lsusb says:
linux-b4ca:~ # lsusb
Bus 003 Device 004: ID 03f0:0701 Hewlett-Packard ScanJet 5300c/5370c
Bus 003 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 002 Device 003: ID 057c:5401 AVM GmbH
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 006: ID 10d6:1101 Actions Semiconductor Co., Ltd
Bus 001 Device 002: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 USB-2.0
"TetraHub"
Bus 001 Device 001: ID 0000:0000
linux-b4ca:~ #
Is there any other I can do ?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.