pdfgrep segfaults when using --unac
pdfgrep builds fine from the current HEAD, but segfault when I try to use --unac
:
$ gdb --args pdfgrep --unac 'pattern' test.pdf
GNU gdb (GDB) 8.3
Reading symbols from /usr/bin/pdfgrep...
(No debugging symbols found in /usr/bin/pdfgrep)
(gdb) r
Starting program: /usr/bin/pdfgrep --unac pattern test.pdf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7ae7141 in free () from /usr/lib/libc.so.6
(gdb) bt
#0 0x00007ffff7ae7141 in free () from /usr/lib/libc.so.6
#1 0x00007ffff7f6abda in unac_string () from /usr/lib/libunac.so.1
#2 0x000055555555abec in ?? ()
#3 0x000055555555aca7 in ?? ()
#4 0x000055555555a3e8 in ?? ()
#5 0x00007ffff7a85ce3 in __libc_start_main () from /usr/lib/libc.so.6
#6 0x000055555555a88e in ?? ()
Libunac is installed from the Arch Linux AUR, and provides, among other files, /usr/lib/libunac.so.1.0.8.
./configure --with-unac
showed no errors and indicates:
...
checking for unac... yes
...
I'm on Linux 5.1.7-arch.