Package: simple-scan
Version: 2.31.1-1
Severity: important
Setup:
---------------
Server: Debian Squeeze running saned with an HP CM1312 MFP.
Client: Debian Squeeze running simple-scan.
Scanning with scanimage works on the sever and the client.
When I do a the first scan request with simple-scan I get an error that
it can't connect, when I do a second request it crashes with a floating
point exception. Fully reproducible. The scanner starts scanning after
the second request.
si...@beutelteufel:~$ scanimage -L
device
`net:192.168.0.1:hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB884HGPZ'
is a Hewlett-Packard HP_Color_LaserJet_CM1312_MFP all-in-one
si...@beutelteufel:~$ simple-scan -d
** (simple-scan:5129): DEBUG: Starting Simple Scan 2.31.1, PID=5129
** (simple-scan:5129): DEBUG: Restoring window to 600x400 pixels
** (simple-scan:5129): DEBUG: sane_init () -> SANE_STATUS_GOOD
** (simple-scan:5129): DEBUG: SANE version 1.0.21
** (simple-scan:5129): DEBUG: Requesting redetection of scan devices
** (simple-scan:5129): DEBUG: Processing request
** (simple-scan:5129): DEBUG: Requesting scan at 150 dpi from device
'(null)'
** (simple-scan:5129): DEBUG: scanner_scan ("(null)", 150, SCAN_SINGLE)
** (simple-scan:5129): DEBUG: sane_get_devices () -> SANE_STATUS_GOOD
** (simple-scan:5129): DEBUG: Device:
name="net:192.168.0.1:hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB884HGPZ"
vendor="Hewlett-Packard" model="HP_Color_LaserJet_CM1312_MFP"
type="all-in-one"
** (simple-scan:5129): DEBUG: Processing request
** (simple-scan:5129): DEBUG: sane_open
("net:192.168.0.1:hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB884HGPZ")
-> SANE_STATUS_IO_ERROR
** (simple-scan:5129): WARNING **: Unable to get open device: Error
during device I/O
** (simple-scan:5129): DEBUG: Requesting scan at 150 dpi from device
'net:192.168.0.1:hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB884HGPZ'
** (simple-scan:5129): DEBUG: scanner_scan
("net:192.168.0.1:hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB884HGPZ",
150, SCAN_SINGLE)
** (simple-scan:5129): DEBUG: Processing request
** (simple-scan:5129): DEBUG: sane_open
("net:192.168.0.1:hpaio:/usb/HP_Color_LaserJet_CM1312_MFP?serial=00CNB884HGPZ")
-> SANE_STATUS_GOOD
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (0)
** (simple-scan:5129): DEBUG: Option 0: name='option-cnt' title='Number
of options' type=int size=4 cap=soft-detect
** (simple-scan:5129): DEBUG: Description: Read-only option that
specifies how many options a specific devices supports.
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (1)
** (simple-scan:5129): DEBUG: Option 1: name='mode-group' title='Scan
mode' type=group size=0
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (2)
** (simple-scan:5129): DEBUG: Option 2: name='mode' title='Scan mode'
type=string size=32 values=["Lineart", "Gray", "Color"]
cap=soft-select,soft-detect
** (simple-scan:5129): DEBUG: Description: Selects the scan mode
(e.g., lineart, monochrome, or color).
** (simple-scan:5129): DEBUG: sane_control_option (2,
SANE_ACTION_SET_VALUE, "Lineart") -> (SANE_STATUS_GOOD, "Lineart")
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (3)
** (simple-scan:5129): DEBUG: Option 3: name='resolution' title='Scan
resolution' type=int size=4 unit=dpi values=[75, 100, 150, 200, 300,
600, 1200] cap=soft-select,soft-detect
** (simple-scan:5129): DEBUG: Description: Sets the resolution of the
scanned image.
** (simple-scan:5129): DEBUG: sane_control_option (3,
SANE_ACTION_SET_VALUE, 150) -> (SANE_STATUS_GOOD, 150)
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (4)
** (simple-scan:5129): DEBUG: Option 4: name='source' title='Scan
source' type=string size=32 values=["Flatbed"] cap=soft-select,soft-detect
** (simple-scan:5129): DEBUG: Description: Selects the scan source
(such as a document-feeder).
** (simple-scan:5129): DEBUG: sane_control_option (4,
SANE_ACTION_SET_VALUE, "Flatbed") -> (SANE_STATUS_GOOD, "Flatbed")
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (5)
** (simple-scan:5129): DEBUG: Option 5: name='advanced-group'
title='Advanced' type=group size=0 cap=advanced
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (6)
** (simple-scan:5129): DEBUG: Option 6: name='contrast' title='Contrast'
type=int size=4 min=-127, max=127, quant=0
cap=soft-select,soft-detect,advanced
** (simple-scan:5129): DEBUG: Description: Controls the contrast of
the acquired image.
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (7)
** (simple-scan:5129): DEBUG: Option 7: name='compression'
title='Compression' type=string size=32 values=["None", "JPEG"]
cap=soft-select,soft-detect,advanced
** (simple-scan:5129): DEBUG: Description: Selects the scanner
compression method for faster scans, possibly at the expense of image
quality.
** (simple-scan:5129): DEBUG: sane_control_option (7,
SANE_ACTION_SET_VALUE, "None") -> (SANE_STATUS_GOOD, "None")
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (8)
** (simple-scan:5129): DEBUG: Option 8: name='jpeg-quality' title='JPEG
compression factor' type=int size=4 min=0, max=100, quant=0
cap=soft-select,soft-detect,inactive,advanced
** (simple-scan:5129): DEBUG: Description: Sets the scanner JPEG
compression factor. Larger numbers mean better compression, and smaller
numbers mean better image quality.
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (9)
** (simple-scan:5129): DEBUG: Option 9: name='geometry-group'
title='Geometry' type=group size=0 cap=advanced
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (10)
** (simple-scan:5129): DEBUG: Option 10: name='tl-x' title='Top-left x'
type=fixed size=4 unit=mm min=0.000000, max=215.899994, quant=0
cap=soft-select,soft-detect
** (simple-scan:5129): DEBUG: Description: Top-left x position of scan
area.
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (11)
** (simple-scan:5129): DEBUG: Option 11: name='tl-y' title='Top-left y'
type=fixed size=4 unit=mm min=0.000000, max=296.925995, quant=0
cap=soft-select,soft-detect
** (simple-scan:5129): DEBUG: Description: Top-left y position of scan
area.
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (12)
** (simple-scan:5129): DEBUG: Option 12: name='br-x' title='Bottom-right
x' type=fixed size=4 unit=mm min=0.000000, max=215.899994, quant=0
cap=soft-select,soft-detect
** (simple-scan:5129): DEBUG: Description: Bottom-right x position of
scan area.
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (13)
** (simple-scan:5129): DEBUG: Option 13: name='br-y' title='Bottom-right
y' type=fixed size=4 unit=mm min=0.000000, max=296.925995, quant=0
cap=soft-select,soft-detect
** (simple-scan:5129): DEBUG: Description: Bottom-right y position of
scan area.
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (14)
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (12)
** (simple-scan:5129): DEBUG: sane_control_option (12,
SANE_ACTION_SET_VALUE, 215.899994) -> (SANE_STATUS_GOOD, 215.899994)
** (simple-scan:5129): DEBUG: sane_get_option_descriptor (13)
** (simple-scan:5129): DEBUG: sane_control_option (13,
SANE_ACTION_SET_VALUE, 296.925995) -> (SANE_STATUS_GOOD, 296.925995)
** (simple-scan:5129): DEBUG: sane_start (page=0, pass=0) ->
SANE_STATUS_GOOD
** (simple-scan:5129): DEBUG: sane_get_parameters () -> SANE_STATUS_GOOD
** (simple-scan:5129): DEBUG: Parameters: format=SANE_FRAME_GRAY
last_frame=SANE_TRUE bytes_per_line=0 pixels_per_line=0 lines=0 depth=1
** (simple-scan:5129): DEBUG: sane_read (1) -> (SANE_STATUS_GOOD, 1)
Floating point exception
--- System information. ---
Architecture: amd64
Kernel: Linux 2.6.32-3-amd64
Debian Release: squeeze/sid
900 testing security.debian.org
900 testing mirror.switch.ch
800 unstable mirror.switch.ch
700 experimental mirror.switch.ch
--- Package information. ---
Depends (Version) | Installed
==================================-+-==============
libc6 (>= 2.2.5) | 2.10.2-6
libcairo2 (>= 1.6.0) | 1.8.10-4
libdbus-glib-1-2 (>= 0.78) | 0.86-1
libgconf2-4 (>= 2.27.0) | 2.28.1-3
libglib2.0-0 (>= 2.16.0) | 2.24.1-1
libgtk2.0-0 (>= 2.18.0) | 2.20.1-1
libgudev-1.0-0 (>= 146) | 154-1
libsane (>= 1.0.11-3) | 1.0.21-1
gnome-icon-theme | 2.30.2.1-1
xdg-utils | 1.0.2+cvs20100307-1
gconf2 (>= 2.28.1-2) | 2.28.1-3
Recommends (Version) | Installed
==========================-+-===========
imagemagick | 7:6.6.0.4-2
Package's Suggests field is empty.
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/simple-scan...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/simple-scan
[Thread debugging using libthread_db enabled]
[New Thread 0x7fffeb426910 (LWP 4748)]
[New Thread 0x7fffdc865910 (LWP 4749)]
** (simple-scan:4745): WARNING **: Unable to get open device: Error during
device I/O
Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x7fffeb426910 (LWP 4748)]
0x00000000004147e4 in ?? ()
(gdb)
(gdb)
(gdb) bt full
#0 0x00000000004147e4 in ?? ()
No symbol table info available.
#1 0x00007ffff5c046e4 in g_thread_create_proxy (data=0x7e0fc0)
at /tmp/buildd/glib2.0-2.24.1/glib/gthread.c:1893
__PRETTY_FUNCTION__ = "g_thread_create_proxy"
#2 0x00007ffff64d173a in start_thread (arg=<value optimized out>)
at pthread_create.c:300
__res = <value optimized out>
pd = 0x7fffeb426910
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737140386064,
-2127982294384939506, 140737488347552, 0, 140737354129472, 3,
2128010079285112334, 2127968392913448462},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <value optimized out>
#3 0x00007ffff570d69d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
No locals.
#4 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb) thread apply all backtrace
Thread 3 (Thread 0x7fffdc865910 (LWP 4749)):
#0 0x00007ffff5702743 in *__GI___poll (fds=<value optimized out>,
nfds=<value optimized out>, timeout=-1)
at ../sysdeps/unix/sysv/linux/poll.c:87
#1 0x00007fffdca7eb6a in ?? () from /usr/lib/libavahi-common.so.3
#2 0x00007fffdca7d6be in avahi_simple_poll_run ()
from /usr/lib/libavahi-common.so.3
#3 0x00007fffdca7de3d in avahi_simple_poll_iterate ()
from /usr/lib/libavahi-common.so.3
#4 0x00007fffdca7de6d in avahi_simple_poll_loop ()
from /usr/lib/libavahi-common.so.3
#5 0x00007fffdca7e9bc in ?? () from /usr/lib/libavahi-common.so.3
#6 0x00007ffff64d173a in start_thread (arg=<value optimized out>)
at pthread_create.c:300
#7 0x00007ffff570d69d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8 0x0000000000000000 in ?? ()
Thread 2 (Thread 0x7fffeb426910 (LWP 4748)):
#0 0x00000000004147e4 in ?? ()
#1 0x00007ffff5c046e4 in g_thread_create_proxy (data=0x7e0fc0)
at /tmp/buildd/glib2.0-2.24.1/glib/gthread.c:1893
#2 0x00007ffff64d173a in start_thread (arg=<value optimized out>)
at pthread_create.c:300
#3 0x00007ffff570d69d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7ffff7fc5790 (LWP 4745)):
#0 0x00007ffff5709fc7 in munmap () from /lib/libc.so.6
#1 0x00007ffff56b406c in munmap_chunk (p=0x7fffe802f000) at malloc.c:3548
#2 0x00007ffff6e0d067 in ?? () from /usr/lib/libgdk_pixbuf-2.0.so.0
#3 0x00007ffff608c444 in IA__g_object_unref (_object=<value optimized out>)
at /tmp/buildd/glib2.0-2.24.1/gobject/gobject.c:2484
#4 0x000000000040d990 in page_set_scan_area ()
#5 0x00000000004111dc in ?? ()
#6 0x00007ffff608a47e in IA__g_closure_invoke (closure=0x79c1c0,
return_value=0x0, n_param_values=2, param_values=0x7abf90,
invocation_hint=0x7fffffffddf0)
at /tmp/buildd/glib2.0-2.24.1/gobject/gclosure.c:767
#7 0x00007ffff60a03f7 in signal_emit_unlocked_R (node=0x6e3200,
detail=<value optimized out>, instance=<value optimized out>,
emission_return=<value optimized out>,
instance_and_params=<value optimized out>)
at /tmp/buildd/glib2.0-2.24.1/gobject/gsignal.c:3248
#8 0x00007ffff60a1a76 in IA__g_signal_emit_valist (instance=0x789380,
signal_id=<value optimized out>, detail=0, var_args=0x7fffffffdfe0)
at /tmp/buildd/glib2.0-2.24.1/gobject/gsignal.c:2981
#9 0x00007ffff60a1fc3 in IA__g_signal_emit (instance=0x7fffe802f000,
signal_id=1507328, detail=3893882880)
at /tmp/buildd/glib2.0-2.24.1/gobject/gsignal.c:3038
#10 0x0000000000411f75 in ?? ()
#11 0x00007ffff5bdb6c2 in g_main_dispatch (context=0x65d490)
at /tmp/buildd/glib2.0-2.24.1/glib/gmain.c:1960
#12 IA__g_main_context_dispatch (context=0x65d490)
at /tmp/buildd/glib2.0-2.24.1/glib/gmain.c:2513
#13 0x00007ffff5bdf538 in g_main_context_iterate (context=0x65d490,
block=<value optimized out>, dispatch=<value optimized out>,
self=<value optimized out>) at /tmp/buildd/glib2.0-2.24.1/glib/gmain.c:2591
#14 0x00007ffff5bdfa45 in IA__g_main_loop_run (loop=0x7a9be0)
at /tmp/buildd/glib2.0-2.24.1/glib/gmain.c:2799
#15 0x00007ffff78fc647 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#16 0x0000000000410e24 in main ()
(gdb)