FS#43022 - [sane] detecting scanners segfaults

Attached to Project: Arch Linux
Opened by Eric Abrahamsen (girzel) - Saturday, 06 December 2014, 04:46 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 29 December 2016, 07:52 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The scanimage command line program has been segfaulting for me for the past few days. I am able to scan, but not able to detect scanners.

I have a Canon LiDE 110 scanner, which worked up until recently. Now I get a segfault when using the --list-devices option, to show attached scanners.

The Xsane GUI program, and the Sane plugin for GIMP, likewise fail at the "detecting scanners" stage, presumably for the same reason.

I *can*, however, use the "sane-find-scanner" command to find the scanner, then construct the appropriate device string, feed it to scanimage via the --device-name argument, and scan successfully.

The only possibly-related recent change to my system that I can think of is that I installed the samsung-unified-driver package from AUR, which had some trickery related to needing both libtiff3 and libtiff4, and you had to do a little manual deleting of symlinks in /usr/lib. That could be a total red herring, though, it's just all I can think of.

local/sane 1.0.24-3
local/xsane 0.999-1
local/xsane-gimp 0.999-1

GDB backtrace (this is my first use of GDB, so please let me know if I'm doing something wrong):

(gdb) run -L
Starting program: /usr/bin/scanimage -L
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need set solib-search-path or set sysroot?
[Thread debugging using libthread_db enabled]
Using host libthread_db library /usr/lib/libthread_db.so.1.
[New Thread 0xb721bb40 (LWP 17699)]
[New Thread 0xb5ee6b40 (LWP 17712)]

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) backtrace
#0 0x00000000 in ?? ()
#1 0xb56d2f35 in discovery_response () from /usr/lib/sane/libsane-smfp.so.1
#2 0xb7a0bff2 in ?? () from /usr/lib/libnetsnmp.so.30
#3 0xb7a0c7f1 in _sess_read () from /usr/lib/libnetsnmp.so.30
#4 0xb7a0d59e in snmp_sess_read2 () from /usr/lib/libnetsnmp.so.30
#5 0xb7a0d5ea in snmp_read2 () from /usr/lib/libnetsnmp.so.30
#6 0xb7a0d639 in snmp_read () from /usr/lib/libnetsnmp.so.30
#7 0xb56d2617 in ?? () from /usr/lib/sane/libsane-smfp.so.1
#8 0xb56d29e2 in do_one_poll () from /usr/lib/sane/libsane-smfp.so.1
#9 0xb56d2b6c in discover_using_netsnmp ()
from /usr/lib/sane/libsane-smfp.so.1
#10 0xb56b00d5 in backend::get_devices(SANE_Device const***, int) ()
from /usr/lib/sane/libsane-smfp.so.1
#11 0xb56d2284 in sane_smfp_get_devices ()
from /usr/lib/sane/libsane-smfp.so.1
#12 0xb7f96b48 in sane_dll_get_devices () from /usr/lib/libsane.so.1
#13 0xb7f7f803 in sane_get_devices () from /usr/lib/libsane.so.1
#14 0x080494f0 in ?? ()
#15 0xb7dd9e5e in __libc_start_main () from /usr/lib/libc.so.6
#16 0x0804b4f5 in ?? ()


This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 29 December 2016, 07:52 GMT
Reason for closing:  Fixed
Comment by Eric Abrahamsen (girzel) - Wednesday, 17 December 2014, 01:56 GMT
This may be fixed: I no longer get a segfault, but scanimage -L does tell me:

[bjnp] create_broadcast_socket: bind socket to local address failed - Address already in use

It gives me that twice before correctly reporting all attached scanners.

Loading...