Hi!
A few month ago I changed my system from Slackware 7 to Debian 2.2.
Under Slackware I used my Mustek ScanExpress 12000 SP without problems, but
now (under Debian) I always get a Segmentation Fault error with any of the programs included
in the sane-package, if they try to access the scanner device /dev/sg2.
Nothing was changed of the hardware configuration!
My configuration:
- SCSI-adapter: AHA-2940U PCI
- Scanner: Mustek 12000-SP
- Linux: Debian 2.2 Potato
- Kernel: 2.2.17 (self-compiled with support for generic SCSI devices (32k buffer))
I tried it with:
- Sane 1.0.1 (included in Debian 2.2)
- Sane 1.0.3 (self-compiled)
- Sane 1.0.4 (self-compiled)
--> always the same: Segmentation fault
I don't know what to do, please help me.
Perhaps the strace-output of scanimage can help you to give me a hint how to solve the problem:
(I think it has something to do with the "inappropriate ioctl for device"-error at the end of the output)
------------------------------
# strace /usr/local/bin/scanimage
execve("/usr/local/bin/scanimage", ["/usr/local/bin/scanimage"], [/* 26 vars */]) = 0
brk(0) = 0x804fee8
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/i686/mmx/libsane.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/i686/mmx", 0xbffff504) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/i686/libsane.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/i686", 0xbffff504) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/mmx/libsane.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/local/lib/mmx", 0xbffff504) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/libsane.so.1", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=81981, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\27\0\000"..., 4096) = 4096
old_mmap(NULL, 19700, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40014000
mprotect(0x40018000, 3316, PROT_NONE) = 0
old_mmap(0x40018000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x3000) = 0x40018000
close(3) = 0
open("/usr/local/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt2/i686/mmx/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib/qt2/i686/mmx", 0xbffff4f4) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt2/i686/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib/qt2/i686", 0xbffff4f4) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt2/mmx/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib/qt2/mmx", 0xbffff4f4) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt2/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/usr/lib/qt2", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("i686/mmx/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("mmx/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.kde/lib/i686/mmx/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/root/.kde/lib/i686/mmx", 0xbffff4f4) = -1 ENOENT (No such file or directory)
open("/root/.kde/lib/i686/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/root/.kde/lib/i686", 0xbffff4f4) = -1 ENOENT (No such file or directory)
open("/root/.kde/lib/mmx/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/root/.kde/lib/mmx", 0xbffff4f4) = -1 ENOENT (No such file or directory)
open("/root/.kde/lib/libnsl.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/root/.kde/lib", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=19290, ...}) = 0
old_mmap(NULL, 19290, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40019000
close(3) = 0
open("/lib/libnsl.so.1", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=76080, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360?\0"..., 4096) = 4096
old_mmap(NULL, 88296, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001e000
mprotect(0x40030000, 14568, PROT_NONE) = 0
old_mmap(0x40030000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11000) = 0x40030000
old_mmap(0x40032000, 6376, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40032000
close(3) = 0
open("/usr/local/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt2/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/mmx/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("mmx/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.kde/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libm.so.6", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=116544, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220F\0"..., 4096) = 4096
old_mmap(NULL, 117720, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40034000
mprotect(0x40050000, 3032, PROT_NONE) = 0
old_mmap(0x40050000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1b000) = 0x40050000
close(3) = 0
open("/usr/local/lib/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt2/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/mmx/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
open("mmx/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
open("libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.kde/lib/libjpeg.so.62", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/libjpeg.so.62", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=126580, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200#\0"..., 4096) = 4096
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40051000
old_mmap(NULL, 129580, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40052000
mprotect(0x40071000, 2604, PROT_NONE) = 0
old_mmap(0x40071000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1e000) = 0x40071000
close(3) = 0
open("/usr/local/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt2/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/mmx/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("mmx/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.kde/lib/libdl.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=9372, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\310\34"..., 4096) = 4096
old_mmap(NULL, 12396, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40072000
mprotect(0x40074000, 4204, PROT_NONE) = 0
old_mmap(0x40074000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1000) = 0x40074000
close(3) = 0
open("/usr/local/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/qt2/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/mmx/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("i686/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("mmx/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/root/.kde/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=888596, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\244\213"..., 4096) = 4096
old_mmap(NULL, 902972, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40076000
mprotect(0x4014b000, 30524, PROT_NONE) = 0
old_mmap(0x4014b000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd4000) = 0x4014b000
old_mmap(0x4014f000, 14140, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4014f000
close(3) = 0
munmap(0x40019000, 19290) = 0
personality(PER_LINUX) = 0
getpid() = 28658
brk(0) = 0x804fee8
brk(0x804ff18) = 0x804ff18
brk(0x8050000) = 0x8050000
open("./dll.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/etc/sane.d/dll.conf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=313, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
read(3, "# enable the next line if you wa"..., 4096) = 313
brk(0x8051000) = 0x8051000
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40019000, 4096) = 0
open("./dll.aliases", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/etc/sane.d/dll.aliases", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/lib/sane/libsane-mustek.so.1", O_RDONLY) = 3
open("/usr/local/lib/sane/libsane-mustek.so.1", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0755, st_size=253081, ...}) = 0
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320$\0"..., 4096) = 4096
old_mmap(NULL, 94816, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x40153000
mprotect(0x40169000, 4704, PROT_NONE) = 0
old_mmap(0x40169000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4, 0x15000) = 0x40169000
close(4) = 0
open("./mustek.conf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/etc/sane.d/mustek.conf", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=1663, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40019000
read(4, "# See sane-mustek(5) for documen"..., 4096) = 1663
open("/proc/scsi/scsi", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000
read(5, "Attached devices: \nHost: scsi0 C"..., 1024) = 655
read(5, "", 1024) = 0
close(5) = 0
munmap(0x4001a000, 4096) = 0
open("/proc/scsi/scsi", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001a000
read(5, "Attached devices: \nHost: scsi0 C"..., 1024) = 655
open("/dev/sgc", O_RDWR) = -1 ENOENT (No such file or directory)
open("/dev/sg2", O_RDWR) = 6
close(6) = 0
open("/proc/sys/kernel/sg-big-buff", O_RDONLY) = 6
read(6, "32768\n", 31) = 6
close(6) = 0
open("/dev/sg2", O_RDWR|O_EXCL) = 6
ioctl(6, TIOCSCCINI, 0xbfffca88) = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(6, TIOCGKISS, 0x40169c60) = -1 ENOTTY (Inappropriate ioctl for device)
brk(0x8054000) = 0x8054000
rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
write(6, "*\0\0\0\204\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 42) = 42
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
select(7, [6], NULL, NULL, NULL) = 1 (in [6])
rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0
read(6, "", 132) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
------------------------------
THANKS IN ADVANCE!
Regards, Christoph.
-- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com
This archive was generated by hypermail 2b29 : Thu Feb 22 2001 - 17:41:05 PST