On Tue, 2022-08-23 at 22:48 +0100, Barry wrote:
> On 23 Aug 2022, at 12:51, Patrick O'Callaghan
> <pocallaghan(a)gmail.com> wrote:
>
> simple-scan, scanimage and xsane all getting this:
>
> $ scanimage
> Output format is not set, using pnm as a default.
> bugchk_free(ptr=(nil))(a)modelinf.c(464)
> Aborted (core dumped)
>
> Presumably it's from a library. Anyone else getting this? I don't
> see
> any reports on BZ.
Run it under gdb and when it crashes do “bt” to see what lib it is
in.
bugchk_free(ptr=(nil))(a)modelinf.c(464)
Thread 1 "scanimage" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
Downloading 0.00 MB source file /usr/src/debug/glibc-2.35-
15.fc36.x86_64/nptl/pthread_kill.c
44 return INTERNAL_SYSCALL_ERROR_P (ret) ?
INTERNAL_SYSCALL_ERRNO (ret) : 0;
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1 0x00007ffff7d4dcb3 in __pthread_kill_internal (signo=6,
threadid=<optimized out>) at pthread_kill.c:78
#2 0x00007ffff7cfd9c6 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#3 0x00007ffff7ce77f4 in __GI_abort () at abort.c:79
#4 0x00007ffff7817015 in bugchk_free () from /usr/lib64/sane/libsane-
brother4.so.1
#5 0x00007ffff7810a9b in exit_model_info () from
/usr/lib64/sane/libsane-brother4.so.1
#6 0x00007ffff78105a7 in init_model_info () from
/usr/lib64/sane/libsane-brother4.so.1
#7 0x00007ffff781aca8 in sane_brother4_init () from
/usr/lib64/sane/libsane-brother4.so.1
#8 0x00007ffff7f888a0 in init (be=be@entry=0x5555555697d0) at
/usr/src/debug/sane-backends-1.1.1-6.fc36.x86_64/backend/dll.c:653
#9 0x00007ffff7f8942b in sane_dll_get_devices
(device_list=device_list@entry=0x7fffffffaf68,
local_only=local_only@entry=0)
at /usr/src/debug/sane-backends-1.1.1-
6.fc36.x86_64/backend/dll.c:1095
#10 0x00007ffff7f894a9 in sane_get_devices (dl=dl@entry=0x7fffffffaf68,
local=local@entry=0) at /usr/src/debug/sane-backends-1.1.1-
6.fc36.x86_64/backend/dll-s.c:21
#11 0x0000555555559f7d in main (argc=<optimized out>,
argv=0x7fffffffd7f8) at /usr/src/debug/sane-backends-1.1.1-
6.fc36.x86_64/frontend/scanimage.c:2399
Looks like it's from brscan4-0.4.11-1.x86_64, which is a proprietary
part of the Brother scanner driver. That would explain why others
aren't seeing it.
I'm going to remove that and attempt to configure the opensource
driver. I did this not long ago but have recently installed a new all-
in-one printer/scanner, so that looks like the culprit.
poc