Bug#926404: /usr/bin/pdfsig: pdfsig: segfaults with "couldn't find default Firefox Folder"

Bernhard Reiter bernhard at intevation.de
Mon Apr 15 16:59:16 BST 2019

Hello Bernhard (√úbelacker),

thanks for your response!

| Is pdfsig on your system really not crashing if firefox is installed?

this is my guess, because I've looked into the code and for verification it gives
either a code path /etc/pki/nssdb or something in the personal profile to the nss library
used. I haven't yet tried if just installing Firefox is enough to create one of the both
needed path.

| Maybe you could run following command in a terminal to get a backtrace

Done, see below. Segfault as expected within libnss3.

Best Regards,

gdb -q -ex 'set width 0' -ex 'set pagination off' -ex 'run' -ex 'bt' -ex 'detach' -ex 'quit' --args pdfsig A_signed.pdf
Reading symbols from pdfsig...(no debugging symbols found)...done.
Starting program: /usr/bin/pdfsig A_signed.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: A_signed.pdf
Internal Error (0): couldn't find default Firefox Folder

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7321c84 in SECMOD_ReferenceModule () from /lib/x86_64-linux-gnu/libnss3.so
#0  0x00007ffff7321c84 in SECMOD_ReferenceModule () from /lib/x86_64-linux-gnu/libnss3.so
#1  0x00007ffff73221fc in ?? () from /lib/x86_64-linux-gnu/libnss3.so
#2  0x00007ffff73222a0 in SECMOD_AddNewModuleEx () from /lib/x86_64-linux-gnu/libnss3.so
#3  0x00007ffff7f01199 in SignatureHandler::SignatureHandler(unsigned char*, int) () 
from /lib/x86_64-linux-gnu/libpoppler.so.82
#4  0x00007ffff7dfbb16 in FormFieldSignature::validateSignature(bool, bool, long) () 
from /lib/x86_64-linux-gnu/libpoppler.so.82
#5  0x0000555555556a5d in main ()
Detaching from program: /usr/bin/pdfsig, process 1002
[Inferior 1 (process 1002) detached]

More information about the Pkg-freedesktop-maintainers mailing list