Package: libsane1
Version: 1.0.31-4

When I scan a document with simple-scan, which uses libsane1 in Debian Bullseye the application crashes with a segmentation fault when I slick the "scan" button.

I am using a HP, Inc ScanJet 4200c ( 03f0:0105 ) scanner.

I started simple-scan in gdb and got this backtrace:
-------------------
__memset_avx2_erms () at ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:151 Download failed: Invalid argument. Continuing without source file ./string/../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S. 151 ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: No such file or directory.
(gdb) bt
#0 __memset_avx2_erms () at ../sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S:151 #1 0x00007fffd9cb308f in memset (__len=1073217600, __ch=0, __dest=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/string_fortified.h:71 #2 do_fine_calibration (s=0x7fffd40e8850, coarse=0x7fffdb6009a0) at hp4200.c:1501
#3  0x0000000000000000 in  ()
(gdb) list *do_fine_calibration
0x7fffd9cb2cb0 is in do_fine_calibration (hp4200.c:1366).
Download failed: Invalid argument. Continuing without source file ./backend/hp4200.c.
1361    hp4200.c: No such file or directory.
(gdb) q
-------------------

I applied this patch to libsane1 and then the bug was gone and scanning was working again:
https://gitlab.com/sane-project/backends/-/commit/acc5ca499f67ed1c8c42242fcf87358e7968e71d

Hauke

Reply via email to