`scanimage --test` dumps core on illumos
sane-backends 1.0.28 on OpenIndiana 2019.04 (an illumos distribution) scanimage --test
dumps core in the first quarter of scanning. It used to happen in 1.0.27 as well.
I use Samsung SCX-3205 mono-laser printer/scanner: xerox_mfp:libusb:160:002
.
The actual scanning to PNM image works fine, just the test always crashes.
{global} newman@lenovo:~ $ scanimage --test --verbose
Output format is not set, using pnm as a default.
scanimage: scanning image of size 1274x1784 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 3822 bytes... PASS
scanimage: reading one byte... PASS
scanimage: stepped read, 2 bytes... PASS
scanimage: stepped read, 4 bytes... PASS
scanimage: stepped read, 8 bytes... PASS
scanimage: stepped read, 16 bytes... PASS
scanimage: stepped read, 32 bytes... PASS
scanimage: stepped read, 64 bytes... PASS
scanimage: stepped read, 128 bytes... PASS
scanimage: stepped read, 256 bytes... PASS
scanimage: stepped read, 512 bytes... PASS
scanimage: stepped read, 1024 bytes... PASS
scanimage: stepped read, 2048 bytes... PASS
scanimage: stepped read, 4096 bytes... PASS
scanimage: stepped read, 4095 bytes... PASS
scanimage: stepped read, 2047 bytes... PASS
scanimage: stepped read, 1023 bytes... PASS
scanimage: stepped read, 511 bytes... PASS
scanimage: stepped read, 255 bytes... PASS
scanimage: stepped read, 127 bytes... PASS
scanimage: stepped read, 63 bytes... PASS
scanimage: stepped read, 31 bytes... PASS
scanimage: stepped read, 15 bytes... PASS
scanimage: stepped read, 7 bytes... PASS
scanimage: stepped read, 3 bytes... PASS
Segmentation Fault (core dumped)
{global} newman@lenovo:~ $ mdb core
Loading modules: [ libc.so.1 ld.so.1 ]
> ::status
debugging core file of scanimage (32-bit) from lenovo
file: /usr/bin/scanimage
initial argv: scanimage --test --verbose
threading model: native threads
status: process terminated by SIGSEGV (Segmentation Fault), addr=0
> $C
08046d58 libc.so.1`memcpy+0x24(8071fb8, 0, 1, 0)
08046d78 libsane-xerox_mfp.so.1.0.28`usb_dev_close+0x9c(8071fb8, fedc71a2, 80f8068, fedc60da, fedd8000, 2)
08046d98 libsane.so.1.0.28`sane_dll_close+0x2e(80f8068, 1000000, 0, 80f8068)
08046db8 libsane.so.1.0.28`sane_close+0x1a(80f8068, 0, 0, 0)
08046dd8 scanimage_exit+0x3c(0, 810c018, 3, 80470e0, 0, 1)
080478f8 main+0x12be(80478fc, fef662e8, 8047938, 80525f7, 3, 8047968)
08047938 _start_crt+0x96(3, 8047968, fefcfed4, 0, 0, 0)
0804795c _start+0x1a(3, 8047ab4, 8047abe, 8047ac5, 0, 8047acf)