1 |
Hello all, |
2 |
|
3 |
Lexmark provides Linux Drivers for their Scanners/MFPs as RPM and Deb |
4 |
packages. I was able to install the drivers on Gentoo (in a similar way |
5 |
described in the Gentoo Wiki for Brother devices: |
6 |
https://wiki.gentoo.org/wiki/Brother_networked_printer#Alternative:_rpm_installation |
7 |
and in the Arch Linux Wiki: |
8 |
https://wiki.archlinux.org/index.php/SANE/Scanner-specific_problems#Lexmark) |
9 |
|
10 |
|
11 |
scanimage finds the the driver and tries using it, but then Segfaults: |
12 |
|
13 |
# SANE_DEBUG_DLL=4 scanimage -L |
14 |
[sanei_debug] Setting debug level of dll to 4. |
15 |
[dll] sane_init: SANE dll backend version 1.0.13 from sane-backends 1.0.27 |
16 |
[dll] sane_init/read_dlld: attempting to open directory `./dll.d' |
17 |
[dll] sane_init/read_dlld: attempting to open directory `/etc/sane.d/dll.d' |
18 |
[dll] sane_init/read_dlld: using config directory `/etc/sane.d/dll.d' |
19 |
[dll] add_backend: adding backend `lexmark_nscan' |
20 |
[dll] sane_get_devices |
21 |
[dll] load: searching backend `lexmark_nscan' in `/usr/lib:/usr/lib64/sane' |
22 |
[dll] load: trying to load `/usr/lib/libsane-lexmark_nscan.so.1' |
23 |
[dll] load: couldn't open `/usr/lib/libsane-lexmark_nscan.so.1' (No such |
24 |
file or directory) |
25 |
[dll] load: trying to load `/usr/lib64/sane/libsane-lexmark_nscan.so.1' |
26 |
[dll] load: dlopen()ing `/usr/lib64/sane/libsane-lexmark_nscan.so.1' |
27 |
[dll] init: initializing backend `lexmark_nscan' |
28 |
[dll] init: backend `lexmark_nscan' is version 1.0.1 |
29 |
Speicherzugriffsfehler (Speicherabzug geschrieben) |
30 |
|
31 |
GDB shows the following: |
32 |
|
33 |
Copyright (C) 2019 Free Software Foundation, Inc. |
34 |
License GPLv3+: GNU GPL version 3 or later |
35 |
<http://gnu.org/licenses/gpl.html> |
36 |
This is free software: you are free to change and redistribute it. |
37 |
There is NO WARRANTY, to the extent permitted by law. |
38 |
Type "show copying" and "show warranty" for details. |
39 |
This GDB was configured as "x86_64-pc-linux-gnu". |
40 |
Type "show configuration" for configuration details. |
41 |
For bug reporting instructions, please see: |
42 |
<https://bugs.gentoo.org/>. |
43 |
Find the GDB manual and other documentation resources online at: |
44 |
<http://www.gnu.org/software/gdb/documentation/>. |
45 |
|
46 |
For help, type "help". |
47 |
Type "apropos word" to search for commands related to "word"... |
48 |
Reading symbols from scanimage... |
49 |
Reading symbols from /usr/lib/debug//usr/bin/scanimage.debug... |
50 |
(gdb) r |
51 |
Starting program: /usr/bin/scanimage -L |
52 |
[Thread debugging using libthread_db enabled] |
53 |
Using host libthread_db library "/lib64/libthread_db.so.1". |
54 |
|
55 |
Program received signal SIGSEGV, Segmentation fault. |
56 |
0x00007ffff755b94e in IOComm::getScanners(char***, int*, void*) () from |
57 |
/usr/lib64/sane/libsane-lexmark_nscan.so.1 |
58 |
(gdb) where |
59 |
#0 0x00007ffff755b94e in IOComm::getScanners(char***, int*, void*) () |
60 |
from /usr/lib64/sane/libsane-lexmark_nscan.so.1 |
61 |
#1 0x00007ffff75718f1 in Device::getScanners(char***, int*, void*, int, |
62 |
char const*) () from /usr/lib64/sane/libsane-lexmark_nscan.so.1 |
63 |
#2 0x00007ffff75712ed in Device::getScanners(char***, int*, void*, int) |
64 |
() from /usr/lib64/sane/libsane-lexmark_nscan.so.1 |
65 |
#3 0x00007ffff7571145 in Device::getScanners(char***, int*, void*) () |
66 |
from /usr/lib64/sane/libsane-lexmark_nscan.so.1 |
67 |
#4 0x00007ffff757af32 in ScanLib::GetScanners(char***, int*) () from |
68 |
/usr/lib64/sane/libsane-lexmark_nscan.so.1 |
69 |
#5 0x00007ffff7582937 in sane_ScanLib_get_devices(SANE_Device const***, |
70 |
int) () from /usr/lib64/sane/libsane-lexmark_nscan.so.1 |
71 |
#6 0x00007ffff7591250 in sane_lexmark_nscan_get_devices () from |
72 |
/usr/lib64/sane/libsane-lexmark_nscan.so.1 |
73 |
#7 0x00007ffff7f75b36 in sane_dll_get_devices |
74 |
(device_list=0x7fffffffba78, local_only=0) at |
75 |
/var/tmp/portage/media-gfx/sane-backends-1.0.27-r3/work/sane-backends-1.0.27/backend/dll.c:1081 |
76 |
#8 0x00005555555566fb in main (argc=2, argv=0x7fffffffdec8) at |
77 |
/var/tmp/portage/media-gfx/sane-backends-1.0.27-r3/work/sane-backends-1.0.27/frontend/scanimage.c:2102 |
78 |
|
79 |
Does anyone have idea whats wrong. Is the driver from Lexmark simply |
80 |
faulty/not compatible with some libraries? |
81 |
|
82 |
Best regards |
83 |
|
84 |
Jens |