Bug 213069 - Kate encoding problem messagebox before file is loaded crashes KDevelop
Summary: Kate encoding problem messagebox before file is loaded crashes KDevelop
Status: RESOLVED DUPLICATE of bug 212965
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-04 12:29 UTC by Niko Sams
Modified: 2009-11-04 13:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niko Sams 2009-11-04 12:29:20 UTC
Application that crashed: kdevelop
Version of the application: 3.9.96 (using KDevPlatform 0.9.96)
KDE Version: 4.3.71 (KDE 4.3.71 (KDE 4.4 >= 20091007))
Qt Version: 4.5.2
Operating System: Linux 2.6.30-gentoo-r5 x86_64

What I was doing when the application crashed:
When Kate shows this messagebox before opening the file kdevelop crashes.
"The file .... was opened with UTF-8 encoding but contained invalid characters. It is set to read-only mode, as saving might destroy its content. Either reopen the file with the correct encoding chosen or enable the read-write mode again in the menu to be able to edit it."

Reproducible with current trunk. (kdelibs not up-to-date)

 -- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
[Current thread is 0 (LWP 32678)]

Thread 7 (Thread 0x7f857ffbf950 (LWP 32679)):
#0  0x00007f8593df8c7d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f8594062eaf in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f8590f843c1 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x18b8f90) at /home/niko/kdesvn/kdevplatform/language/duchain/duchain.cpp:280
#3  0x00007f85940627ce in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f8593df4087 in start_thread () from /lib/libpthread.so.0
#5  0x00007f8592a4d77d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f8577dcb950 (LWP 32694)):
#0  0x00007f8593df633a in pthread_mutex_lock () from /lib/libpthread.so.0
#1  0x00007f858c808421 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0x00007f858c808aed in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007f858c8092b8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007f85941431f1 in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007f8594120e2b in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f8594120f8f in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007f8594060140 in QThread::exec () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007f8591085ff7 in KDevelop::CompletionWorkerThread::run (this=0x3123840) at /home/niko/kdesvn/kdevplatform/language/codecompletion/codecompletionmodel.cpp:82
#9  0x00007f85940627ce in ?? () from /usr/lib64/qt4/libQtCore.so.4
#10 0x00007f8593df4087 in start_thread () from /lib/libpthread.so.0
#11 0x00007f8592a4d77d in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f85775ca950 (LWP 32695)):
#0  0x00007f8592a455d6 in poll () from /lib/libc.so.6
#1  0x00007f858c808de7 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f858c8092b8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f85941431f1 in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f8594120e2b in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007f8594120f8f in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f8594060140 in QThread::exec () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007f8591085ff7 in KDevelop::CompletionWorkerThread::run (this=0x178ecb0) at /home/niko/kdesvn/kdevplatform/language/codecompletion/codecompletionmodel.cpp:82
#8  0x00007f85940627ce in ?? () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f8593df4087 in start_thread () from /lib/libpthread.so.0
#10 0x00007f8592a4d77d in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f8576dc9950 (LWP 32696)):
#0  0x00007f8593df8c7d in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f8594061ee7 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f859406209f in QThread::msleep () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007f85785f887e in UIBlockTester::UIBlockTesterThread::run (this=0x32c7fb0) at /home/niko/kdesvn/kdevelop/languages/cpp/cpplanguagesupport.cpp:647
#4  0x00007f85940627ce in ?? () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007f8593df4087 in start_thread () from /lib/libpthread.so.0
#6  0x00007f8592a4d77d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f857613f950 (LWP 32699)):
#0  0x00007f8593df89f9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f8594062ed1 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f85957b6031 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1697030, th=0x3cb1450) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#3  0x00007f85957ba8a7 in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x16c94c0, th=0x3cb1450) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#4  0x00007f85957b577a in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x1697030, th=0x3cb1450) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#5  0x00007f85957ba99f in ThreadWeaver::WorkingHardState::applyForWork (this=0x16c94c0, th=0x3cb1450) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007f85957b626b in ThreadWeaver::WeaverImpl::applyForWork (this=0x1697030, th=0x3cb1450, previous=0x0) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#7  0x00007f85957ba9c2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x16c94c0, th=0x3cb1450) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#8  0x00007f85957b626b in ThreadWeaver::WeaverImpl::applyForWork (this=0x1697030, th=0x3cb1450, previous=0x0) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0x00007f85957ba9c2 in ThreadWeaver::WorkingHardState::applyForWork (this=0x16c94c0, th=0x3cb1450) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:74
#10 0x00007f85957b626b in ThreadWeaver::WeaverImpl::applyForWork (this=0x1697030, th=0x3cb1450, previous=0x2ac7540) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#11 0x00007f85957b8bba in ThreadWeaver::ThreadRunHelper::run (this=0x7f857613eff0, parent=0x1697030, th=0x3cb1450) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:87
#12 0x00007f85957b8d53 in ThreadWeaver::Thread::run (this=0x3cb1450) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:142
#13 0x00007f85940627ce in ?? () from /usr/lib64/qt4/libQtCore.so.4
#14 0x00007f8593df4087 in start_thread () from /lib/libpthread.so.0
#15 0x00007f8592a4d77d in clone () from /lib/libc.so.6
#16 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f857593e950 (LWP 32700)):
#0  0x00007f8593df89f9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007f8594062ed1 in QWaitCondition::wait () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f85957b6031 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x1697030, th=0x309fb10) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:365
#3  0x00007f85957ba8a7 in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x16c94c0, th=0x309fb10) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:80
#4  0x00007f85957b577a in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x1697030, th=0x309fb10) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:356
#5  0x00007f85957ba99f in ThreadWeaver::WorkingHardState::applyForWork (this=0x16c94c0, th=0x309fb10) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WorkingHardState.cpp:71
#6  0x00007f85957b626b in ThreadWeaver::WeaverImpl::applyForWork (this=0x1697030, th=0x309fb10, previous=0x3d568f0) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/WeaverImpl.cpp:351
#7  0x00007f85957b8bba in ThreadWeaver::ThreadRunHelper::run (this=0x7f857593dff0, parent=0x1697030, th=0x309fb10) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:87
#8  0x00007f85957b8d53 in ThreadWeaver::Thread::run (this=0x309fb10) at /home/niko/kdesvn/kdelibs/threadweaver/Weaver/Thread.cpp:142
#9  0x00007f85940627ce in ?? () from /usr/lib64/qt4/libQtCore.so.4
#10 0x00007f8593df4087 in start_thread () from /lib/libpthread.so.0
#11 0x00007f8592a4d77d in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f85972cb760 (LWP 32678)):
[KCrash Handler]
#5  0x00007f8594131079 in QMetaObject::activate () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007f857a682f1a in QuickOpenWidget::ready (this=0x305a740) at /home/niko/kdesvn/build/kdevplatform/plugins/quickopen/quickopenplugin.moc:205
#7  0x00007f857a6878b2 in QuickOpenWidget::eventFilter (this=0x305a740, watched=0x21ae820, event=0x7ffffd6f36b0) at /home/niko/kdesvn/kdevplatform/plugins/quickopen/quickopenplugin.cpp:629
#8  0x00007f8594121b84 in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007f85932e5f4f in QApplicationPrivate::notify_helper () from /usr/lib64/qt4/libQtGui.so.4
#10 0x00007f85932ec96c in QApplication::notify () from /usr/lib64/qt4/libQtGui.so.4
#11 0x00007f8594882faf in KApplication::notify (this=0x7ffffd6f5760, receiver=0x21ae820, event=0x7ffffd6f36b0) at /home/niko/kdesvn/kdelibs/kdeui/kernel/kapplication.cpp:302
#12 0x00007f8594121806 in QCoreApplication::notifyInternal () from /usr/lib64/qt4/libQtCore.so.4
#13 0x00007f85932e61a0 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#14 0x00007f8593359f79 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#15 0x00007f859335bc11 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#16 0x00007f859333a9c1 in QApplication::x11ProcessEvent () from /usr/lib64/qt4/libQtGui.so.4
#17 0x00007f859335d057 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#18 0x00007f858c805f91 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#19 0x00007f858c808e85 in ?? () from /usr/lib/libglib-2.0.so.0
#20 0x00007f858c8092b8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#21 0x00007f85941431da in QEventDispatcherGlib::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#22 0x00007f859335ce7c in ?? () from /usr/lib64/qt4/libQtGui.so.4
#23 0x00007f8594120e2b in QEventLoop::processEvents () from /usr/lib64/qt4/libQtCore.so.4
#24 0x00007f8594120f8f in QEventLoop::exec () from /usr/lib64/qt4/libQtCore.so.4
#25 0x00007f8594122b53 in QCoreApplication::exec () from /usr/lib64/qt4/libQtCore.so.4
#26 0x000000000040576f in main (argc=1, argv=0x7ffffd6f68c8) at /home/niko/kdesvn/kdevelop/app/main.cpp:193

Reported using DrKonqi
Comment 1 Andreas Pakulat 2009-11-04 13:54:02 UTC
Interesting that your backtrace vastly differs from the two we've got yesterday... Closing this as dupe too as its either a bug in kate (as indicated by the other backtrace) or a bug in Qt (as shown in this one).

*** This bug has been marked as a duplicate of bug 212965 ***