xsane chrashes before scanning

Bug #691921 reported by Risto Mononen
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xsane (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: xsane

Printer is HP PSC 1315.
Latest hplip is installed.
The problem can be re-produced with other scanning applications, e.g. scanimage and hp-scan --> possibly a driver problem? All applications report the same assertion problem when run with catchsegv (full catchsegv output attached).

Inconsistency detected by ld.so: dl-open.c: 222: dl_open_worker: Assertion `_dl_debug_initialize (0, args->nsid)->r_state == RT_CONSISTENT' failed!

SW versions:
/tmp$ scanimage -V
scanimage (sane-backends) 1.0.21; backend version 1.0.21
/tmp$ hp-scan -v
HP Linux Imaging and Printing System (ver. 3.10.9)
Scan Utility ver. 2.2

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: xsane 0.997-2ubuntu3
ProcVersionSignature: Ubuntu 2.6.35-24.42-generic 2.6.35.8
Uname: Linux 2.6.35-24-generic i686
Architecture: i386
CheckboxSubmission: de4705189f36ed9f6c7864faf149fb86
CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f
Date: Sat Dec 18 16:43:06 2010
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, user)
 LANG=en_GB.utf8
 SHELL=/bin/bash
SourcePackage: xsane

Revision history for this message
Risto Mononen (risto-mononen-deactivatedaccount) wrote :
description: updated
Revision history for this message
Risto Mononen (risto-mononen-deactivatedaccount) wrote :

Stack and register info from gdb, without symbols.

Revision history for this message
Risto Mononen (risto-mononen-deactivatedaccount) wrote :

GDB info with debug symbols attached. I could not find dl-deps.c source file. There is dll.c and load() seems to be the problem.

./sane-backends-1.0.21/backend/dll.c

(gdb) backtrace full
#0 _dl_map_object_deps (map=<value optimised out>, preloads=<value optimised out>, npreloads=<value optimised out>, trace_mode=0, open_mode=-2147483648) at dl-deps.c:224
  ...
#8 0x00132886 in load (be=0x814a398) at dll.c:497
  ...

(gdb) info registers
eax 0x0 0
ecx 0x1a9cef4 27905780
edx 0x80000000 -2147483648

  ...

(gdb) x/16i $pc
=> 0x11cb19 <_dl_map_object_deps+297>: mov 0x4(%eax),%eax
   0x11cb1c <_dl_map_object_deps+300>: mov %edx,-0x28(%ebp)
   0x11cb1f <_dl_map_object_deps+303>: mov %edi,-0x30(%ebp)

  ...

Thread 1 (Thread 0xb7fda820 (LWP 29499)):
#0 _dl_map_object_deps (map=<value optimised out>, preloads=<value optimised out>, npreloads=<value optimised out>, trace_mode=0, open_mode=-2147483648) at dl-deps.c:224
#1 0x00122606 in dl_open_worker (a=0xbfffb830) at dl-open.c:263
#2 0x0011e266 in _dl_catch_error (objname=<value optimised out>, errstring=<value optimised out>, mallocedp=<value optimised out>, operate=0x122470 <dl_open_worker>, args=0xbfffb830) at dl-error.c:178
#3 0x00122046 in _dl_open (file=0xbfffba7c "/usr/lib/sane/libsane-v4l.so.1", mode=<value optimised out>, caller_dlopen=0x132886, nsid=-2, argc=1, argv=0xbffff414, env=0xbffff41c) at dl-open.c:555
#4 0x00dd6c0b in dlopen_doit (a=0xbfffba10) at dlopen.c:67
#5 0x0011e266 in _dl_catch_error (objname=<value optimised out>, errstring=<value optimised out>, mallocedp=<value optimised out>, operate=0xdd6b70 <dlopen_doit>, args=0xbfffba10) at dl-error.c:178
#6 0x00dd709c in _dlerror_run (operate=<value optimised out>, args=<value optimised out>) at dlerror.c:164
#7 0x00dd6b41 in __dlopen (file=0xbfffba7c "/usr/lib/sane/libsane-v4l.so.1", mode=1) at dlopen.c:88
#8 0x00132886 in load (be=0x814a398) at dll.c:497
#9 0x00132b00 in init (be=0x0) at dll.c:606
#10 0x00132e57 in sane_dll_get_devices (device_list=0x80eab88, local_only=0) at dll.c:1034
#11 0x00130984 in sane_get_devices (dl=0x80eab88, local=0) at dll-s.c:17
#12 0x080cc39d in xsane_init (argc=1, argv=0xbffff414) at xsane.c:5930
#13 0x080cc539 in xsane_interface (argc=1, argv=0xbffff414) at xsane.c:5993
#14 0x080cccb2 in main (argc=1, argv=0xbffff414) at xsane.c:6238
(gdb) quit
A debugging session is active.

Revision history for this message
Risto Mononen (risto-mononen-deactivatedaccount) wrote :

Scanning works after updating to Ubuntu 11.04 (Natty). Probably an incorrect config file somewhere.

Changed in xsane (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for xsane (Ubuntu) because there has been no activity for 60 days.]

Changed in xsane (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Risto Mononen (risto-mononen-deactivatedaccount) wrote :

Now xsane works in ubuntu 11.04. The crash was probably likelidue to config error, missing library or driver, or something like.

Changed in xsane (Ubuntu):
status: Expired → Invalid
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.