Bug 344826 - Kate and kwrite crash when open some old text files
Summary: Kate and kwrite crash when open some old text files
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-03-04 14:08 UTC by Vaso
Modified: 2015-07-20 15:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Magic 2-bytes file that cause kwrite & kate crash (277 bytes, application/gzip)
2015-03-04 14:11 UTC, Vaso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vaso 2015-03-04 14:08:09 UTC
Application: kate (3.14.4)
KDE Platform Version: 4.14.4
Qt Version: 4.8.6
Operating System: Linux 3.18.7-200.fc21.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
Kate and kwrite crash when open some old text files from dolphin or from file picker dialog as well.
New created text file with the same content of old one opens normaly.
The "magic" file is attached.

-- Backtrace:
Application: Kate (kate), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff91a932880 (LWP 2690))]

Thread 2 (Thread 0x7ff8eff8b700 (LWP 2691)):
#0  0x00007ff918f15590 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff90278945a in QTWTF::TCMalloc_PageHeap::scavengerThread() () from /lib64/libQtScript.so.4
#2  0x00007ff902789489 in QTWTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /lib64/libQtScript.so.4
#3  0x00007ff918f1052a in start_thread () from /lib64/libpthread.so.0
#4  0x00007ff9174d979d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ff91a932880 (LWP 2690)):
[KCrash Handler]
#6  d_func (this=0x0) at /usr/src/debug/kdelibs-4.14.4/kdecore/sycoca/ksycocaentry.h:154
#7  KSycocaEntry::name (this=0x0) at /usr/src/debug/kdelibs-4.14.4/kdecore/sycoca/ksycocaentry.cpp:159
#8  0x00007ff8f168d842 in TextLoader (proberType=<optimized out>, filename=..., this=0x7fffd3e35200) at /usr/src/debug/kate-4.14.3/part/buffer/katetextloader.h:72
#9  Kate::TextBuffer::load (this=0x10e44d0, filename=..., encodingErrors=@0x10e4598: false, tooLongLinesWrapped=@0x10e4599: false, enforceTextCodec=false) at /usr/src/debug/kate-4.14.3/part/buffer/katetextbuffer.cpp:529
#10 0x00007ff8f170652e in KateBuffer::openFile (this=0x10e44d0, m_file=..., enforceTextCodec=enforceTextCodec@entry=false) at /usr/src/debug/kate-4.14.3/part/document/katebuffer.cpp:214
#11 0x00007ff8f16fbccf in KateDocument::openFile (this=0x10e3d10) at /usr/src/debug/kate-4.14.3/part/document/katedocument.cpp:1970
#12 0x00007ff90552b7fa in KParts::ReadOnlyPartPrivate::openLocalFile (this=this@entry=0x10e3f90) at /usr/src/debug/kdelibs-4.14.4/kparts/part.cpp:591
#13 0x00007ff90552dc36 in KParts::ReadOnlyPart::openUrl (this=this@entry=0x10e3d10, url=...) at /usr/src/debug/kdelibs-4.14.4/kparts/part.cpp:555
#14 0x00007ff8f16e6e6e in KateDocument::openUrl (this=0x10e3d10, url=...) at /usr/src/debug/kate-4.14.3/part/document/katedocument.cpp:2332
#15 0x00007ff8f16f15f5 in KateDocument::readParameterizedSessionConfig (this=0x10e3d10, kconfig=..., configParameters=0) at /usr/src/debug/kate-4.14.3/part/document/katedocument.cpp:1564
#16 0x00007ff8f74e4be4 in KateDocManager::loadMetaInfos (this=0xeaf570, doc=0x10e3d10, url=...) at /usr/src/debug/kate-4.14.3/kate/app/katedocmanager.cpp:657
#17 0x00007ff8f74e4e34 in KateDocManager::openUrl (this=this@entry=0xeaf570, url=..., encoding=..., isTempFile=isTempFile@entry=false, docInfo=...) at /usr/src/debug/kate-4.14.3/kate/app/katedocmanager.cpp:252
#18 0x00007ff8f74e537c in KateDocManager::openUrls (this=0xeaf570, urls=..., encoding=..., isTempFile=isTempFile@entry=false, docInfo=...) at /usr/src/debug/kate-4.14.3/kate/app/katedocmanager.cpp:228
#19 0x00007ff8f74f4771 in KateViewManager::openUrls (this=0x11545a0, urls=..., encoding=..., isTempFile=isTempFile@entry=false, docInfo=...) at /usr/src/debug/kate-4.14.3/kate/app/kateviewmanager.cpp:337
#20 0x00007ff8f74dcf89 in KateApp::startupKate (this=0x7fffd3e35e80) at /usr/src/debug/kate-4.14.3/kate/app/kateapp.cpp:225
#21 0x00007ff8f74dde95 in KateApp::initKate (this=this@entry=0x7fffd3e35e80) at /usr/src/debug/kate-4.14.3/kate/app/kateapp.cpp:135
#22 0x00007ff8f74de290 in KateApp::KateApp (this=0x7fffd3e35e80, args=<optimized out>) at /usr/src/debug/kate-4.14.3/kate/app/kateapp.cpp:72
#23 0x00007ff8f773b8dc in kdemain (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kate-4.14.3/kate/app/katemain.cpp:377
#24 0x000000000040825d in launch (argc=argc@entry=3, _name=_name@entry=0xd32698 "/bin/kate", args=0xd326e7 "\001", args@entry=0xd326a2 "-b", cwd=cwd@entry=0xd3272d "/mnt/Personal/Vaso/Customization/kubuntu/Desktop", envc=envc@entry=1, envs=<optimized out>, envs@entry=0xd326ef "DISPLAY=:0", reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0xd32702 "adminius;1425474190;139451;2422_TIME105820") at /usr/src/debug/kdelibs-4.14.4/kinit/kinit.cpp:726
#25 0x00000000004090a9 in handle_launcher_request (sock=8, who=<optimized out>) at /usr/src/debug/kdelibs-4.14.4/kinit/kinit.cpp:1218
#26 0x0000000000409787 in handle_requests (waitForPid=waitForPid@entry=0) at /usr/src/debug/kdelibs-4.14.4/kinit/kinit.cpp:1411
#27 0x000000000040537d in main (argc=4, argv=<optimized out>, envp=0x7fffd3e369b0) at /usr/src/debug/kdelibs-4.14.4/kinit/kinit.cpp:1899

Possible duplicates by query: bug 342286, bug 341680.

Reported using DrKonqi
Comment 1 Vaso 2015-03-04 14:11:49 UTC
Created attachment 91418 [details]
Magic 2-bytes file that cause kwrite & kate crash
Comment 2 Martin Walch 2015-05-12 22:27:20 UTC
This looks suspect:
> $ tar -xpf MagicFile.txt.tar.gz
> tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
Comment 3 Vaso 2015-05-13 08:40:53 UTC
The bug doesn't reproduce on today Fedora 21 stable.