sane-project-website/old-archive/2001-06/0261.html

365 wiersze
12 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: segmentation fault in xsane-1.0.4 on Solaris 2.6</TITLE>
<META NAME="Author" CONTENT="Dean Neumann (dneumann@neumann-associates.com)">
<META NAME="Subject" CONTENT="segmentation fault in xsane-1.0.4 on Solaris 2.6">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>segmentation fault in xsane-1.0.4 on Solaris 2.6</H1>
<!-- received="Mon Jun 25 20:48:55 2001" -->
<!-- isoreceived="20010626034855" -->
<!-- sent="Mon, 25 Jun 2001 20:49:47 -0700" -->
<!-- isosent="20010626034947" -->
<!-- name="Dean Neumann" -->
<!-- email="dneumann@neumann-associates.com" -->
<!-- subject="segmentation fault in xsane-1.0.4 on Solaris 2.6" -->
<!-- id="3B38065B.FC4489CB@neumann-associates.com" -->
<STRONG>From:</STRONG> Dean Neumann (<A HREF="mailto:dneumann@neumann-associates.com?Subject=Re:%20segmentation%20fault%20in%20xsane-1.0.4%20on%20Solaris%202.6&In-Reply-To=&lt;3B38065B.FC4489CB@neumann-associates.com&gt;"><EM>dneumann@neumann-associates.com</EM></A>)<BR>
<STRONG>Date:</STRONG> Mon Jun 25 2001 - 20:49:47 PDT
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0262.html">Ben Stanley: "snapscan and aic7xxx driver don't work together"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0260.html">Torsten Howard: "solved"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0282.html">Oliver Rauch: "Re: segmentation fault in xsane-1.0.4 on Solaris 2.6"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0282.html">Oliver Rauch: "Re: segmentation fault in xsane-1.0.4 on Solaris 2.6"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#261">[ date ]</A>
<A HREF="index.html#261">[ thread ]</A>
<A HREF="subject.html#261">[ subject ]</A>
<A HREF="author.html#261">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
people,
<BR>
<P>I have been using xscanimage 1.0 with sane 1.00 as a plugin for gimp
<BR>
1.0.2 for a long time on my Solaris 2.6-SPARC machine. I'm using Jorg
<BR>
Schilling's scg scsi driver and a UMAN Astra610S scanner.
<BR>
<P>Now I want to upgrade to the latest stable gimp and sane, so I compiled
<BR>
and installed glib-1.2.10, gtk+-1.2.10, gimp-1.2.1 and gimp 1.2.1 works
<BR>
perfectly.
<BR>
<P>Then I compiled and installed sane-backends-1.0.4 and xsane-0.78, and I
<BR>
get a segmentation fault from xsane as soon as I try to preview a scan.
<BR>
I did all the things mentioned in xsane.PROBLEMS like ensuring that I do
<BR>
not have duplicate installations of sane, gtk-config, gimp-config, etc.
<BR>
The compile and installations went without error.
<BR>
<P>However, whether I run xsane from the commandline or whether I launch it
<BR>
as a gimp plugin, I get a segmentation fault in the scsi_cmd() function
<BR>
as soon as I press the Preview button. I looked on the mailing list
<BR>
archive for similar reported problems but couldn't see any discussion of
<BR>
it. Does anyone recognize the problem?
<BR>
<P>thanks,
<BR>
--dean.
<BR>
<P>Here is my stack backtrace. I realize the pointer addresses don't help
<BR>
a lot.
<BR>
If you tell me what structure I need to investigate and where, I'll set
<BR>
a breakpoint at the specified place and print the contents of the
<BR>
structure:
<BR>
<P>Core was generated by `xsane'.
<BR>
Program terminated with signal 11, Segmentation fault.
<BR>
Reading symbols from /usr/local/lib/libsane.so.1...done.
<BR>
Reading symbols from /usr/lib/libsocket.so.1...done.
<BR>
Reading symbols from /usr/lib/libnsl.so.1...done.
<BR>
Reading symbols from /usr/lib/libm.so.1...done.
<BR>
Reading symbols from /usr/local/lib/libjpeg.so.62...done.
<BR>
Reading symbols from /usr/local/lib/libgimpui-1.2.so.0...done.
<BR>
Reading symbols from /usr/local/lib/libgimp-1.2.so.0...done.
<BR>
Reading symbols from /usr/local/lib/libgtk-1.2.so.0...done.
<BR>
Reading symbols from /usr/local/lib/libgdk-1.2.so.0...done.
<BR>
Reading symbols from /usr/local/lib/libgmodule-1.2.so.0...done.
<BR>
Reading symbols from /usr/local/lib/libglib-1.2.so.0...done.
<BR>
Reading symbols from /usr/lib/libdl.so.1...done.
<BR>
Reading symbols from /usr/lib/libXext.so.0...done.
<BR>
Reading symbols from /usr/lib/libX11.so.4...done.
<BR>
Reading symbols from /usr/local/lib/libpng.so.2...done.
<BR>
Reading symbols from /usr/openwin/lib/libtiff.so...done.
<BR>
Reading symbols from /usr/local/lib/libz.so...done.
<BR>
Reading symbols from /usr/lib/libc.so.1...done.
<BR>
Reading symbols from /usr/lib/libmp.so.2...done.
<BR>
Reading symbols from /usr/lib/locale/en_CA/en_CA.so.1...done.
<BR>
Reading symbols from
<BR>
/usr/openwin/lib/locale/common/xlibi18n.so.2...done.
<BR>
Reading symbols from
<BR>
/usr/openwin/lib/locale/common/ximlocal.so.2...done.
<BR>
Reading symbols from /usr/lib/nss_files.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-umax.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-tamarack.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-snapscan.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-s9036.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-ricoh.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-pnm.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-mustek.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-microtek2.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-microtek.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-hp.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-epson.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-dmc.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-dc210.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-dc25.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-coolscan.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-canon.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-artec.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-apple.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-agfafocus.so.1...done.
<BR>
Reading symbols from /usr/local/lib/sane/libsane-abaton.so.1...done.
<BR>
#0 0xef024150 in scsi_cmd (fd=26, cmd=0x397050, cmd_size=0,
<BR>
src=0x39705a,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;src_size=254, dst=0xd0, dst_size=0x0, probing=0) at
<BR>
sanei_scsi.c:3591
<BR>
3591 DBG (3, &quot;cmd=%x, error=%d:%s, bsiz=%d, stat=%x,%x,%x,
<BR>
slen=%d\n&quot;,
<BR>
(gdb) where
<BR>
#0 0xef024150 in scsi_cmd (fd=26, cmd=0x397050, cmd_size=0,
<BR>
src=0x39705a,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;src_size=254, dst=0xd0, dst_size=0x0, probing=0) at
<BR>
sanei_scsi.c:3591
<BR>
#1 0xef02433c in sanei_scsi_cmd2 (fd=26, cmd=0x397050, cmd_size=10,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;src=0x39705a, src_size=254, dst=0x0, dst_size=0x397050)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;at sanei_scsi.c:3638
<BR>
#2 0xef024570 in sanei_scsi_cmd (fd=26, src=0x397050, src_size=264,
<BR>
dst=0x0,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;dst_size=0x0) at sanei_scsi.c:3711
<BR>
#3 0xef019260 in umax_set_window_param (dev=0xb28e8) at umax.c:2019
<BR>
#4 0xef021974 in sane_umax_start (handle=0x4) at umax.c:6898
<BR>
#5 0xef792e04 in sane_dll_start (handle=0xcafc0) at dll.c:830
<BR>
#6 0xef792fdc in sane_start (h=0xcafc0) at dll-s.c:46
<BR>
#7 0x2a4d8 in preview_scan_start (p=0x1089a8) at xsane-preview.c:1950
<BR>
#8 0x2f40c in preview_scan (p=0x1089a8) at xsane-preview.c:3917
<BR>
#9 0x2d2e0 in preview_start_button_clicked (widget=0x109ed0,
<BR>
data=0x1089a8)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;at xsane-preview.c:3170
<BR>
#10 0xef4cc32c in gtk_marshal_NONE__NONE (object=0x109ed0,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;func=0x2d2a4 &lt;preview_start_button_clicked&gt;, func_data=0x1089a8,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;args=0xefffd4a8) at gtkmarshal.c:312
<BR>
#11 0xef50f3dc in gtk_handlers_run (handlers=0x10eb10,
<BR>
signal=0xefffd408,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;object=0x109ed0, params=0xefffd4a8, after=0) at gtksignal.c:1917
<BR>
#12 0xef50e2b8 in gtk_signal_real_emit (object=0x109ed0, signal_id=83,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;params=0xefffd4a8) at gtksignal.c:1477
<BR>
#13 0xef50b318 in gtk_signal_emit (object=0x109ed0, signal_id=83)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;at gtksignal.c:552
<BR>
#14 0xef44be58 in gtk_button_clicked (button=0x109ed0) at
<BR>
gtkbutton.c:336
<BR>
#15 0xef44de6c in gtk_real_button_released (button=0x109ed0) at
<BR>
gtkbutton.c:861
<BR>
#16 0xef4cc32c in gtk_marshal_NONE__NONE (object=0x109ed0,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;func=0xef44dd5c &lt;gtk_real_button_released&gt;, func_data=0x0,
<BR>
args=0xefffda28)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;at gtkmarshal.c:312
<BR>
#17 0xef50e0ec in gtk_signal_real_emit (object=0x109ed0, signal_id=82,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;params=0xefffda28) at gtksignal.c:1440
<BR>
#18 0xef50b318 in gtk_signal_emit (object=0x109ed0, signal_id=82)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;at gtksignal.c:552
<BR>
#19 0xef44bd24 in gtk_button_released (button=0x109ed0) at
<BR>
gtkbutton.c:327
<BR>
#20 0xef44d424 in gtk_button_button_release (widget=0x109ed0,
<BR>
event=0xccb50)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;at gtkbutton.c:721
<BR>
#21 0xef4cc0bc in gtk_marshal_BOOL__POINTER (object=0x109ed0,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;func=0xef44d2cc &lt;gtk_button_button_release&gt;, func_data=0x0,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;args=0xefffdfa8) at gtkmarshal.c:28
<BR>
#22 0xef50e300 in gtk_signal_real_emit (object=0x109ed0, signal_id=21,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;params=0xefffdfa8) at gtksignal.c:1492
<BR>
#23 0xef50b318 in gtk_signal_emit (object=0x109ed0, signal_id=21)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;at gtksignal.c:552
<BR>
#24 0xef556420 in gtk_widget_event (widget=0x109ed0, event=0xccb50)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;at gtkwidget.c:2864
<BR>
#25 0xef4cc030 in gtk_propagate_event (widget=0x109ed0, event=0xccb50)
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;at gtkmain.c:1378
<BR>
#26 0xef4cad58 in gtk_main_do_event (event=0xccb50) at gtkmain.c:818
<BR>
#27 0xef39d288 in gdk_event_dispatch (source_data=0xccb50,
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;current_time=0xefffe598, user_data=0x0) at gdkevents.c:2139
<BR>
#28 0xef357cfc in g_main_dispatch (dispatch_time=0xefffe598) at
<BR>
gmain.c:656
<BR>
#29 0xef358598 in g_main_iterate (block=-281551540, dispatch=1) at
<BR>
gmain.c:877
<BR>
#30 0xef3587ac in g_main_run (loop=0xcafd0) at gmain.c:935
<BR>
#31 0xef4ca450 in gtk_main () at gtkmain.c:524
<BR>
#32 0x5aab4 in xsane_interface (argc=1, argv=0xefffe8dc) at xsane.c:7023
<BR>
#33 0x5ad44 in main (argc=1, argv=0xefffe8dc) at xsane.c:7160
<BR>
(gdb)
<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?Subject=Re:%20segmentation%20fault%20in%20xsane-1.0.4%20on%20Solaris%202.6&In-Reply-To=&lt;3B38065B.FC4489CB@neumann-associates.com&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0262.html">Ben Stanley: "snapscan and aic7xxx driver don't work together"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0260.html">Torsten Howard: "solved"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0282.html">Oliver Rauch: "Re: segmentation fault in xsane-1.0.4 on Solaris 2.6"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0282.html">Oliver Rauch: "Re: segmentation fault in xsane-1.0.4 on Solaris 2.6"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#261">[ date ]</A>
<A HREF="index.html#261">[ thread ]</A>
<A HREF="subject.html#261">[ subject ]</A>
<A HREF="author.html#261">[ 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>Mon Jun 25 2001 - 20:52:26 PDT</EM>
</EM>
</SMALL>
</BODY>
</HTML>