kopia lustrzana https://gitlab.com/sane-project/website
109 wiersze
4.9 KiB
HTML
109 wiersze
4.9 KiB
HTML
<!-- received="Thu Apr 22 03:25:48 1999 PDT" -->
|
||
<!-- sent="Thu, 22 Apr 1999 13:25:55 +0300" -->
|
||
<!-- name="Milon Firikis" -->
|
||
<!-- email="milonf@ariadne-t.gr" -->
|
||
<!-- subject="Re: Sane 1.01pre5 segfaults in RedHat 5.1 (net)" -->
|
||
<!-- id="" -->
|
||
<!-- inreplyto="Sane 1.01pre5 segfaults in RedHat 5.1 (net)" -->
|
||
<title>sane-devel: Re: Sane 1.01pre5 segfaults in RedHat 5.1 (net)</title>
|
||
<h1>Re: Sane 1.01pre5 segfaults in RedHat 5.1 (net)</h1>
|
||
<b>Milon Firikis</b> (<a href="mailto:milonf@ariadne-t.gr"><i>milonf@ariadne-t.gr</i></a>)<br>
|
||
<i>Thu, 22 Apr 1999 13:25:55 +0300</i>
|
||
<p>
|
||
<ul>
|
||
<li> <b>Messages sorted by:</b> <a href="date.html#292">[ date ]</a><a href="index.html#292">[ thread ]</a><a href="subject.html#292">[ subject ]</a><a href="author.html#292">[ author ]</a>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0293.html">John Stoffel: "Sane config thoughts"</a>
|
||
<li> <b>Previous message:</b> <a href="0291.html">Gunter Koenigsmann: "Blast Mustek?"</a>
|
||
<li> <b>Maybe in reply to:</b> <a href="0271.html">Petter Reinholdtsen: "Sane 1.01pre5 segfaults in RedHat 5.1 (net)"</a>
|
||
<!-- nextthread="start" -->
|
||
<li> <b>Next in thread:</b> <a href="0398.html">Graham Stoney: "Possible fix for Sane 1.0.1 segfault in RedHat 5.1 (net)"</a>
|
||
<!-- reply="end" -->
|
||
</ul>
|
||
<!-- body="start" -->
|
||
Petter Reinholdtsen wrote:<br>
|
||
<i>> </i><br>
|
||
<i>> [Milon Firikis]</i><br>
|
||
<i>> > I keep getting SIGSEGVs in redhat 5.1</i><br>
|
||
<i>> ></i><br>
|
||
<i>> > I have reported it some time ago... but I am not qualified to find</i><br>
|
||
<i>> > the solution...</i><br>
|
||
<i>> </i><br>
|
||
<i>> Try running 'SANE_DEBUG_NET=128 scanimage -T' and report the output.</i><br>
|
||
<i>> What is the exact command line when crashing? Try rerunning that</i><br>
|
||
<i>> command line with 'SANE_DEBUG_NET=128' set.</i><br>
|
||
<i>> </i><br>
|
||
<i>> The pnm backend is supposed to be full of bugs. Maybe you should try</i><br>
|
||
<i>> with another backend?</i><br>
|
||
<p>
|
||
Let's forget the pnm backend. I have to admit I wasn't clear enough. The<br>
|
||
offending command is scanimage -L. So I just disabled the pnm entry from<br>
|
||
the dll.conf. That means that I have only the net backend listed in<br>
|
||
there and so it should return "No available devices" or something.<br>
|
||
Instead of that I am getting...<br>
|
||
<p>
|
||
[13:19:32~(1003)]$>SANE_DEBUG_NET=128 gdb scanimage<br>
|
||
GNU gdb 4.17<br>
|
||
Copyright 1998 Free Software Foundation, Inc.<br>
|
||
GDB is free software, covered by the GNU General Public License, and you<br>
|
||
are<br>
|
||
welcome to change it and/or distribute copies of it under certain<br>
|
||
conditions.<br>
|
||
Type "show copying" to see the conditions.<br>
|
||
There is absolutely no warranty for GDB. Type "show warranty" for<br>
|
||
details.<br>
|
||
This GDB was configured as "i386-redhat-linux"...<br>
|
||
(gdb) run -L<br>
|
||
Starting program: /usr/local/bin/scanimage -L<br>
|
||
[sanei_init_debug]: Setting debug level of net to 128.<br>
|
||
[net] adding backend localhost<br>
|
||
<p>
|
||
Program received signal SIGSEGV, Segmentation fault.<br>
|
||
0x40099d43 in memcpy (dstpp=0x804e328, srcpp=0x804e32c, len=4294967292)<br>
|
||
at ../sysdeps/generic/memcpy.c:57<br>
|
||
../sysdeps/generic/memcpy.c:57: No such file or directory.<br>
|
||
(gdb) up<br>
|
||
#1 0x400fd9fe in sanei_w_space (w=0x804e2e4, howmuch=4) at<br>
|
||
sanei_wire.c:84<br>
|
||
84 memcpy (w->buffer.start, w->buffer.curr, left_over);<br>
|
||
(gdb) print left_over <br>
|
||
$1 = 4294967292<br>
|
||
(gdb) print *w<br>
|
||
$2 = {version = 0, direction = WIRE_DECODE, status = 22, codec = {<br>
|
||
w_byte = 0x400fd458 <bin_w_byte>, w_char = 0x400fd458 <bin_w_byte>, <br>
|
||
w_word = 0x400fd520 <bin_w_word>, w_string = 0x400fd4ac<br>
|
||
<bin_w_string>}, <br>
|
||
buffer = {size = 8192, curr = 0x804e32c "", start = 0x804e328 "\001", <br>
|
||
end = 0x804e328 "\001"}, io = {fd = 6, read = 0x400bec60 <__read>, <br>
|
||
write = 0x400becb0 <__write>}}<br>
|
||
(gdb) info locals<br>
|
||
w = (Wire *) 0x804e2e4<br>
|
||
nbytes = 4294967292<br>
|
||
left_over = 4294967292<br>
|
||
fd = 6<br>
|
||
nread = 0<br>
|
||
nwritten = 0<br>
|
||
(gdb) <br>
|
||
<p>
|
||
Assuming I haven't configured properly the saned service in inetd.conf,<br>
|
||
scanimage shouldn't core dump, should it?<br>
|
||
<p>
|
||
MF<br>
|
||
<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">majordomo@mostang.com</a>
|
||
</pre>
|
||
<!-- body="end" -->
|
||
<p>
|
||
<ul>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0293.html">John Stoffel: "Sane config thoughts"</a>
|
||
<li> <b>Previous message:</b> <a href="0291.html">Gunter Koenigsmann: "Blast Mustek?"</a>
|
||
<li> <b>Maybe in reply to:</b> <a href="0271.html">Petter Reinholdtsen: "Sane 1.01pre5 segfaults in RedHat 5.1 (net)"</a>
|
||
<!-- nextthread="start" -->
|
||
<li> <b>Next in thread:</b> <a href="0398.html">Graham Stoney: "Possible fix for Sane 1.0.1 segfault in RedHat 5.1 (net)"</a>
|
||
<!-- reply="end" -->
|
||
</ul>
|