kopia lustrzana https://gitlab.com/sane-project/website
179 wiersze
6.5 KiB
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 "inappropriate ioctl</TITLE>
|
|
<META NAME="Author" CONTENT="Micah Yoder (yodermk@home.com)">
|
|
<META NAME="Subject" CONTENT="HP 5200C -- segfaults and "inappropriate ioctl for device"">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>HP 5200C -- segfaults and "inappropriate ioctl for device"</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 "inappropriate ioctl for device"" -->
|
|
<!-- id="01050914160703.01178@eclipse" -->
|
|
<STRONG>From:</STRONG> Micah Yoder (<A HREF="mailto:yodermk@home.com?Subject=Re:%20HP%205200C%20--%20segfaults%20and%20"inappropriate%20ioctl%20for%20device"&In-Reply-To=<01050914160703.01178@eclipse>"><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 "inappropriate ioctl for device""</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0178.html">Claus Ladekjær Wilson: "Re: HP 5200C -- segfaults and "inappropriate ioctl for device""</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 -> 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+"bugfixes". 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("/proc/sys/kernel/sg-big-buff", O_RDONLY) = -1 ENOENT (No such file or
|
|
<BR>
|
|
directory)
|
|
<BR>
|
|
open("/dev/scanner", 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, "*\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"..., 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, "", 41) = 0
|
|
<BR>
|
|
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
|
|
<BR>
|
|
--- SIGSEGV (Segmentation fault) ---
|
|
<BR>
|
|
+++ killed by SIGSEGV +++
|
|
<BR>
|
|
<P>Notice the "inappropriate ioctl for device" 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 "out.dat" 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"inappropriate%20ioctl%20for%20device"&In-Reply-To=<01050914160703.01178@eclipse>">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 "inappropriate ioctl for device""</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0178.html">Claus Ladekjær Wilson: "Re: HP 5200C -- segfaults and "inappropriate ioctl for device""</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>
|