% gdb --args  scanimage -L                                                                                                                                                                                                                              (12:00 15.10.19)(1)
GNU gdb (Gentoo 8.3 vanilla) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from scanimage...
(No debugging symbols found in scanimage)
(gdb) run
Starting program: /usr/bin/scanimage -L
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff77cb95b in __pthread_initialize_minimal () from /lib64/libpthread.so.0
(gdb) bt
#0  0x00007ffff77cb95b in __pthread_initialize_minimal () from /lib64/libpthread.so.0
#1  0x00007ffff77cb009 in _init () from /lib64/libpthread.so.0
#2  0x00007ffff7fa3a80 in ?? () from /usr/lib64/sane/libsane-hpaio.so.1
#3  0x00007ffff7fe27fa in ?? () from /lib64/ld-linux-x86-64.so.2
#4  0x00007ffff7fe29a6 in ?? () from /lib64/ld-linux-x86-64.so.2
#5  0x00007ffff7fe6853 in ?? () from /lib64/ld-linux-x86-64.so.2
#6  0x00007ffff7c25f4f in _dl_catch_exception () from /lib64/libc.so.6
#7  0x00007ffff7fe610a in ?? () from /lib64/ld-linux-x86-64.so.2
#8  0x00007ffff7adb29a in ?? () from /lib64/libdl.so.2
#9  0x00007ffff7c25f4f in _dl_catch_exception () from /lib64/libc.so.6
#10 0x00007ffff7c25fef in _dl_catch_error () from /lib64/libc.so.6
#11 0x00007ffff7adbafd in ?? () from /lib64/libdl.so.2
#12 0x00007ffff7adb346 in dlopen () from /lib64/libdl.so.2
#13 0x00007ffff7f6ff4e in ?? () from /usr/lib64/libsane.so.1
#14 0x00007ffff7f70244 in ?? () from /usr/lib64/libsane.so.1
#15 0x00007ffff7f70d1c in sane_dll_get_devices () from /usr/lib64/libsane.so.1
#16 0x00005555555568c1 in ?? ()
#17 0x00007ffff7b03edb in __libc_start_main () from /lib64/libc.so.6
#18 0x0000555555558eca in ?? ()
(gdb) quit
A debugging session is active.

        Inferior 1 [process 9426] will be killed.

Quit anyway? (y or n) y
