Bug 469044 - Crash when closing an PDF file with digital sign
Summary: Crash when closing an PDF file with digital sign
Status: RESOLVED DUPLICATE of bug 457234
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 22.12.3
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-04-27 10:45 UTC by SzzS
Modified: 2023-05-11 11:48 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (4.00 KB, text/plain)
2023-05-11 11:46 UTC, Alexander Minges
Details
New crash information added by DrKonqi (4.01 KB, text/plain)
2023-05-11 11:48 UTC, Alexander Minges
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SzzS 2023-04-27 10:45:00 UTC
Application: okular (22.12.3)

Qt Version: 5.15.8
Frameworks Version: 5.104.0
Operating System: Linux 6.1.25-1-MANJARO x86_64
Windowing System: X11
Distribution: Manjaro Linux
DrKonqi: 5.27.4 [KCrashBackend]

-- Information about the crash:
Okular crashes when closing a PDF file with a digital signature.

The crash can be reproduced every time.

-- Backtrace:
Application: Okular (okular), signal: Segmentation fault

[KCrash Handler]
#4  nssCertificate_Destroy.isra.0 (c=0x6e657559206d694c) at ../../lib/pki/certificate.c:97
#5  0x00007f548e38e0e9 in pkix_pl_Cert_Destroy (object=0x5644e4afc948, plContext=0x5644e497dd50) at ../../lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.c:1167
#6  0x00007f548e3a291b in PKIX_PL_Object_DecRef (object=0x5644e4afc948, plContext=0x5644e497dd50) at ../../lib/libpkix/pkix_pl_nss/system/pkix_pl_object.c:891
#7  0x00007f548e371343 in pkix_List_Destroy (object=0x5644e4aee5d8, plContext=0x5644e497dd50) at ../../lib/libpkix/pkix/util/pkix_list.c:89
#8  0x00007f548e3a291b in PKIX_PL_Object_DecRef (object=0x5644e4aee5d8, plContext=0x5644e497dd50) at ../../lib/libpkix/pkix_pl_nss/system/pkix_pl_object.c:891
#9  0x00007f548e371390 in pkix_List_Destroy (object=0x5644e4e346f8, plContext=0x5644e497dd50) at ../../lib/libpkix/pkix/util/pkix_list.c:93
#10 0x00007f548e3a291b in PKIX_PL_Object_DecRef (object=0x5644e4e346f8, plContext=0x5644e497dd50) at ../../lib/libpkix/pkix_pl_nss/system/pkix_pl_object.c:891
#11 0x00007f548e35be7c in pkix_BuildResult_Destroy (object=0x5644e4b03ed8, plContext=0x5644e497dd50) at ../../lib/libpkix/pkix/results/pkix_buildresult.c:36
#12 0x00007f548e3a291b in PKIX_PL_Object_DecRef (object=0x5644e4b03ed8, plContext=0x5644e497dd50) at ../../lib/libpkix/pkix_pl_nss/system/pkix_pl_object.c:891
#13 0x00007f548e371343 in pkix_List_Destroy (object=0x5644e4aadf78, plContext=0x5644e497dd50) at ../../lib/libpkix/pkix/util/pkix_list.c:89
#14 0x00007f548e3a291b in PKIX_PL_Object_DecRef (object=0x5644e4aadf78, plContext=0x5644e497dd50) at ../../lib/libpkix/pkix_pl_nss/system/pkix_pl_object.c:891
#15 0x00007f548e371390 in pkix_List_Destroy (object=0x5644e4aa88c8, plContext=0x5644e497dd50) at ../../lib/libpkix/pkix/util/pkix_list.c:93
#16 0x00007f548e3a291b in PKIX_PL_Object_DecRef (object=0x5644e4aa88c8, plContext=plContext@entry=0x5644e497dd50) at ../../lib/libpkix/pkix_pl_nss/system/pkix_pl_object.c:891
#17 0x00007f548e3a39f1 in pkix_pl_HashTable_Destroy (object=0x5644e497e968, plContext=0x5644e497dd50) at ../../lib/libpkix/pkix_pl_nss/system/pkix_pl_hashtable.c:77
#18 0x00007f548e3a291b in PKIX_PL_Object_DecRef (object=0x5644e497e968, plContext=0x5644e497dd50) at ../../lib/libpkix/pkix_pl_nss/system/pkix_pl_object.c:891
#19 0x00007f548e3b8b5c in PKIX_Shutdown.isra.0 (plContext=0x5644e497dd50) at ../../lib/libpkix/pkix/top/pkix_lifecycle.c:186
#20 0x00007f548e2e92e0 in nss_Shutdown () at ../../lib/nss/nssinit.c:1157
#21 0x00007f548e2ea0e1 in NSS_Shutdown () at ../../lib/nss/nssinit.c:1221
#22 NSS_Shutdown () at ../../lib/nss/nssinit.c:1200
#23 0x00007f548e66a15e in shutdownNss () at /usr/src/debug/poppler/poppler-23.03.0/poppler/SignatureHandler.cc:269
#24 0x00007f54a4a53445 in __run_exit_handlers (status=0, listp=0x7f54a4bf0660 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108
#25 0x00007f54a4a535b0 in __GI_exit (status=<optimized out>) at exit.c:138
#26 0x00007f54a4a3b797 in __libc_start_call_main (main=main@entry=0x5644e2161080, argc=argc@entry=2, argv=argv@entry=0x7ffd2bad3848) at ../sysdeps/nptl/libc_start_call_main.h:74
#27 0x00007f54a4a3b84a in __libc_start_main_impl (main=0x5644e2161080, argc=2, argv=0x7ffd2bad3848, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd2bad3838) at ../csu/libc-start.c:360
#28 0x00005644e2163445 in ?? ()
[Inferior 1 (process 24491) detached]

The reporter indicates this bug may be a duplicate of or related to bug 466621.

Reported using DrKonqi
Comment 1 Oliver Sander 2023-04-27 12:21:36 UTC
Can you try this with a very new poppler and Okular?  The signature code is being worked on and your problem may have been fixed already.

Also, does this happen with every document with a signature?

Can you share such a document?
Comment 2 Albert Astals Cid 2023-04-27 21:58:24 UTC
This is just the typical NSS_Shutdown at exit isn't a great idea and needs to be fixed. We have several bugs about it.
Comment 3 Albert Astals Cid 2023-04-27 21:58:51 UTC

*** This bug has been marked as a duplicate of bug 457234 ***
Comment 4 Alexander Minges 2023-05-11 11:46:33 UTC
Created attachment 158855 [details]
New crash information added by DrKonqi

okular (23.04.0) using Qt 5.15.9

Crash occurs when closing okular after viewing a signed pdf document.

-- Backtrace (Reduced):
#6  nssCertificate_Destroy.isra.0 (c=0x438000000000) at ../../lib/pki/certificate.c:97
#7  0x00007f855695beca in pkix_pl_Cert_Destroy (object=0x564ec689f7e8, plContext=0x564ec6651190) at ../../lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.c:1167
#8  0x00007f855697662b in PKIX_PL_Object_DecRef (object=0x564ec689f7e8, plContext=0x564ec6651190) at ../../lib/libpkix/pkix_pl_nss/system/pkix_pl_object.c:891
#9  0x00007f855693e4b3 in pkix_List_Destroy (object=0x564ec6793b08, plContext=0x564ec6651190) at ../../lib/libpkix/pkix/util/pkix_list.c:89
#10 0x00007f855697662b in PKIX_PL_Object_DecRef (object=0x564ec6793b08, plContext=0x564ec6651190) at ../../lib/libpkix/pkix_pl_nss/system/pkix_pl_object.c:891
Comment 5 Alexander Minges 2023-05-11 11:48:38 UTC
Created attachment 158856 [details]
New crash information added by DrKonqi

okular (23.04.0) using Qt 5.15.9

Crash occurs when closing okular after viewing a digitally signed pdf document.

-- Backtrace (Reduced):
#6  nssCertificate_Destroy.isra.0 (c=0x95d746c5b) at ../../lib/pki/certificate.c:97
#7  0x00007f45f06bdeca in pkix_pl_Cert_Destroy (object=0x55f908d3a198, plContext=0x55f908aedbb0) at ../../lib/libpkix/pkix_pl_nss/pki/pkix_pl_cert.c:1167
#8  0x00007f45f06d862b in PKIX_PL_Object_DecRef (object=0x55f908d3a198, plContext=0x55f908aedbb0) at ../../lib/libpkix/pkix_pl_nss/system/pkix_pl_object.c:891
#9  0x00007f45f06a04b3 in pkix_List_Destroy (object=0x55f908c2cae8, plContext=0x55f908aedbb0) at ../../lib/libpkix/pkix/util/pkix_list.c:89
#10 0x00007f45f06d862b in PKIX_PL_Object_DecRef (object=0x55f908c2cae8, plContext=0x55f908aedbb0) at ../../lib/libpkix/pkix_pl_nss/system/pkix_pl_object.c:891