#14 testtool works but sane-find-scanner segfaults

open
nobody
None
5
2003-05-15
2003-05-15
Anonymous
No

System:
Sun Ultra 10
Linux sparc Debian testing (kernel 2.4.20)
Scanner HP 4300c

Testtool: 20030401-1 works fine with libusb. It does
not work with the scanner kernel module.

libusb version: 0.1.6a

sane-backend version 1.0.11: patch and build are OK but
sane-find-scanner segfaults. Here is some extra info
from gdb:

sane_usb.c, line 270:

switch (dev->descriptor.bDeviceClass)
{
case USB_CLASS_VENDOR_SPEC:
break;
case USB_CLASS_PER_INTERFACE:
here->
switch
(dev->config[0].interface[0].altsetting[0].bInterfaceClass)
{

(gdb) p *dev
$1 = {next = 0x0, prev = 0x33e20, filename = "005",
'\0' <repeats 4093 times>,
bus = 0x30da0, descriptor = {bLength = 18 '\022',
bDescriptorType = 1 '\001', bcdUSB = 256,
bDeviceClass = 0 '\0',
bDeviceSubClass = 0 '\0', bDeviceProtocol = 0 '\0',
bMaxPacketSize0 = 8 '\b', idVendor = 1008,
idProduct = 773, bcdDevice = 0,
iManufacturer = 10 '\n', iProduct = 11 '\v',
iSerialNumber = 12 '\f',
bNumConfigurations = 1 '\001'}, config = 0x35ea0,
dev = 0x0}

Thanks. Please contact me if you need more info.

cechrist@vision.lakeheadu.ca

Discussion