Application: okular (0.21.3) KDE Platform Version: 4.14.6 Qt Version: 4.8.6 Operating System: Linux 3.16.7-7-desktop x86_64 Distribution: "openSUSE 13.2 (Harlequin) (x86_64)" -- Information about the crash: - What I was doing when the application crashed: I tried to open file containing 4 chars only, my given name: Aleš The last character is "s" with caron 1250 codepage coded as hex 9A The crash can be reproduced every time. -- Backtrace: Application: Okular (okular), signal: Segmentation fault Using host libthread_db library "/lib64/libthread_db.so.1". [Current thread is 1 (Thread 0x7ff0944597c0 (LWP 10780))] Thread 3 (Thread 0x7ff07e295700 (LWP 10785)): #0 0x00007ff09144cc3d in poll () from /lib64/libc.so.6 #1 0x00007ff08de55be4 in ?? () from /usr/lib64/libglib-2.0.so.0 #2 0x00007ff08de55f0a in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0 #3 0x00007ff0875c6946 in ?? () from /usr/lib64/libgio-2.0.so.0 #4 0x00007ff08de7ab85 in ?? () from /usr/lib64/libglib-2.0.so.0 #5 0x00007ff08f37f0a4 in start_thread () from /lib64/libpthread.so.0 #6 0x00007ff09145506d in clone () from /lib64/libc.so.6 Thread 2 (Thread 0x7ff07da94700 (LWP 10786)): #0 0x00007ff08de97904 in g_mutex_unlock () from /usr/lib64/libglib-2.0.so.0 #1 0x00007ff08de55620 in g_main_context_check () from /usr/lib64/libglib-2.0.so.0 #2 0x00007ff08de55b7b in ?? () from /usr/lib64/libglib-2.0.so.0 #3 0x00007ff08de55cec in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #4 0x00007ff08de55d29 in ?? () from /usr/lib64/libglib-2.0.so.0 #5 0x00007ff08de7ab85 in ?? () from /usr/lib64/libglib-2.0.so.0 #6 0x00007ff08f37f0a4 in start_thread () from /lib64/libpthread.so.0 #7 0x00007ff09145506d in clone () from /lib64/libc.so.6 Thread 1 (Thread 0x7ff0944597c0 (LWP 10780)): [KCrash Handler] #6 QTextCodec::toUnicode (this=0x0, a=...) at codecs/qtextcodec.cpp:1395 #7 0x00007ff06bece15f in Txt::Document::toUnicode (this=this@entry=0x202b090, array=...) at /usr/src/debug/okular-14.12.3/generators/txt/document.cpp:70 #8 0x00007ff06bece3f1 in Txt::Document::Document (this=0x202b090, fileName=...) at /usr/src/debug/okular-14.12.3/generators/txt/document.cpp:36 #9 0x00007ff06becdfeb in Txt::Converter::convert (this=0x1e3f7b0, fileName=...) at /usr/src/debug/okular-14.12.3/generators/txt/converter.cpp:28 #10 0x00007ff06f86b2af in Okular::TextDocumentConverter::convertWithPassword (this=0x1e3f7b0, fileName=...) at /usr/src/debug/okular-14.12.3/core/textdocumentgenerator.cpp:55 #11 0x00007ff06f86d1d2 in Okular::TextDocumentGenerator::loadDocumentWithPassword (this=<optimized out>, fileName=..., pagesVector=..., password=...) at /usr/src/debug/okular-14.12.3/core/textdocumentgenerator.cpp:299 #12 0x00007ff06f8556d5 in Okular::DocumentPrivate::openDocumentInternal (this=0x1ea32e0, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=..., password=...) at /usr/src/debug/okular-14.12.3/core/document.cpp:948 #13 0x00007ff06f855c1c in Okular::Document::openDocument (this=<optimized out>, docFile=..., url=..., _mime=..., password=...) at /usr/src/debug/okular-14.12.3/core/document.cpp:2357 #14 0x00007ff06fb2dd83 in Okular::Part::doOpenFile (this=this@entry=0x1e75330, mimeA=..., fileNameToOpenA=..., isCompressedFile=isCompressedFile@entry=0x7fff3705e68f) at /usr/src/debug/okular-14.12.3/part.cpp:1242 #15 0x00007ff06fb2f08d in Okular::Part::openFile (this=0x1e75330) at /usr/src/debug/okular-14.12.3/part.cpp:1365 #16 0x00007ff0940610b7 in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x1e73b50) at /usr/src/debug/kdelibs-4.14.6/kparts/part.cpp:591 #17 0x00007ff09406269e in KParts::ReadOnlyPart::openUrl (this=this@entry=0x1e75330, url=...) at /usr/src/debug/kdelibs-4.14.6/kparts/part.cpp:555 #18 0x00007ff06fb2416b in Okular::Part::openUrl (this=0x1e75330, _url=...) at /usr/src/debug/okular-14.12.3/part.cpp:1518 #19 0x000000000040fe16 in Shell::openUrl (this=this@entry=0x1e54e50, url=..., serializedOptions=...) at /usr/src/debug/okular-14.12.3/shell/shell.cpp:235 #20 0x00000000004100e9 in Shell::openDocument (this=this@entry=0x1e54e50, url=..., serializedOptions=...) at /usr/src/debug/okular-14.12.3/shell/shell.cpp:181 #21 0x000000000040ac30 in Okular::main (paths=..., serializedOptions=...) at /usr/src/debug/okular-14.12.3/shell/okular_main.cpp:169 #22 0x000000000040a592 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/okular-14.12.3/shell/main.cpp:51 Reported using DrKonqi
Please attach the file.
Created attachment 92005 [details] Test file for okular program. last char is diacritic "s caron". No newline added.
Here is the backtrace, generated with the current git master: Application: Okular (okular), signal: Segmentation fault Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [KCrash Handler] #6 0x00007f39bb33de51 in QTextCodec::toUnicode(QByteArray const&) const () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #7 0x00007f39a72cad6f in Txt::Document::toUnicode (this=this@entry=0x24f3970, array=...) at /home/sander/okular/generators/txt/document.cpp:70 #8 0x00007f39a72cb1a6 in Txt::Document::Document (this=0x24f3970, fileName=...) at /home/sander/okular/generators/txt/document.cpp:36 #9 0x00007f39a72cabfb in Txt::Converter::convert (this=0x2141250, fileName=...) at /home/sander/okular/generators/txt/converter.cpp:28 #10 0x00007f39ac0dd752 in Okular::TextDocumentConverter::convertWithPassword (this=0x2141250, fileName=...) at /home/sander/okular/core/textdocumentgenerator.cpp:55 #11 0x00007f39ac0df302 in Okular::TextDocumentGenerator::loadDocumentWithPassword (this=<optimized out>, fileName=..., pagesVector=..., password=...) at /home/sander/okular/core/textdocumentgenerator.cpp:299 #12 0x00007f39ac0c7416 in Okular::DocumentPrivate::openDocumentInternal (this=0x21d3760, offer=..., isstdin=isstdin@entry=false, docFile=..., filedata=..., password=...) at /home/sander/okular/core/document.cpp:948 #13 0x00007f39ac0c7d4d in Okular::Document::openDocument (this=0x21b1000, docFile=..., url=..., _mime=..., password=...) at /home/sander/okular/core/document.cpp:2361 #14 0x00007f39ac39f393 in Okular::Part::doOpenFile (this=0x21a4680, mimeA=..., fileNameToOpenA=..., isCompressedFile=<optimized out>) at /home/sander/okular/part.cpp:1243 #15 0x00007f39ac3a139f in Okular::Part::openFile (this=0x21a6448) at /home/sander/okular/part.cpp:1366 #16 0x00007f39be0ee73a in ?? () from /usr/lib/libkparts.so.4 #17 0x00007f39be0f0b76 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4 #18 0x00007f39ac39669b in Okular::Part::openUrl (this=0x21a4680, _url=...) at /home/sander/okular/part.cpp:1519 #19 0x000000000040ea66 in Shell::openUrl (this=this@entry=0x20fce70, url=..., serializedOptions=...) at /home/sander/okular/shell/shell.cpp:235 #20 0x000000000040ecd1 in Shell::openDocument (this=this@entry=0x20fce70, url=..., serializedOptions=...) at /home/sander/okular/shell/shell.cpp:181 #21 0x0000000000409b76 in Okular::main (paths=..., serializedOptions=...) at /home/sander/okular/shell/okular_main.cpp:169 #22 0x00000000004094e2 in main (argc=<optimized out>, argv=<optimized out>) at /home/sander/okular/shell/main.cpp:51
This was a bug in kdelibs, will be fixed in next kdelibs release. (after the bugfix, the text still doesn't show, that's bug 334733)