# segmentation fault in xsane-1.0.4 on Solaris 2.6

From: Dean Neumann (dneumann@neumann-associates.com)
Date: Mon Jun 25 2001 - 20:49:47 PDT

- Next message: Ben Stanley: "snapscan and aic7xxx driver don't work together"
  - Previous message: Torsten Howard: "solved"
  - Next in thread: Oliver Rauch: "Re: segmentation fault in xsane-1.0.4 on Solaris 2.6"
  - Reply: Oliver Rauch: "Re: segmentation fault in xsane-1.0.4 on Solaris 2.6"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  people,

  I have been using xscanimage 1.0 with sane 1.00 as a plugin for gimp
  1.0.2 for a long time on my Solaris 2.6-SPARC machine. I'm using Jorg
  Schilling's scg scsi driver and a UMAN Astra610S scanner.

  Now I want to upgrade to the latest stable gimp and sane, so I compiled
  and installed glib-1.2.10, gtk+-1.2.10, gimp-1.2.1 and gimp 1.2.1 works
  perfectly.

  Then I compiled and installed sane-backends-1.0.4 and xsane-0.78, and I
  get a segmentation fault from xsane as soon as I try to preview a scan.
  I did all the things mentioned in xsane.PROBLEMS like ensuring that I do
  not have duplicate installations of sane, gtk-config, gimp-config, etc.
  The compile and installations went without error.

  However, whether I run xsane from the commandline or whether I launch it
  as a gimp plugin, I get a segmentation fault in the scsi_cmd() function
  as soon as I press the Preview button. I looked on the mailing list
  archive for similar reported problems but couldn't see any discussion of
  it. Does anyone recognize the problem?

  thanks,
  --dean.

  Here is my stack backtrace. I realize the pointer addresses don't help
  a lot.
  If you tell me what structure I need to investigate and where, I'll set
  a breakpoint at the specified place and print the contents of the
  structure:

  Core was generated by `xsane'.
  Program terminated with signal 11, Segmentation fault.
  Reading symbols from /usr/local/lib/libsane.so.1...done.
  Reading symbols from /usr/lib/libsocket.so.1...done.
  Reading symbols from /usr/lib/libnsl.so.1...done.
  Reading symbols from /usr/lib/libm.so.1...done.
  Reading symbols from /usr/local/lib/libjpeg.so.62...done.
  Reading symbols from /usr/local/lib/libgimpui-1.2.so.0...done.
  Reading symbols from /usr/local/lib/libgimp-1.2.so.0...done.
  Reading symbols from /usr/local/lib/libgtk-1.2.so.0...done.
  Reading symbols from /usr/local/lib/libgdk-1.2.so.0...done.
  Reading symbols from /usr/local/lib/libgmodule-1.2.so.0...done.
  Reading symbols from /usr/local/lib/libglib-1.2.so.0...done.
  Reading symbols from /usr/lib/libdl.so.1...done.
  Reading symbols from /usr/lib/libXext.so.0...done.
  Reading symbols from /usr/lib/libX11.so.4...done.
  Reading symbols from /usr/local/lib/libpng.so.2...done.
  Reading symbols from /usr/openwin/lib/libtiff.so...done.
  Reading symbols from /usr/local/lib/libz.so...done.
  Reading symbols from /usr/lib/libc.so.1...done.
  Reading symbols from /usr/lib/libmp.so.2...done.
  Reading symbols from /usr/lib/locale/en_CA/en_CA.so.1...done.
  Reading symbols from
  /usr/openwin/lib/locale/common/xlibi18n.so.2...done.
  Reading symbols from
  /usr/openwin/lib/locale/common/ximlocal.so.2...done.
  Reading symbols from /usr/lib/nss_files.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-umax.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-tamarack.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-snapscan.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-s9036.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-ricoh.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-pnm.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-mustek.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-microtek2.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-microtek.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-hp.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-epson.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-dmc.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-dc210.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-dc25.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-coolscan.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-canon.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-artec.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-apple.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-agfafocus.so.1...done.
  Reading symbols from /usr/local/lib/sane/libsane-abaton.so.1...done.
  #0 0xef024150 in scsi_cmd (fd=26, cmd=0x397050, cmd_size=0,
  src=0x39705a,
  src_size=254, dst=0xd0, dst_size=0x0, probing=0) at
  sanei_scsi.c:3591
  3591 DBG (3, "cmd=%x, error=%d:%s, bsiz=%d, stat=%x,%x,%x,
  slen=%d\n",
  (gdb) where
  #0 0xef024150 in scsi_cmd (fd=26, cmd=0x397050, cmd_size=0,
  src=0x39705a,
  src_size=254, dst=0xd0, dst_size=0x0, probing=0) at
  sanei_scsi.c:3591
  #1 0xef02433c in sanei_scsi_cmd2 (fd=26, cmd=0x397050, cmd_size=10,
  src=0x39705a, src_size=254, dst=0x0, dst_size=0x397050)
  at sanei_scsi.c:3638
  #2 0xef024570 in sanei_scsi_cmd (fd=26, src=0x397050, src_size=264,
  dst=0x0,
  dst_size=0x0) at sanei_scsi.c:3711
  #3 0xef019260 in umax_set_window_param (dev=0xb28e8) at umax.c:2019
  #4 0xef021974 in sane_umax_start (handle=0x4) at umax.c:6898
  #5 0xef792e04 in sane_dll_start (handle=0xcafc0) at dll.c:830
  #6 0xef792fdc in sane_start (h=0xcafc0) at dll-s.c:46
  #7 0x2a4d8 in preview_scan_start (p=0x1089a8) at xsane-preview.c:1950
  #8 0x2f40c in preview_scan (p=0x1089a8) at xsane-preview.c:3917
  #9 0x2d2e0 in preview_start_button_clicked (widget=0x109ed0,
  data=0x1089a8)
  at xsane-preview.c:3170
  #10 0xef4cc32c in gtk_marshal_NONE__NONE (object=0x109ed0,
  func=0x2d2a4 <preview_start_button_clicked>, func_data=0x1089a8,
  args=0xefffd4a8) at gtkmarshal.c:312
  #11 0xef50f3dc in gtk_handlers_run (handlers=0x10eb10,
  signal=0xefffd408,
  object=0x109ed0, params=0xefffd4a8, after=0) at gtksignal.c:1917
  #12 0xef50e2b8 in gtk_signal_real_emit (object=0x109ed0, signal_id=83,
  params=0xefffd4a8) at gtksignal.c:1477
  #13 0xef50b318 in gtk_signal_emit (object=0x109ed0, signal_id=83)
  at gtksignal.c:552
  #14 0xef44be58 in gtk_button_clicked (button=0x109ed0) at
  gtkbutton.c:336
  #15 0xef44de6c in gtk_real_button_released (button=0x109ed0) at
  gtkbutton.c:861
  #16 0xef4cc32c in gtk_marshal_NONE__NONE (object=0x109ed0,
  func=0xef44dd5c <gtk_real_button_released>, func_data=0x0,
  args=0xefffda28)
  at gtkmarshal.c:312
  #17 0xef50e0ec in gtk_signal_real_emit (object=0x109ed0, signal_id=82,
  params=0xefffda28) at gtksignal.c:1440
  #18 0xef50b318 in gtk_signal_emit (object=0x109ed0, signal_id=82)
  at gtksignal.c:552
  #19 0xef44bd24 in gtk_button_released (button=0x109ed0) at
  gtkbutton.c:327
  #20 0xef44d424 in gtk_button_button_release (widget=0x109ed0,
  event=0xccb50)
  at gtkbutton.c:721
  #21 0xef4cc0bc in gtk_marshal_BOOL__POINTER (object=0x109ed0,
  func=0xef44d2cc <gtk_button_button_release>, func_data=0x0,
  args=0xefffdfa8) at gtkmarshal.c:28
  #22 0xef50e300 in gtk_signal_real_emit (object=0x109ed0, signal_id=21,
  params=0xefffdfa8) at gtksignal.c:1492
  #23 0xef50b318 in gtk_signal_emit (object=0x109ed0, signal_id=21)
  at gtksignal.c:552
  #24 0xef556420 in gtk_widget_event (widget=0x109ed0, event=0xccb50)
  at gtkwidget.c:2864
  #25 0xef4cc030 in gtk_propagate_event (widget=0x109ed0, event=0xccb50)
  at gtkmain.c:1378
  #26 0xef4cad58 in gtk_main_do_event (event=0xccb50) at gtkmain.c:818
  #27 0xef39d288 in gdk_event_dispatch (source_data=0xccb50,
  current_time=0xefffe598, user_data=0x0) at gdkevents.c:2139
  #28 0xef357cfc in g_main_dispatch (dispatch_time=0xefffe598) at
  gmain.c:656
  #29 0xef358598 in g_main_iterate (block=-281551540, dispatch=1) at
  gmain.c:877
  #30 0xef3587ac in g_main_run (loop=0xcafd0) at gmain.c:935
  #31 0xef4ca450 in gtk_main () at gtkmain.c:524
  #32 0x5aab4 in xsane_interface (argc=1, argv=0xefffe8dc) at xsane.c:7023
  #33 0x5ad44 in main (argc=1, argv=0xefffe8dc) at xsane.c:7160
  (gdb)

      --
      Source code, list archive, and docs: http://www.mostang.com/sane/
      To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

  - Next message: Ben Stanley: "snapscan and aic7xxx driver don't work together"
  - Previous message: Torsten Howard: "solved"
  - Next in thread: Oliver Rauch: "Re: segmentation fault in xsane-1.0.4 on Solaris 2.6"
  - Reply: Oliver Rauch: "Re: segmentation fault in xsane-1.0.4 on Solaris 2.6"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Mon Jun 25 2001 - 20:52:26 PDT