kopia lustrzana https://gitlab.com/sane-project/website
158 wiersze
6.7 KiB
HTML
158 wiersze
6.7 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: seg-faults for network access</TITLE>
|
||
|
<META NAME="Author" CONTENT="Daniel Kerry Hiltgen (dhiltgen@lug.ee.calpoly.edu)">
|
||
|
<META NAME="Subject" CONTENT="seg-faults for network access">
|
||
|
</HEAD>
|
||
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
||
|
<H1>seg-faults for network access</H1>
|
||
|
<!-- received="Sat Dec 9 21:34:07 2000" -->
|
||
|
<!-- isoreceived="20001210053407" -->
|
||
|
<!-- sent="Sat, 9 Dec 2000 21:36:18 -0800" -->
|
||
|
<!-- isosent="20001210053618" -->
|
||
|
<!-- name="Daniel Kerry Hiltgen" -->
|
||
|
<!-- email="dhiltgen@lug.ee.calpoly.edu" -->
|
||
|
<!-- subject="seg-faults for network access" -->
|
||
|
<!-- id="20001209213618.C6330@lug.calpoly.edu" -->
|
||
|
<STRONG>From:</STRONG> Daniel Kerry Hiltgen (<A HREF="mailto:dhiltgen@lug.ee.calpoly.edu?Subject=Re:%20seg-faults%20for%20network%20access&In-Reply-To=<20001209213618.C6330@lug.calpoly.edu>"><EM>dhiltgen@lug.ee.calpoly.edu</EM></A>)<BR>
|
||
|
<STRONG>Date:</STRONG> Sat Dec 09 2000 - 21:36:18 PST
|
||
|
<P>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0092.html">Dave Hill: "Re: xsane-0.65 released"</A>
|
||
|
<UL>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0090.html">Ian Cartwright: "Prisa 320U and Sane Solved"</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: seg-faults for network access"</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: seg-faults for network access"</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0100.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0108.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0245.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#91">[ date ]</A>
|
||
|
<A HREF="index.html#91">[ thread ]</A>
|
||
|
<A HREF="subject.html#91">[ subject ]</A>
|
||
|
<A HREF="author.html#91">[ author ]</A>
|
||
|
</UL>
|
||
|
<HR NOSHADE><P>
|
||
|
<!-- body="start" -->
|
||
|
<P>
|
||
|
Does anyone know if saned and the network protocol is byte order clean,
|
||
|
<BR>
|
||
|
independent of the underlying architecture? (just a hunch...)
|
||
|
<BR>
|
||
|
<P>I've got my scanner hooked up to a Sun Sparc (running linux), and I'm
|
||
|
<BR>
|
||
|
trying to access it from an x86 box. Local scans on the sparc seem to
|
||
|
<BR>
|
||
|
work, but it's headless/no X so I really want to use my desktop machine
|
||
|
<BR>
|
||
|
to do real scans.
|
||
|
<BR>
|
||
|
<P>Here's one stack trace of the seg-fault. (I get roughly the same stack
|
||
|
<BR>
|
||
|
in scanimage -L, xsane, and xscanimage)
|
||
|
<BR>
|
||
|
<P>(This is sane 1.0.3 on both sides)
|
||
|
<BR>
|
||
|
#0 0x400d18a7 in memcpy (dstpp=0x805a890, srcpp=0x805a894, len=4294967292)
|
||
|
<BR>
|
||
|
at ../sysdeps/generic/memcpy.c:55
|
||
|
<BR>
|
||
|
#1 0x402ca03e in sanei_w_space (w=0x805a83c, howmuch=4) at sanei_wire.c:84
|
||
|
<BR>
|
||
|
#2 0x402c9b78 in bin_w_word (w=0x805a83c, v=0xbffff780)
|
||
|
<BR>
|
||
|
at sanei_codec_bin.c:94
|
||
|
<BR>
|
||
|
#3 0x402ca248 in sanei_w_word (w=0x805a83c, v=0xbffff780) at sanei_wire.c:207
|
||
|
<BR>
|
||
|
#4 0x402c9c7d in sanei_w_init_reply (w=0x805a83c, reply=0xbffff77c)
|
||
|
<BR>
|
||
|
at sanei_net.c:60
|
||
|
<BR>
|
||
|
#5 0x402ca736 in sanei_w_call (w=0x805a83c, procnum=0,
|
||
|
<BR>
|
||
|
w_arg=0x402c9c20 <sanei_w_init_req>, arg=0xbffff784,
|
||
|
<BR>
|
||
|
w_reply=0x402c9c54 <sanei_w_init_reply>, reply=0xbffff77c)
|
||
|
<BR>
|
||
|
at sanei_wire.c:402
|
||
|
<BR>
|
||
|
#6 0x402c8142 in connect_dev (dev=0x805a820) at net.c:198
|
||
|
<BR>
|
||
|
#7 0x402c8696 in sane_net_get_devices (device_list=0xbffff824, local_only=0)
|
||
|
<BR>
|
||
|
at net.c:438
|
||
|
<BR>
|
||
|
#8 0x40015eac in sane_dll_get_devices (device_list=0xbffff894, local_only=0)
|
||
|
<BR>
|
||
|
at dll.c:624
|
||
|
<BR>
|
||
|
#9 0x400165bf in sane_get_devices (dl=0xbffff894, local=0) at dll-s.c:15
|
||
|
<BR>
|
||
|
#10 0x804ade3 in main (argc=2, argv=0xbffffce4) at scanimage.c:1174
|
||
|
<BR>
|
||
|
#11 0x4008acb3 in __libc_start_main (main=0x804ac40 <main>, argc=2,
|
||
|
<BR>
|
||
|
argv=0xbffffce4, init=0x8048d00 <_init>, fini=0x804c0fc <_fini>,
|
||
|
<BR>
|
||
|
rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffcdc)
|
||
|
<BR>
|
||
|
at ../sysdeps/generic/libc-start.c:78
|
||
|
<BR>
|
||
|
<P><P>I looked at the code briefly and it looks like sanei_wire is using data
|
||
|
<BR>
|
||
|
from the stream to do allocation/copying so that's what makes me think
|
||
|
<BR>
|
||
|
this might be a byte order glitch...
|
||
|
<BR>
|
||
|
<P>Any thoughts? Can I provide more information that might be helpful in
|
||
|
<BR>
|
||
|
diagnosing the problem? (FWIW: Mustek 1200 LS)
|
||
|
<BR>
|
||
|
<P>Thanks.
|
||
|
<BR>
|
||
|
<P><PRE>
|
||
|
--
|
||
|
Daniel Kerry Hiltgen Computer Science Cal Poly, San Luis Obispo, CA
|
||
|
Graduated 1999: Currently work for Sun Microsystems
|
||
|
<A HREF="mailto:dhiltgen@lug.calpoly.edu?Subject=Re:%20seg-faults%20for%20network%20access&In-Reply-To=<20001209213618.C6330@lug.calpoly.edu>">dhiltgen@lug.calpoly.edu</A> <A HREF="http://lug.calpoly.edu/~dhiltgen/">http://lug.calpoly.edu/~dhiltgen/</A>
|
||
|
"In a world without fences who needs Gates?" 1997 JavaOne Conference
|
||
|
<P>--
|
||
|
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:%20seg-faults%20for%20network%20access&In-Reply-To=<20001209213618.C6330@lug.calpoly.edu>">majordomo@mostang.com</A>
|
||
|
</PRE>
|
||
|
<P><!-- body="end" -->
|
||
|
<HR NOSHADE>
|
||
|
<UL>
|
||
|
<!-- next="start" -->
|
||
|
<LI><STRONG>Next message:</STRONG> <A HREF="0092.html">Dave Hill: "Re: xsane-0.65 released"</A>
|
||
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0090.html">Ian Cartwright: "Prisa 320U and Sane Solved"</A>
|
||
|
<!-- nextthread="start" -->
|
||
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: seg-faults for network access"</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0096.html">Henning Meier-Geinitz: "Re: seg-faults for network access"</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0100.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0108.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
|
||
|
<LI><STRONG>Reply:</STRONG> <A HREF="0245.html">Jochen Eisinger: "Re: seg-faults for network access"</A>
|
||
|
<!-- reply="end" -->
|
||
|
<LI><STRONG>Messages sorted by:</STRONG>
|
||
|
<A HREF="date.html#91">[ date ]</A>
|
||
|
<A HREF="index.html#91">[ thread ]</A>
|
||
|
<A HREF="subject.html#91">[ subject ]</A>
|
||
|
<A HREF="author.html#91">[ 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>Sat Dec 09 2000 - 21:35:16 PST</EM>
|
||
|
</EM>
|
||
|
</SMALL>
|
||
|
</BODY>
|
||
|
</HTML>
|