https://bugs.kde.org/show_bug.cgi?id=468713
Bug ID: 468713 Summary: segmentation fault error when opening certain PDF Classification: Applications Product: okular Version: 22.12.3 Platform: Manjaro OS: Linux Status: REPORTED Severity: crash Priority: NOR Component: PDF backend Assignee: okular-devel@kde.org Reporter: jmestreracl...@gmail.com Target Milestone: --- Created attachment 158228 --> https://bugs.kde.org/attachment.cgi?id=158228&action=edit The PDF I was trying to open. Seems like it's a PowerPoint file exported as PDF. SUMMARY `segmentation fault` error when opening certain PDF. I use `mupdf` backend Stacktrace: ``` 20/04/2023 8:19 PM systemd-coredump Process 25861 (okular) of user 1000 dumped core. Stack trace of thread 25861: #0 0x00007f781548b130 n/a (okularGenerator_mupdf.so + 0x8b130) #1 0x00007f781548c61b _ZN14MuPDFGenerator24generateDocumentSynopsisEv (okularGenerator_mupdf.so + 0x8c61b) #2 0x00007f782dd7b76d n/a (okularpart.so + 0x14376d) #3 0x00007f782d15f8ed _ZN6Okular8Document12openDocumentERK7QStringRK4QUrlRK9QMimeTypeS3_ (libOkular5Core.so.10 + 0x6f8ed) #4 0x00007f782dce56e5 _ZN6Okular4Part10doOpenFileERK9QMimeTypeRK7QStringPb (okularpart.so + 0xad6e5) #5 0x00007f782dce6f82 _ZN6Okular4Part8openFileEv (okularpart.so + 0xaef82) #6 0x00007f784b441cad n/a (libKF5Parts.so.5 + 0x29cad) #7 0x00007f784b446600 _ZN6KParts12ReadOnlyPart7openUrlERK4QUrl (libKF5Parts.so.5 + 0x2e600) #8 0x00007f782dce3add _ZN6Okular4Part7openUrlERK4QUrlb (okularpart.so + 0xabadd) #9 0x000055fa5c33b671 n/a (okular + 0x18671) #10 0x000055fa5c33daa6 n/a (okular + 0x1aaa6) #11 0x000055fa5c334d0e n/a (okular + 0x11d0e) #12 0x00007f784903b790 n/a (libc.so.6 + 0x23790) #13 0x00007f784903b84a __libc_start_main (libc.so.6 + 0x2384a) #14 0x000055fa5c335445 n/a (okular + 0x12445) Stack trace of thread 25865: #0 0x00007f784909a766 n/a (libc.so.6 + 0x82766) #1 0x00007f784909cf90 pthread_cond_wait (libc.so.6 + 0x84f90) #2 0x00007f783c8c254c n/a (radeonsi_dri.so + 0xc254c) #3 0x00007f783c90b96c n/a (radeonsi_dri.so + 0x10b96c) #4 0x00007f784909dbb5 n/a (libc.so.6 + 0x85bb5) #5 0x00007f784911fd90 n/a (libc.so.6 + 0x107d90) Stack trace of thread 25863: #0 0x00007f78491129df __poll (libc.so.6 + 0xfa9df) #1 0x00007f7849bdd26b n/a (libxcb.so.1 + 0xd26b) #2 0x00007f7849bded1d xcb_wait_for_event (libxcb.so.1 + 0xed1d) #3 0x00007f784492a252 n/a (libQt5XcbQpa.so.5 + 0x62252) #4 0x00007f78496e432a n/a (libQt5Core.so.5 + 0xe432a) #5 0x00007f784909dbb5 n/a (libc.so.6 + 0x85bb5) #6 0x00007f784911fd90 n/a (libc.so.6 + 0x107d90) Stack trace of thread 25862: #0 0x00007f78491129df __poll (libc.so.6 + 0xfa9df) #1 0x00007f784816717f n/a (libglib-2.0.so.0 + 0xb717f) #2 0x00007f78481091a2 g_main_context_iteration (libglib-2.0.so.0 + 0x591a2) #3 0x00007f78498d8c6c _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2d8c6c) #4 0x00007f78498866ec _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2866ec) #5 0x00007f78496e725f _ZN7QThread4execEv (libQt5Core.so.5 + 0xe725f) #6 0x00007f784ac2bcba n/a (libQt5DBus.so.5 + 0x23cba) #7 0x00007f78496e432a n/a (libQt5Core.so.5 + 0xe432a) #8 0x00007f784909dbb5 n/a (libc.so.6 + 0x85bb5) #9 0x00007f784911fd90 n/a (libc.so.6 + 0x107d90) Stack trace of thread 25864: #0 0x00007f784909a766 n/a (libc.so.6 + 0x82766) #1 0x00007f784909cf90 pthread_cond_wait (libc.so.6 + 0x84f90) #2 0x00007f783c8c254c n/a (radeonsi_dri.so + 0xc254c) #3 0x00007f783c90b96c n/a (radeonsi_dri.so + 0x10b96c) #4 0x00007f784909dbb5 n/a (libc.so.6 + 0x85bb5) #5 0x00007f784911fd90 n/a (libc.so.6 + 0x107d90) Stack trace of thread 25867: #0 0x00007f784909a766 n/a (libc.so.6 + 0x82766) #1 0x00007f784909cf90 pthread_cond_wait (libc.so.6 + 0x84f90) #2 0x00007f783c8c254c n/a (radeonsi_dri.so + 0xc254c) #3 0x00007f783c90b96c n/a (radeonsi_dri.so + 0x10b96c) #4 0x00007f784909dbb5 n/a (libc.so.6 + 0x85bb5) #5 0x00007f784911fd90 n/a (libc.so.6 + 0x107d90) Stack trace of thread 25870: #0 0x00007f784909a766 n/a (libc.so.6 + 0x82766) #1 0x00007f784909d294 pthread_cond_timedwait (libc.so.6 + 0x85294) #2 0x00007f78496eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754) #3 0x00007f78496e82f7 n/a (libQt5Core.so.5 + 0xe82f7) #4 0x00007f78496e432a n/a (libQt5Core.so.5 + 0xe432a) #5 0x00007f784909dbb5 n/a (libc.so.6 + 0x85bb5) #6 0x00007f784911fd90 n/a (libc.so.6 + 0x107d90) Stack trace of thread 25873: #0 0x00007f784909a766 n/a (libc.so.6 + 0x82766) #1 0x00007f784909d294 pthread_cond_timedwait (libc.so.6 + 0x85294) #2 0x00007f78496eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754) #3 0x00007f78496e82f7 n/a (libQt5Core.so.5 + 0xe82f7) #4 0x00007f78496e432a n/a (libQt5Core.so.5 + 0xe432a) #5 0x00007f784909dbb5 n/a (libc.so.6 + 0x85bb5) #6 0x00007f784911fd90 n/a (libc.so.6 + 0x107d90) Stack trace of thread 25872: #0 0x00007f784909a766 n/a (libc.so.6 + 0x82766) #1 0x00007f784909d294 pthread_cond_timedwait (libc.so.6 + 0x85294) #2 0x00007f78496eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754) #3 0x00007f78496e82f7 n/a (libQt5Core.so.5 + 0xe82f7) #4 0x00007f78496e432a n/a (libQt5Core.so.5 + 0xe432a) #5 0x00007f784909dbb5 n/a (libc.so.6 + 0x85bb5) #6 0x00007f784911fd90 n/a (libc.so.6 + 0x107d90) Stack trace of thread 25866: #0 0x00007f784909a766 n/a (libc.so.6 + 0x82766) #1 0x00007f784909cf90 pthread_cond_wait (libc.so.6 + 0x84f90) #2 0x00007f783c8c254c n/a (radeonsi_dri.so + 0xc254c) #3 0x00007f783c90b96c n/a (radeonsi_dri.so + 0x10b96c) #4 0x00007f784909dbb5 n/a (libc.so.6 + 0x85bb5) #5 0x00007f784911fd90 n/a (libc.so.6 + 0x107d90) Stack trace of thread 25871: #0 0x00007f784909a766 n/a (libc.so.6 + 0x82766) #1 0x00007f784909d294 pthread_cond_timedwait (libc.so.6 + 0x85294) #2 0x00007f78496eb754 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt5Core.so.5 + 0xeb754) #3 0x00007f78496e82f7 n/a (libQt5Core.so.5 + 0xe82f7) #4 0x00007f78496e432a n/a (libQt5Core.so.5 + 0xe432a) #5 0x00007f784909dbb5 n/a (libc.so.6 + 0x85bb5) #6 0x00007f784911fd90 n/a (libc.so.6 + 0x107d90) ELF object binary architecture: AMD x86-64 ``` STEPS TO REPRODUCE 1. Using the terminal, open the provided PDF using okular with no additional arguments/flags. OBSERVED RESULT A transparent window appears for a few seconds, then it shows the error below: ``` zsh: segmentation fault (core dumped) okular 6-Activity-No.-6-Tune-Player.pdf ``` EXPECTED RESULT As what you expect when opening a PDF. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: 6.1.23-1-MANJARO/Plasma 5.27.4 (available in About System) KDE Plasma Version: Plasma 5.27.4 KDE Frameworks Version: 5.104.0-1 Qt Version: 5.15.8+kde+r185-1 ADDITIONAL INFORMATION -- You are receiving this mail because: You are the assignee for the bug.