xsane crashed with SIGSEGV in sane_avision_start()

Bug #237426 reported by Night Train
36
This bug affects 4 people
Affects Status Importance Assigned to Milestone
xsane (Debian)
Fix Released
Unknown
xsane (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Hardy by Arthur

Bug Description

Binary package hint: xsane

ubuntu 8.04 (hardy)
64-bit
kernel 2.6.24-18-generic (also 17-generic)
gnome2.22.2
xsane 0.995-1ubuntu1 (hardy)

launch xsane, scanner hp5370c check ok, click button acquire (or acquire preview) and application (xsane) it's closed with message "segmentation fault (core dumped)"

I have added to the group scanner

with gutsy 7.10 64-bit it worked well

thanks

Night Train

ProblemType: Crash
Architecture: amd64
Date: Wed Jun 4 20:37:48 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/xsane
NonfreeKernelModules: nvidia
Package: xsane 0.995-1ubuntu1
PackageArchitecture: amd64
ProcCmdline: xsane
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=it_IT.UTF-8
Signal: 11
SourcePackage: xsane
StacktraceTop:
 ?? () from /usr/lib/sane/libsane-avision.so.1
 ?? () from /usr/lib/sane/libsane-avision.so.1
 sane_avision_start ()
 ?? ()
 ?? ()
Title: xsane crashed with SIGSEGV in sane_avision_start()
Uname: Linux 2.6.24-18-generic x86_64
UserGroups: adm admin audio cdrom dialout dip fax firebird floppy fuse lpadmin plugdev saned scanner tape vboxusers video

Tags: apport-crash
Revision history for this message
Night Train (nighttrain) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:normal_calibration (s=0x908e20) at avision.c:4642
sane_avision_start (handle=<value optimized out>) at avision.c:7828
preview_scan_start (p=0x9ab120) at xsane-preview.c:2001
preview_scan (p=0x9ab120) at xsane-preview.c:5103
IA__g_closure_invoke (closure=0x9d6a00, return_value=0x0, n_param_values=1,

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Changed in xsane:
importance: Undecided → Medium
Revision history for this message
Night Train (nighttrain) wrote :

hi guys

here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=474706
there is Debian Bug report logs - #474706
xsane segfaults when trying a preview or scan

my solution:
uninstall and purge xsane, libsane, etc. with folder .sane in home
download and install:
libsane-extras_1.0.19.10_amd64.deb
libsane_1.0.19-17_amd64.deb
sane-utils_1.0.19-17_amd64.deb
xsane-common_0.995-4_all.deb
xsane_0.995-4_amd64.deb
from repository debian lenny

now xsane it's ok when click acquire, but not when click on acquire preview

on my ubuntu hardy heron 8.04.1 64 bit this problem affect only scanner hp scanjet 5370C (another scanner epson perfection was ok also before)
(now kernel is 2.6.24-21 and gnome 2.22.3)

thanks

Night Train

Revision history for this message
Paul Libert (plibert) wrote :
Download full text (8.8 KiB)

On Intrepid, got same symptoms but following information dumped on terminal :
*** glibc detected *** xsane: corrupted double-linked list: 0x00000000014805f0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7ff5eb74b9e8]
/lib/libc.so.6[0x7ff5eb74ddee]
/lib/libc.so.6(cfree+0x76)[0x7ff5eb74e036]
xsane[0x4200d6]
xsane[0x42a48e]
xsane[0x42b63e]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16d)[0x7ff5ec7f626d]
/usr/lib/libgobject-2.0.so.0[0x7ff5ec80bf8d]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b8)[0x7ff5ec80d658]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7ff5ec80db83]
/usr/lib/libgtk-x11-2.0.so.0[0x7ff5ee6602dd]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16d)[0x7ff5ec7f626d]
/usr/lib/libgobject-2.0.so.0[0x7ff5ec80b888]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x7b8)[0x7ff5ec80d658]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7ff5ec80db83]
/usr/lib/libgtk-x11-2.0.so.0[0x7ff5ee65f50d]
/usr/lib/libgtk-x11-2.0.so.0[0x7ff5ee704698]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16d)[0x7ff5ec7f626d]
/usr/lib/libgobject-2.0.so.0[0x7ff5ec80bc4b]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x63a)[0x7ff5ec80d4da]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7ff5ec80db83]
/usr/lib/libgtk-x11-2.0.so.0[0x7ff5ee80770e]
/usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0xe3)[0x7ff5ee6fd023]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x2f3)[0x7ff5ee6fe153]
/usr/lib/libgdk-x11-2.0.so.0[0x7ff5ee38140c]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x232)[0x7ff5ec359d62]
/usr/lib/libglib-2.0.so.0[0x7ff5ec35d4fd]
/usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1cd)[0x7ff5ec35da2d]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x7ff5ee6fe557]
xsane[0x4766a2]
xsane[0x47761d]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7ff5eb6f0466]
xsane[0x409f49]
======= Memory map: ========
00400000-00497000 r-xp 00000000 08:06 8143930 /usr/bin/xsane
00696000-00697000 r--p 00096000 08:06 8143930 /usr/bin/xsane
00697000-006a0000 rw-p 00097000 08:06 8143930 /usr/bin/xsane
006a0000-006a1000 rw-p 006a0000 00:00 0
010a9000-0162d000 rw-p 010a9000 00:00 0 [heap]
7ff5d4000000-7ff5d4021000 rw-p 7ff5d4000000 00:00 0
7ff5d4021000-7ff5d8000000 ---p 7ff5d4021000 00:00 0
7ff5d8da8000-7ff5d8dbe000 r-xp 00000000 08:06 10879000 /lib/libgcc_s.so.1
7ff5d8dbe000-7ff5d8fbd000 ---p 00016000 08:06 10879000 /lib/libgcc_s.so.1
7ff5d8fbd000-7ff5d8fbe000 r--p 00015000 08:06 10879000 /lib/libgcc_s.so.1
7ff5d8fbe000-7ff5d8fbf000 rw-p 00016000 08:06 10879000 /lib/libgcc_s.so.1
7ff5d8fbf000-7ff5d8fc0000 r-xp 00000000 08:06 6165518 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
7ff5d8fc0000-7ff5d91c0000 ---p 00001000 08:06 6165518 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
7ff5d91c0000-7ff5d91c1000 r--p 00001000 08:06 6165518 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
7ff5d91c1000-7ff5d91c2000 rw-p 00002000 08:06 6165518 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
7ff5d91c2000-7ff5d92...

Read more...

Changed in xsane:
status: Unknown → Fix Released
Revision history for this message
hads (hads) wrote :

This seems to be some issue with the avision backend. My Avision AV122 no longer works in Intrepid where it did used to work in Hardy. My HP multifunction works fine.

Interestingly I created a fresh Hardy install under VMWare to see if it worked there but alas that didn't work either. Below is the output from scanimage;

hads@snowman:~$ scanimage > test.pnm
*** glibc detected *** scanimage: free(): invalid next size (fast): 0x0968b9f0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7dfd3f4]
/lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb7dff456]
/usr/lib/sane/libsane-avision.so.1(sane_avision_close+0x137)[0xb75d69b7]
/usr/lib/libsane.so.1(sane_dll_close+0x3f)[0xb7ef29ff]
/usr/lib/libsane.so.1(sane_close+0x1d)[0xb7ef40dd]
scanimage[0x804dbda]
/lib/tls/i686/cmov/libc.so.6(exit+0x89)[0xb7dbcd69]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xed)[0xb7da468d]
scanimage[0x8049291]
======= Memory map: ========
08048000-08052000 r-xp 00000000 08:01 268893 /usr/bin/scanimage
08052000-08054000 rw-p 00009000 08:01 268893 /usr/bin/scanimage
09647000-096ce000 rw-p 09647000 00:00 0 [heap]
b6e00000-b6e21000 rw-p b6e00000 00:00 0
[...]

Revision history for this message
ThiloPfennig (tpfennig) wrote :

This seems to be a libsane problem.

On debbugs #474706 David Headland wrote on July 23rd 2008:

"I've managed to grab a few minutes to test libsane 1.0.19-15 with my
ScanJet 5300c this evening, and can report that scanning now works fine
for me"

Ubuntu Intrepid as of today still has "libsane-1.0.19-6ubuntu1

Can we have an update of libsane to a higher version? Ubuntu unstable does yet not have version "1.0.19.11": http://packages.ubuntu.com/jaunty/libsane-extras

I have the same problems with a ScanJet 5370C.

I filed a new bug under Bug #320985

Revision history for this message
davygrvy (davygrvy) wrote :
Download full text (4.0 KiB)

same symptoms here with me, too:

*** glibc detected *** xsane: corrupted double-linked list: 0x0000000000dccdc0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f1cb49e6a58]
/lib/libc.so.6[0x7f1cb49ea163]
/lib/libc.so.6(__libc_malloc+0x98)[0x7f1cb49eb658]
/usr/lib/libxcb.so.1[0x7f1cb2173f93]
/usr/lib/libxcb.so.1[0x7f1cb21723ba]
/usr/lib/libxcb.so.1[0x7f1cb21729f9]
/usr/lib/libxcb.so.1[0x7f1cb2172b09]
/usr/lib/libxcb.so.1(xcb_flush+0x2c)[0x7f1cb2172bdc]
/usr/lib/libX11.so.6(_XSend+0x47)[0x7f1cb3e819e7]
/usr/lib/libX11.so.6(_XEventsQueued+0x54)[0x7f1cb3e81af4]
/usr/lib/libX11.so.6(XPending+0x5d)[0x7f1cb3e6a01d]
/usr/lib/libgdk-x11-2.0.so.0[0x7f1cb761b963]
/usr/lib/libglib-2.0.so.0(g_main_context_prepare+0x1ea)[0x7f1cb55f7e0a]
/usr/lib/libglib-2.0.so.0[0x7f1cb55f822a]
/usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1cd)[0x7f1cb55f8a5d]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x7f1cb799b7a7]
xsane[0x4766a2]
xsane[0x47761d]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f1cb498b466]
xsane[0x409f49]
======= Memory map: ========
00400000-00497000 r-xp 00000000 08:01 25396551 /usr/bin/xsane
00696000-00697000 r--p 00096000 08:01 25396551 /usr/bin/xsane
00697000-006a0000 rw-p 00097000 08:01 25396551 /usr/bin/xsane
006a0000-006a1000 rw-p 006a0000 00:00 0
009e0000-00edd000 rw-p 009e0000 00:00 0 [heap]
7f1c9c000000-7f1c9c021000 rw-p 7f1c9c000000 00:00 0
7f1c9c021000-7f1ca0000000 ---p 7f1c9c021000 00:00 0
7f1ca3d17000-7f1ca3d2d000 r-xp 00000000 08:01 23461899 /lib/libgcc_s.so.1
7f1ca3d2d000-7f1ca3f2d000 ---p 00016000 08:01 23461899 /lib/libgcc_s.so.1
7f1ca3f2d000-7f1ca3f2e000 r--p 00016000 08:01 23461899 /lib/libgcc_s.so.1
7f1ca3f2e000-7f1ca3f2f000 rw-p 00017000 08:01 23461899 /lib/libgcc_s.so.1
7f1ca3f2f000-7f1ca47ab000 rw-p 7f1ca3f2f000 00:00 0
7f1ca47ab000-7f1ca47af000 r-xp 00000000 08:01 25429474 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7f1ca47af000-7f1ca49af000 ---p 00004000 08:01 25429474 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7f1ca49af000-7f1ca49b0000 r--p 00004000 08:01 25429474 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7f1ca49b0000-7f1ca49b1000 rw-p 00005000 08:01 25429474 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7f1ca49b1000-7f1ca49b3000 r-xp 00000000 08:01 23462193 /lib/libutil-2.8.90.so
7f1ca49b3000-7f1ca4bb2000 ---p 00002000 08:01 23462193 /lib/libutil-2.8.90.so
7f1ca4bb2000-7f1ca4bb3000 r--p 00001000 08:01 23462193 /lib/libutil-2.8.90.so
7f1ca4bb3000-7f1ca4bb4000 rw-p 00002000 08:01 23462193 /lib/libutil-2.8.90.so
7f1ca4bb4000-7f1ca4bc4000 r-xp 00000000 08:01 25397124 /usr/lib/libgvfscommon.so.0.0.0
7f1ca4bc4000-7f1ca4dc3000 ---p 00010000 08:01 25397124 /usr/lib/libgvfscommon.so.0.0.0
7f1ca4dc3000-7f1ca4dc4000 r--p 0000f000 08:01 25397124 /usr/lib/libgvfscommon.so.0.0.0
7f1ca4dc4000-7f1ca4dc5000 rw-p 00010000 0...

Read more...

Revision history for this message
hads (hads) wrote :

Works in Jaunty as per bug #320985

Revision history for this message
ThiloPfennig (tpfennig) wrote :

Fixed for me in Karmic

Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Then marking this bug as fixed.

Changed in xsane (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.