sane-project-website/old-archive/2001-05/0149.html

179 wiersze
6.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: HP 5200C -- segfaults and &quot;inappropriate ioctl</TITLE>
<META NAME="Author" CONTENT="Micah Yoder (yodermk@home.com)">
<META NAME="Subject" CONTENT="HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;</H1>
<!-- received="Fri May 11 15:40:43 2001" -->
<!-- isoreceived="20010511224043" -->
<!-- sent="Wed, 9 May 2001 14:16:07 -0400" -->
<!-- isosent="20010509181607" -->
<!-- name="Micah Yoder" -->
<!-- email="yodermk@home.com" -->
<!-- subject="HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;" -->
<!-- id="01050914160703.01178@eclipse" -->
<STRONG>From:</STRONG> Micah Yoder (<A HREF="mailto:yodermk@home.com?Subject=Re:%20HP%205200C%20--%20segfaults%20and%20&quot;inappropriate%20ioctl%20for%20device&quot;&In-Reply-To=&lt;01050914160703.01178@eclipse&gt;"><EM>yodermk@home.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Wed May 09 2001 - 11:16:07 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0150.html">Dec: "Canon N656U/lm983x/NS/Merlin specifications"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0148.html">dave-mlist@bfnet.com: "Re: Dust Removal for Nikon LS-2000 Dia-Scanner?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0178.html">Claus Ladekjær Wilson: "Re: HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0178.html">Claus Ladekjær Wilson: "Re: HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#149">[ date ]</A>
<A HREF="index.html#149">[ thread ]</A>
<A HREF="subject.html#149">[ subject ]</A>
<A HREF="author.html#149">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Anyone get this thing working with USB? It's driving me nuts. I think it's
<BR>
configured correctly, but scanimage segfaults. Below is the last part of the
<BR>
strace for scanimage, and hopefully it will help someone know what's going on
<BR>
here.
<BR>
<P>Config info:
<BR>
<P>[root@eclipse /dev]# l *scanner
<BR>
lrwxrwxrwx 1 root root 10 May 4 20:41 scanner -&gt; usbscanner
<BR>
crw-rw-rw- 1 root root 180, 48 May 4 19:54 usbscanner
<BR>
<P>[root@eclipse /dev]# cat /etc/sane.d/hp.conf
<BR>
/dev/usbscanner
<BR>
option connect-device
<BR>
<P>My kernel is the Red Hat 7.1 kernel, which is 2.4.2+&quot;bugfixes&quot;. I have the
<BR>
usbcore, usb-uhci, and scanner modules loaded. The kernel does see the
<BR>
scanner and it shows up in usbview, however one strange thing is that reading
<BR>
the list of SCSI devices (with usbview or by catting /proc/bus/usb/devices)
<BR>
is VERY slow whenever the scanner is plugged in. Like, it takes 10-20
<BR>
seconds. When the scanner is not plugged in, it's instantaneous. My SanDisk
<BR>
SDDR-31 USB CompactFlash reader works great, and there is no delay accessing
<BR>
info while it is plugged in without the scanner.
<BR>
<P>Also, the sample program in the scanner.txt file in the kernel does seem to
<BR>
work, but it also takes a long time before the scanning starts.
<BR>
<P>I've tried SANE versions 1.0.3 shipped with Ximian GNOME and 1.0.4 compiled
<BR>
from source. Both do the same thing.
<BR>
<P>[micah@eclipse micah]$ strace scanimage -L
<BR>
[...]
<BR>
open(&quot;/proc/sys/kernel/sg-big-buff&quot;, O_RDONLY) = -1 ENOENT (No such file or
<BR>
directory)
<BR>
open(&quot;/dev/scanner&quot;, O_RDWR|O_EXCL) = 6
<BR>
ioctl(6, TIOCSCCINI, 0xbfffe254) = -1 ENOTTY (Inappropriate ioctl for
<BR>
device)
<BR>
ioctl(6, TIOCGKISS, 0x401dead0) = -1 ENOTTY (Inappropriate ioctl for
<BR>
device)
<BR>
brk(0x8055000) = 0x8055000
<BR>
brk(0x805a000) = 0x805a000
<BR>
rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
<BR>
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
<BR>
rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
<BR>
write(6, &quot;*\0\0\0)\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0&quot;..., 42) = 42
<BR>
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
<BR>
select(7, [6], NULL, NULL, NULL) = 1 (in [6])
<BR>
rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
<BR>
read(6, &quot;&quot;, 41) = 0
<BR>
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
<BR>
--- SIGSEGV (Segmentation fault) ---
<BR>
+++ killed by SIGSEGV +++
<BR>
<P>Notice the &quot;inappropriate ioctl for device&quot; messages. That indicates to me
<BR>
that there's a bug in scanimage.
<BR>
<P>Any ideas? Anything else I can do to try to debug this? Is there a hardware
<BR>
problem?
<BR>
<P>Finally, does anyone know a way to convert the &quot;out.dat&quot; file that the
<BR>
example in the kernel source produces into something useful? It would sure
<BR>
be nice to get some scans in right now.
<BR>
<P>Thanks!
<BR>
Micah
<BR>
<P><P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20HP%205200C%20--%20segfaults%20and%20&quot;inappropriate%20ioctl%20for%20device&quot;&In-Reply-To=&lt;01050914160703.01178@eclipse&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0150.html">Dec: "Canon N656U/lm983x/NS/Merlin specifications"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0148.html">dave-mlist@bfnet.com: "Re: Dust Removal for Nikon LS-2000 Dia-Scanner?"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0178.html">Claus Ladekjær Wilson: "Re: HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0178.html">Claus Ladekjær Wilson: "Re: HP 5200C -- segfaults and &quot;inappropriate ioctl for device&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#149">[ date ]</A>
<A HREF="index.html#149">[ thread ]</A>
<A HREF="subject.html#149">[ subject ]</A>
<A HREF="author.html#149">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Fri May 11 2001 - 15:42:03 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>