Hello Bernhard,

> I am not sure anymore if the error I received is the same you got.
> Therefore, if you can still reproduce this issue, can you please
> run pdfsig inside a debugger like below and forward the output to
> this bug? You would at least need to install the package 'gdb'.
> 
>    gdb -q -ex 'set width 0' -ex 'set pagination off' -ex 'run' -ex 'display/i 
> $pc'
>    -ex 'bt' -ex 'detach' -ex 'quit' --args pdfsig ~/Downloads/bar.pdf

If I run this I get:

$ gdb -q -ex 'set width 0' -ex 'set pagination off' -ex 'run' -ex 'display/i 
$pc' -ex 'bt' -ex 'detach' -ex 'quit' --args /usr/bin/pdfsig bar.pdf
Reading symbols from /usr/bin/pdfsig...(no debugging symbols found)...done.
Starting program: /usr/bin/pdfsig bar.pdf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Digital Signature Info of: bar.pdf
Internal Error (0): Input couldn't be parsed as a CMS signature
Program received signal SIGSEGV, Segmentation fault.
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
65      ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
1: x/i $pc
=> 0x7ffff7ad54f1 <__strlen_avx2+17>:   vpcmpeqb (%rdi),%ymm0,%ymm1
#0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
#1  0x00007ffff7a00fee in __GI___strdup (s=0x0) at strdup.c:41
#2  0x00007ffff7e6840d in SignatureInfo::setSubjectDN(char const*) () from 
/usr/lib/x86_64-linux-gnu/libpoppler.so.82
#3  0x00007ffff7dd8e19 in FormFieldSignature::validateSignature(bool, bool, 
long) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.82
#4  0x0000555555556a5d in main ()
Detaching from program: /usr/bin/pdfsig, process 31855
[Inferior 1 (process 31855) detached]

$ gdb --args /usr/bin/pdfsig bar.pdf
GNU gdb (Debian 8.2.1-2) 8.2.1
Copyright (C) 2018 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
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 /usr/bin/pdfsig...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/pdfsig bar.pdf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Digital Signature Info of: bar.pdf
Internal Error (0): Input couldn't be parsed as a CMS signature
Program received signal SIGSEGV, Segmentation fault.
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
65      ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
(gdb) bt
#0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
#1  0x00007ffff7a00fee in __GI___strdup (s=0x0) at strdup.c:41
#2  0x00007ffff7e6840d in SignatureInfo::setSubjectDN(char const*) () from 
/usr/lib/x86_64-linux-gnu/libpoppler.so.82
#3  0x00007ffff7dd8e19 in FormFieldSignature::validateSignature(bool, bool, 
long) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.82
#4  0x0000555555556a5d in main ()
(gdb) bt full
#0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:65
No locals.
#1  0x00007ffff7a00fee in __GI___strdup (s=0x0) at strdup.c:41
len = <optimized out>
new = <optimized out>
#2  0x00007ffff7e6840d in SignatureInfo::setSubjectDN(char const*) () from 
/usr/lib/x86_64-linux-gnu/libpoppler.so.82
No symbol table info available.
#3  0x00007ffff7dd8e19 in FormFieldSignature::validateSignature(bool, bool, 
long) () from /usr/lib/x86_64-linux-gnu/libpoppler.so.82
No symbol table info available.
#4  0x0000555555556a5d in main ()
No symbol table info available.
(gdb) quit
A debugging session is active.
Inferior 1 [process 30895] will be killed.
Quit anyway? (y or n) y

HTH,
Wesley

Reply via email to