[sane-devel] Xsane 0.94 Memory access error (Speicherzugriffsfehler)

Kees Lemmens C.W.J.Lemmens@ewi.tudelft.nl
Tue, 29 Jun 2004 17:09:10 +0200


Hi,

The seg fault problem seems to be caused by an old ~/.gtkrc file with 
illegal content: as soon as I remove this file all problems are gone !!

Don't know which line is responsible, but just decided to discard this 
file completely to avoid any xsane seg faults as it doesn't seem to be 
that important for KDE users ;)

--
Bye,
Kees Lemmens.

On Tuesday 29 June 2004 10:52, Kees Lemmens wrote:
> Hi,
>
> I have the same problem with xsane 0.94, but although  it indeed
> works for most users, with some other users the problem doesn't
> disappear by just removing the xsane.rc !
>
> For those users where it still crashed we could fix the problem by
> changing the version number from 0.91 to 0.94 in xsane.rc and remove
> most of the remaining lines except the first 10 or so.
>
> However, as soon as you would rename the xsane.rc the seg faults
> occur again, so we really think there must be more wrong than only
> this minor xsane.rc problem.
>
> Attached a coredump analysis using gdb. Seems to be gdk related.
> Maybe something todo with their personalized Gdk/Gtk settings ?
>
> Bye,
> Kees Lemmens.
> TU Delft, Netherlands.
>
> On Monday 28 June 2004 18:33, Henning Meier-Geinitz wrote:
> > Hi,
> >
> > On Mon, Jun 28, 2004 at 08:51:46AM +0200, Christoph Knauer wrote:
> > > I've tried to compile and install xsane 0.94. When I start xsane
> > > from console, nothing happens, only the message
> > > "Speicherzugriffsfehler" (Memory access error) appears.
> > > Next I've downloaded a rpm from packman, and there the eula pops
> > > up, but with the click on "accept" the message above appears
> > > again.
> >
> > http://www.xsane.org/
> > First news item.
> >
> > If that's not your problem, tell us more details (which scanner,
> > which backend?).
> >
> > Bye,
> >   Henning
>
> testsys:/tmp 50 % gdb /opt/xsane/bin/xsane core
> GNU gdb 5.3
> Copyright 2002 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and
> you are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for
> details.
> This GDB was configured as "i386-slackware-linux"...
> Core was generated by `/opt/xsane/bin/xsane -n'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /opt/sane/lib/libsane.so...done.
> Loaded symbols for /opt/sane/lib/libsane.so
> Reading symbols from /usr/lib/libusb-0.1.so.4...done.
> Loaded symbols for /usr/lib/libusb-0.1.so.4
> Reading symbols from /lib/libnsl.so.1...done.
> Loaded symbols for /lib/libnsl.so.1
> Reading symbols from /lib/libm.so.6...done.
> Loaded symbols for /lib/libm.so.6
> Reading symbols from /usr/lib/libjpeg.so.62...done.
> Loaded symbols for /usr/lib/libjpeg.so.62
> Reading symbols from /usr/lib/libieee1284.so.3...done.
> Loaded symbols for /usr/lib/libieee1284.so.3
> Reading symbols from /lib/libdl.so.2...done.
> Loaded symbols for /lib/libdl.so.2
> Reading symbols from /usr/lib/libgimpui-1.2.so.0...done.
> Loaded symbols for /usr/lib/libgimpui-1.2.so.0
> Reading symbols from /usr/lib/libgimp-1.2.so.0...done.
> Loaded symbols for /usr/lib/libgimp-1.2.so.0
> Reading symbols from /usr/lib/libgtk-1.2.so.0...done.
> Loaded symbols for /usr/lib/libgtk-1.2.so.0
> Reading symbols from /usr/lib/libgdk-1.2.so.0...done.
> Loaded symbols for /usr/lib/libgdk-1.2.so.0
> Reading symbols from /usr/lib/libgmodule-1.2.so.0...done.
> Loaded symbols for /usr/lib/libgmodule-1.2.so.0
> Reading symbols from /usr/lib/libglib-1.2.so.0...done.
> Loaded symbols for /usr/lib/libglib-1.2.so.0
> Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
> Loaded symbols for /usr/X11R6/lib/libXext.so.6
> Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
> Loaded symbols for /usr/X11R6/lib/libX11.so.6
> Reading symbols from /usr/lib/libpng.so.3...done.
> Loaded symbols for /usr/lib/libpng.so.3
> Reading symbols from /usr/lib/libtiff.so.3...done.
> Loaded symbols for /usr/lib/libtiff.so.3
> Reading symbols from /usr/lib/libz.so.1...done.
> Loaded symbols for /usr/lib/libz.so.1
> Reading symbols from /lib/libc.so.6...done.
> Loaded symbols for /lib/libc.so.6
> Reading symbols from /lib/ld-linux.so.2...done.
> Loaded symbols for /lib/ld-linux.so.2
> Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/
> xlcDef.so.2...done.
> Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
> Reading symbols from /lib/libnss_files.so.2...done.
> Loaded symbols for /lib/libnss_files.so.2
> Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/
> ximcp.so.2...done.
> Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
> Reading symbols from /lib/libnss_compat.so.2...done.
> Loaded symbols for /lib/libnss_compat.so.2
> Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
> Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
> Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
> Loaded symbols for /usr/X11R6/lib/libXrender.so.1
> #0  0x40218451 in gdk_gc_new_with_values () from /usr/lib/
> libgdk-1.2.so.0