Bug 217138 - Crash when opening Latin-1 encoded C++ file in UTF-8 environment
Summary: Crash when opening Latin-1 encoded C++ file in UTF-8 environment
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-12-03 00:08 UTC by Ludger Sprenker
Modified: 2009-12-03 09:33 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 Ludger Sprenker 2009-12-03 00:08:14 UTC
Application that crashed: kdevelop
Version of the application: 3.9.97 (using KDevPlatform 0.9.97)
KDE Version: 4.3.4 (KDE 4.3.4)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-15-generic i686
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
When I open a C++ file that contains german umlauts in Latin-1 encoding a message pops up that informs me that the file is not valid UTF-8 encoded (same message as in kate).
Just a little bit after the message pops up kdevelop crashes. When setting the system environment to Latin1 ("export LANG=de_DE@euro") there is no crash.

 -- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7704700 (LWP 16874))]

Thread 7 (Thread 0xb3c1ab70 (LWP 16875)):
#0  0x00396422 in __kernel_vsyscall ()
#1  0x00e45142 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0x00af27e4 in __pthread_cond_timedwait (cond=0x8c735e8, mutex=0x8c735d0, abstime=0xb3c1a2c0) at forward.c:152
#3  0x0421bdef in QWaitConditionPrivate::wait (this=0x8c761d4, mutex=0x8c761d8, time=200000) at thread/qwaitcondition_unix.cpp:85
#4  QWaitCondition::wait (this=0x8c761d4, mutex=0x8c761d8, time=200000) at thread/qwaitcondition_unix.cpp:159
#5  0x07e692f5 in KDevelop::DUChainPrivate::CleanupThread::run (this=0x8c761c8) at /home/dvelop/src/kdevplatform/language/duchain/duchain.cpp:280
#6  0x0421ae32 in QThreadPrivate::start (arg=0x8c761c8) at thread/qthread_unix.cpp:188
#7  0x00e4080e in start_thread (arg=0xb3c1ab70) at pthread_create.c:300
#8  0x00ae57ee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 6 (Thread 0xaedb7b70 (LWP 17023)):
#0  0x00e5de06 in *__GI_clock_gettime (clock_id=15081460, tp=0xaedb7018) at ../sysdeps/unix/clock_gettime.c:100
#1  0x04337bf3 in QTimerInfoList::getTime (this=0xafc3716c, t=...) at kernel/qeventdispatcher_unix.cpp:339
#2  0x04337de1 in QTimerInfoList::updateCurrentTime (this=0xafc3716c) at kernel/qeventdispatcher_unix.cpp:297
#3  0x0433888c in QTimerInfoList::timerWait (this=0xafc3716c, tm=...) at kernel/qeventdispatcher_unix.cpp:420
#4  0x04336210 in timerSourcePrepare (source=0xafc37138, timeout=0xaedb710c) at kernel/qeventdispatcher_glib.cpp:141
#5  0x084d6f80 in g_main_context_prepare () from /lib/libglib-2.0.so.0
#6  0x084d7341 in ?? () from /lib/libglib-2.0.so.0
#7  0x084d7853 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#8  0x04336067 in QEventDispatcherGlib::processEvents (this=0x92f7420, flags=...) at kernel/qeventdispatcher_glib.cpp:329
#9  0x04309c79 in QEventLoop::processEvents (this=0xaedb72d4, flags=) at kernel/qeventloop.cpp:149
#10 0x0430a0ca in QEventLoop::exec (this=0xaedb72d4, flags=...) at kernel/qeventloop.cpp:201
#11 0x04217b73 in QThread::exec (this=0x94ad158) at thread/qthread.cpp:487
#12 0x07f72080 in KDevelop::CompletionWorkerThread::run (this=0x94ad158) at /home/dvelop/src/kdevplatform/language/codecompletion/codecompletionmodel.cpp:82
#13 0x0421ae32 in QThreadPrivate::start (arg=0x94ad158) at thread/qthread_unix.cpp:188
#14 0x00e4080e in start_thread (arg=0xaedb7b70) at pthread_create.c:300
#15 0x00ae57ee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 5 (Thread 0xae5b6b70 (LWP 17024)):
#0  0x00af292b in pthread_mutex_lock (mutex=0x94ad9cc) at forward.c:182
#1  0x084d58cf in g_main_context_acquire () from /lib/libglib-2.0.so.0
#2  0x084d72b5 in ?? () from /lib/libglib-2.0.so.0
#3  0x084d7853 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#4  0x04336067 in QEventDispatcherGlib::processEvents (this=0x92f49c0, flags=...) at kernel/qeventdispatcher_glib.cpp:329
#5  0x04309c79 in QEventLoop::processEvents (this=0xae5b62d4, flags=) at kernel/qeventloop.cpp:149
#6  0x0430a0ca in QEventLoop::exec (this=0xae5b62d4, flags=...) at kernel/qeventloop.cpp:201
#7  0x04217b73 in QThread::exec (this=0x94ad660) at thread/qthread.cpp:487
#8  0x07f72080 in KDevelop::CompletionWorkerThread::run (this=0x94ad660) at /home/dvelop/src/kdevplatform/language/codecompletion/codecompletionmodel.cpp:82
#9  0x0421ae32 in QThreadPrivate::start (arg=0x94ad660) at thread/qthread_unix.cpp:188
#10 0x00e4080e in start_thread (arg=0xae5b6b70) at pthread_create.c:300
#11 0x00ae57ee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
The current source language is "auto; currently c".

Thread 4 (Thread 0xaddb5b70 (LWP 17025)):
#0  0x00396422 in __kernel_vsyscall ()
#1  0x00e45142 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0x00af27e4 in __pthread_cond_timedwait (cond=0xaddb5234, mutex=0xaddb5264, abstime=0xaddb52b0) at forward.c:152
#3  0x0421a81e in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:297
#4  0x0421a973 in QThread::msleep (msecs=30) at thread/qthread_unix.cpp:323
#5  0x02f84e2b in UIBlockTester::UIBlockTesterThread::run (this=0x950f880) at /home/dvelop/src/kdevelop/languages/cpp/cpplanguagesupport.cpp:662
#6  0x0421ae32 in QThreadPrivate::start (arg=0x950f880) at thread/qthread_unix.cpp:188
#7  0x00e4080e in start_thread (arg=0xaddb5b70) at pthread_create.c:300
#8  0x00ae57ee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xad133b70 (LWP 17026)):
#0  0x00396422 in __kernel_vsyscall ()
#1  0x00e44e15 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0x00af278d in __pthread_cond_wait (cond=0x8c02860, mutex=0x8c02848) at forward.c:139
#3  0x0421be67 in QWaitConditionPrivate::wait (this=0x8c02500, mutex=0x8c02bc0, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x8c02500, mutex=0x8c02bc0, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0x007b1b30 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8c024e8, th=0x9485ff0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0x007b419c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x8c026e8, th=0x9485ff0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0x007b01fb in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x8c024e8, th=0x9485ff0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0x007b4292 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8c026e8, th=0x9485ff0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0x007b1db3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8c024e8, th=0x9485ff0, previous=0x9cfb020) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x007b23be in ThreadWeaver::ThreadRunHelper::run (this=0xad133304, parent=0x8c024e8, th=0x9485ff0) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0x007b29db in ThreadWeaver::Thread::run (this=0x9485ff0) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0x0421ae32 in QThreadPrivate::start (arg=0x9485ff0) at thread/qthread_unix.cpp:188
#13 0x00e4080e in start_thread (arg=0xad133b70) at pthread_create.c:300
#14 0x00ae57ee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xac932b70 (LWP 17027)):
#0  0x00396422 in __kernel_vsyscall ()
#1  0x00e44e15 in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:122
#2  0x00af278d in __pthread_cond_wait (cond=0x8c02860, mutex=0x8c02848) at forward.c:139
#3  0x0421be67 in QWaitConditionPrivate::wait (this=0x8c02500, mutex=0x8c02bc0, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x8c02500, mutex=0x8c02bc0, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0x007b1b30 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8c024e8, th=0xb33ab520) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0x007b419c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x8c026e8, th=0xb33ab520) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0x007b01fb in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x8c024e8, th=0xb33ab520) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0x007b4292 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8c026e8, th=0xb33ab520) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0x007b1db3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8c024e8, th=0xb33ab520, previous=0x0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x007b42b1 in ThreadWeaver::WorkingHardState::applyForWork (this=0x8c026e8, th=0xb33ab520) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#11 0x007b1db3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8c024e8, th=0xb33ab520, previous=0x92c2df8) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#12 0x007b23be in ThreadWeaver::ThreadRunHelper::run (this=0xac932304, parent=0x8c024e8, th=0xb33ab520) at ../../../threadweaver/Weaver/Thread.cpp:87
#13 0x007b29db in ThreadWeaver::Thread::run (this=0xb33ab520) at ../../../threadweaver/Weaver/Thread.cpp:142
#14 0x0421ae32 in QThreadPrivate::start (arg=0xb33ab520) at thread/qthread_unix.cpp:188
#15 0x00e4080e in start_thread (arg=0xac932b70) at pthread_create.c:300
#16 0x00ae57ee in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7704700 (LWP 16874)):
[KCrash Handler]
#6  0x014559c8 in QWidgetPrivate::nativeChildrenForced (this=0x9c21f20, parent=0x91a86e0, f=...) at ../../include/QtGui/private/../../../src/gui/kernel/qwidget_p.h:669
#7  QWidget::setParent (this=0x9c21f20, parent=0x91a86e0, f=...) at kernel/qwidget.cpp:9197
#8  0x01455db0 in QWidgetPrivate::init (this=0x9c21970, parentWidget=0x91a86e0, f=...) at kernel/qwidget.cpp:1114
#9  0x0145c26e in QWidget (this=0x9c21f20, parent=0x91a86e0, f=...) at kernel/qwidget.cpp:953
#10 0x00487cf7 in View (this=0x9c21f20, parent=0x91a86e0) at ../../../interfaces/ktexteditor/ktexteditor.cpp:262
#11 0x039a2b69 in KateView (this=0x9c21f20, doc=0x9c60020, parent=0x91a86e0) at ../../kate/view/kateview.cpp:125
#12 0x038fc23e in KateDocument::createView (this=0x9c60020, parent=0x91a86e0) at ../../kate/document/katedocument.cpp:339
#13 0x0069d2b6 in KDevelop::TextDocument::createViewWidget (this=0x9b14f10, parent=0x91a86e0) at /home/dvelop/src/kdevplatform/shell/textdocument.cpp:268
#14 0x0069c56e in KDevelop::TextView::createWidget (this=0x99ff988, parent=0x91a86e0) at /home/dvelop/src/kdevplatform/shell/textdocument.cpp:522
#15 0x06351d27 in Sublime::View::widget (this=0x99ff988, parent=0x91a86e0) at /home/dvelop/src/kdevplatform/sublime/view.cpp:82
#16 0x0634d36a in Sublime::MainWindowPrivate::ViewCreator::operator() (this=0xbfe7c63c, index=0x8ad53b0) at /home/dvelop/src/kdevplatform/sublime/mainwindow_p.cpp:243
#17 0x06350fa9 in Sublime::Area::walkViewsInternal<Sublime::MainWindowPrivate::ViewCreator> (this=0x8ad5f88, op=..., index=0x8ad53b0) at /home/dvelop/src/kdevplatform/sublime/areawalkers.h:32
#18 0x0634dc30 in Sublime::Area::walkViews<Sublime::MainWindowPrivate::ViewCreator> (this=0x8ab4760, index=0x8ad53b0, view=0x99ff988) at /home/dvelop/src/kdevplatform/sublime/areawalkers.h:48
#19 Sublime::MainWindowPrivate::viewAdded (this=0x8ab4760, index=0x8ad53b0, view=0x99ff988) at /home/dvelop/src/kdevplatform/sublime/mainwindow_p.cpp:389
#20 0x063444c3 in Sublime::MainWindow::qt_metacall (this=0x8abe610, _c=QMetaObject::InvokeMetaMethod, _id=61, _a=0xbfe7c7a4) at /home/dvelop/src/kdevplatform/build/sublime/mainwindow.moc:112
#21 0x0066e8aa in KDevelop::MainWindow::qt_metacall (this=0x8abe610, _c=QMetaObject::InvokeMetaMethod, _id=61, _a=0xbfe7c7a4) at /home/dvelop/src/kdevplatform/build/shell/mainwindow.moc:85
#22 0x04321263 in QMetaObject::activate (sender=0x8ad5f88, from_signal_index=4, to_signal_index=4, argv=0xbfe7c7a4) at kernel/qobject.cpp:3113
#23 0x04321ec2 in QMetaObject::activate (sender=0x8ad5f88, m=0x6366500, local_signal_index=0, argv=0xbfe7c7a4) at kernel/qobject.cpp:3187
#24 0x063349d9 in Sublime::Area::viewAdded (this=0x8ad5f88, _t1=0x8ad53b0, _t2=0x99ff988) at /home/dvelop/src/kdevplatform/build/sublime/area.moc:109
#25 0x06338bc7 in Sublime::Area::addView (this=0x8ad5f88, view=0x99ff988, index=0x8ad53b0) at /home/dvelop/src/kdevplatform/sublime/area.cpp:169
#26 0x06338e2f in Sublime::Area::addView (this=0x8ad5f88, view=0x99ff988, after=0x0) at /home/dvelop/src/kdevplatform/sublime/area.cpp:182
#27 0x006a45aa in KDevelop::DocumentControllerPrivate::openDocumentInternal (this=0x8c02600, doc=0x9b14f20, range=..., activationParams=...)
    at /home/dvelop/src/kdevplatform/shell/documentcontroller.cpp:347
#28 0x006a4d3c in KDevelop::DocumentControllerPrivate::openDocumentInternal (this=0x8c02600, inputUrl=..., prefName=..., range=..., encoding=..., activationParams=...)
    at /home/dvelop/src/kdevplatform/shell/documentcontroller.cpp:275
#29 0x006a1e68 in KDevelop::DocumentController::openDocument (this=0x8c03088, inputUrl=..., range=..., activationParams=...) at /home/dvelop/src/kdevplatform/shell/documentcontroller.cpp:541
#30 0x00124d62 in KDevelop::IDocumentController::openDocument (this=0x8c03088, url=..., cursor=..., activationParams=...) at /home/dvelop/src/kdevplatform/interfaces/idocumentcontroller.cpp:32
#31 0x02ed9d48 in DUChainItemData::execute (this=0x9107978) at /home/dvelop/src/kdevplatform/plugins/quickopen/duchainitemquickopen.cpp:157
#32 0x02ed42ba in QuickOpenModel::execute (this=0x8ea0228, index=..., filterText=...) at /home/dvelop/src/kdevplatform/plugins/quickopen/quickopenmodel.cpp:412
#33 0x02ec2b8c in QuickOpenWidget::eventFilter (this=0x977e540, watched=0x8ea58a0, event=0xbfe7d244) at /home/dvelop/src/kdevplatform/plugins/quickopen/quickopenplugin.cpp:627
#34 0x0430a83a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x89a2ef8, receiver=0x8ea58a0, event=0xbfe7d244) at kernel/qcoreapplication.cpp:726
#35 0x013fcf2c in QApplicationPrivate::notify_helper (this=0x89a2ef8, receiver=0x8ea58a0, e=0xbfe7d244) at kernel/qapplication.cpp:4052
#36 0x01405778 in QApplication::notify (this=0xbfe7ee14, receiver=0x8ea58a0, e=0xbfe7d244) at kernel/qapplication.cpp:3662
#37 0x05c901aa in KApplication::notify (this=0xbfe7ee14, receiver=0x8ea58a0, event=0xbfe7d244) at ../../kdeui/kernel/kapplication.cpp:302
#38 0x0430b6cb in QCoreApplication::notifyInternal (this=0xbfe7ee14, receiver=0x8ea58a0, event=0xbfe7d244) at kernel/qcoreapplication.cpp:610
#39 0x013fde2e in QCoreApplication::sendSpontaneousEvent (receiver=0x8ea58a0, event=0x91a86e0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#40 qt_sendSpontaneousEvent (receiver=0x8ea58a0, event=0x91a86e0) at kernel/qapplication.cpp:4958
#41 0x0149a440 in QKeyMapper::sendKeyEvent (keyWidget=0x8ea58a0, grab=false, type=QEvent::KeyPress, code=16777220, modifiers=..., text=..., autorepeat=<value optimized out>, 
    count=<value optimized out>, nativeScanCode=36, nativeVirtualKey=65293, nativeModifiers=0) at kernel/qkeymapper_x11.cpp:1861
#42 0x0149c989 in QKeyMapperPrivate::translateKeyEvent (this=0x89cdc50, keyWidget=0x8ea58a0, event=0xbfe7ea2c, grab=true) at kernel/qkeymapper_x11.cpp:1831
#43 0x01470ed7 in QApplication::x11ProcessEvent (this=0xbfe7ee14, event=0xbfe7ea2c) at kernel/qapplication_x11.cpp:3443
#44 0x0149e502 in x11EventSourceDispatch (s=0x89a5fa8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#45 0x084d3e78 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#46 0x084d7720 in ?? () from /lib/libglib-2.0.so.0
#47 0x084d7853 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#48 0x0433602c in QEventDispatcherGlib::processEvents (this=0x89000c8, flags=...) at kernel/qeventdispatcher_glib.cpp:327
#49 0x0149dbe5 in QGuiEventDispatcherGlib::processEvents (this=0x89000c8, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
#50 0x04309c79 in QEventLoop::processEvents (this=0xbfe7ed24, flags=) at kernel/qeventloop.cpp:149
#51 0x0430a0ca in QEventLoop::exec (this=0xbfe7ed24, flags=...) at kernel/qeventloop.cpp:201
#52 0x0430c53f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#53 0x013fcdd7 in QApplication::exec () at kernel/qapplication.cpp:3525
#54 0x0804d9ab in main (argc=1, argv=0xbfe7f324) at /home/dvelop/src/kdevelop/app/main.cpp:193

Reported using DrKonqi
Comment 1 Andreas Pakulat 2009-12-03 09:33:40 UTC

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