Bug 251758 - crash in KDevelop::ConfigurableHighlightingColors::getAttribute
Summary: crash in KDevelop::ConfigurableHighlightingColors::getAttribute
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: 4.1.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 254620 254761 255487 256132 257586 261453 266350 267541 268235 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-19 21:38 UTC by stompdagger1
Modified: 2011-06-17 15:15 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (13.30 KB, text/plain)
2010-11-09 13:18 UTC, Jaroslav Franek
Details
Valgrind log for the crashing kdevelop 4.1 (17.21 KB, text/plain)
2010-11-09 19:44 UTC, Lastique
Details
New crash information added by DrKonqi (11.21 KB, text/plain)
2010-12-18 17:22 UTC, Ioannis
Details
valgrind log (5.49 KB, text/x-log)
2010-12-19 21:08 UTC, Ioannis
Details
crash from valgrind report (no debug symbols though) (1.37 KB, text/plain)
2010-12-19 21:10 UTC, Ioannis
Details
valgrind (memcheck) log (6.38 KB, text/x-log)
2010-12-20 20:34 UTC, Ioannis
Details
kdevelop run without crashing log (3.59 KB, text/x-log)
2010-12-20 20:41 UTC, Ioannis
Details
New crash information added by DrKonqi (11.74 KB, text/plain)
2011-01-22 11:11 UTC, Anton
Details
New crash information added by DrKonqi (12.20 KB, text/plain)
2011-06-17 15:15 UTC, Pericles Luz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stompdagger1 2010-09-19 21:38:55 UTC
Application: kdevelop (4.0.2 (using KDevPlatform 1.0.2))
KDE Platform Version: 4.5.1 (KDE 4.5.1) (Compiled from sources)
Qt Version: 4.6.3
Operating System: Linux 2.6.35-gentoo-r7 x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
- What I was doing when the application crashed: starting up kdevelop. not much to add,
but the intresting thing is that when starting kdevelop from cli, it doesn't seems to crash.

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop.bin), signal: Segmentation fault
[Current thread is 1 (Thread 0x7ffa7271e760 (LWP 16365))]

Thread 6 (Thread 0x7ffa5d1c1710 (LWP 16366)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007ffa70e69a01 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007ffa6c923bde in KDevelop::DUChainPrivate::CleanupThread::run (this=0x17e4b80) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/language/duchain/duchain.cpp:286
#3  0x00007ffa70e68a35 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007ffa6f8c4c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#5  0x00007ffa6fbaca9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7ffa53b47710 (LWP 16367)):
#0  0x00007ffa6fba61d3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007ffa70f33e9c in ?? () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007ffa70e68a35 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007ffa6f8c4c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#4  0x00007ffa6fbaca9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7ffa52844710 (LWP 16375)):
#0  __libc_disable_asynccancel () at ../nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S:97
#1  0x00007ffa6fba3d1b in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=1) at ../sysdeps/unix/sysv/linux/poll.c:89
#2  0x00007ffa6a222dc9 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffa6a22321c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007ffa70f80606 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007ffa70f559a2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007ffa70f55d74 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007ffa70e65f4b in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007ffa70e68a35 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#9  0x00007ffa6f8c4c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#10 0x00007ffa6fbaca9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7ffa52043710 (LWP 16376)):
#0  0x00007ffa6fba3d03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ffa6a222dc9 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007ffa6a22321c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007ffa70f80606 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007ffa70f559a2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007ffa70f55d74 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#6  0x00007ffa70e65f4b in QThread::exec() () from /usr/lib64/qt4/libQtCore.so.4
#7  0x00007ffa70e68a35 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007ffa6f8c4c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#9  0x00007ffa6fbaca9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7ffa51842710 (LWP 16377)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x00007ffa70e683a5 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007ffa70e68500 in QThread::msleep(unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007ffa530b4b91 in UIBlockTester::UIBlockTesterThread::run (this=0x3259440) at /var/tmp/portage/dev-util/kdevelop-4.0.2/work/kdevelop-4.0.2/languages/cpp/cpplanguagesupport.cpp:678
#4  0x00007ffa70e68a35 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#5  0x00007ffa6f8c4c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#6  0x00007ffa6fbaca9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7ffa7271e760 (LWP 16365)):
[KCrash Handler]
#6  QHash<int, KSharedPtr<KTextEditor::Attribute> >::value (this=0x8, akey=@0x7fff900a89dc) at /usr/include/qt4/QtCore/qhash.h:605
#7  0x00007ffa6ca15189 in QHash<int, KSharedPtr<KTextEditor::Attribute> >::operator[] (this=0x8, akey=@0x7fff900a89dc) at /usr/include/qt4/QtCore/qhash.h:727
#8  0x00007ffa6ca11fea in KDevelop::ConfigurableHighlightingColors::getAttribute (this=<value optimized out>, number=4) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/language/highlighting/configurablecolors.cpp:41
#9  0x00007ffa6ca170d6 in KDevelop::CodeHighlighting::attributeForType (this=0x3257280, type=KDevelop::HighlightingEnumContainer::ClassType, context=KDevelop::HighlightingEnumContainer::DeclarationContext, color=...) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/language/highlighting/codehighlighting.cpp:101
#10 0x00007ffa6ca175d9 in KDevelop::CodeHighlightingInstance::highlightDeclaration (this=0x33e5bc0, declaration=<value optimized out>, color=...) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/language/highlighting/codehighlighting.cpp:445
#11 0x00007ffa6ca166a7 in KDevelop::CodeHighlightingInstance::highlightDUChainSimple (this=0x33e5bc0, context=0x32622c0) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/language/highlighting/codehighlighting.cpp:228
#12 0x00007ffa6ca16864 in KDevelop::CodeHighlightingInstance::highlightDUChain (this=0x33e5bc0, context=0x32622c0) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/language/highlighting/codehighlighting.cpp:202
#13 0x00007ffa6ca16e87 in KDevelop::CodeHighlighting::highlightDUChain (this=<value optimized out>, context=0x32622c0) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/language/highlighting/codehighlighting.cpp:171
#14 0x00007ffa6c90a612 in KDevelop::DUChain::documentLoadedPrepare (this=<value optimized out>, doc=0x2a120a0) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/language/duchain/duchain.cpp:1562
#15 0x00007ffa6c90b551 in KDevelop::DUChain::qt_metacall (this=0x18c20c0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff900a9190) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2_build/language/duchain.moc:168
#16 0x00007ffa70f6a246 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#17 0x00007ffa71e6e682 in KDevelop::IDocumentController::documentLoadedPrepare (this=0x7fff900a8a30, _t1=0x2a120a0) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2_build/interfaces/idocumentcontroller.moc:279
#18 0x00007ffa71e6c190 in KDevelop::IDocument::notifyLoaded (this=0x2a120a0) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/interfaces/idocument.cpp:119
#19 0x00007ffa71b9fe9e in KDevelop::TextDocument::qt_metacall (this=0x2a12080, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff900a92e0) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2_build/shell/textdocument.moc:94
#20 0x00007ffa70f6a246 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#21 0x00007ffa718ee862 in KTextEditor::Document::textChanged(KTextEditor::Document*) () from /usr/lib/libktexteditor.so.4
#22 0x00007ffa50ab62f5 in KateDocument::openFile() () from /usr/lib/libkatepartinterfaces.so.4
#23 0x00007ffa6e61a4f7 in KParts::ReadOnlyPart::openUrl(KUrl const&) () from /usr/lib/libkparts.so.4
#24 0x00007ffa71ba1e7e in KDevelop::TextDocument::createViewWidget (this=0x2a12080, parent=0x32f10a0) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/shell/textdocument.cpp:261
#25 0x00007ffa71ba0a57 in KDevelop::TextView::createWidget (this=0x325ceb0, parent=0x32f10a0) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/shell/textdocument.cpp:532
#26 0x00007ffa6c629106 in Sublime::View::widget (this=0x7fff900a8a30, parent=0x8) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/sublime/view.cpp:82
#27 0x00007ffa6c623a53 in Sublime::MainWindowPrivate::ViewCreator::operator() (this=0x7fff900a9f10, index=0x1679380) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/sublime/mainwindow_p.cpp:246
#28 0x00007ffa6c628338 in Sublime::Area::walkViewsInternal<Sublime::MainWindowPrivate::ViewCreator> (this=0x167c0c0, op=..., index=0x1679380) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/sublime/areawalkers.h:32
#29 0x00007ffa6c62422c in Sublime::MainWindowPrivate::reconstruct (this=0x166bfa0) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/sublime/mainwindow_p.cpp:272
#30 0x00007ffa6c61e25e in Sublime::MainWindow::setArea (this=0x1628500, area=0x167c0c0) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/sublime/mainwindow.cpp:136
#31 0x00007ffa71b6d96d in KDevelop::WorkingSet::loadToArea (this=<value optimized out>, area=<value optimized out>, areaIndex=<value optimized out>, clear=<value optimized out>) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/shell/workingsetcontroller.cpp:346
#32 0x00007ffa71b6db77 in KDevelop::WorkingSet::changedWorkingSet (this=0x2300240, area=0x167c0c0, from=) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2/shell/workingsetcontroller.cpp:648
#33 0x00007ffa71b7215b in KDevelop::WorkingSet::qt_metacall (this=0x2300240, _c=<value optimized out>, _id=<value optimized out>, _a=0x16796b0) at /var/tmp/portage/dev-util/kdevplatform-1.0.2/work/kdevplatform-1.0.2_build/shell/workingsetcontroller.moc:90
#34 0x00007ffa70f66db9 in QObject::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#35 0x00007ffa70312d1c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#36 0x00007ffa7031925b in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#37 0x00007ffa714ac956 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#38 0x00007ffa70f5704b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#39 0x00007ffa70f5a703 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4
#40 0x00007ffa70f80a73 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#41 0x00007ffa6a21f211 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#42 0x00007ffa6a223068 in ?? () from /usr/lib/libglib-2.0.so.0
#43 0x00007ffa6a22321c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#44 0x00007ffa70f805b3 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#45 0x00007ffa703c271e in ?? () from /usr/lib64/qt4/libQtGui.so.4
#46 0x00007ffa70f559a2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#47 0x00007ffa70f55d74 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#48 0x00007ffa70f5a9eb in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#49 0x0000000000406f5f in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/dev-util/kdevelop-4.0.2/work/kdevelop-4.0.2/app/main_internal.cpp:233

Reported using DrKonqi
Comment 1 Milian Wolff 2010-09-25 23:27:06 UTC
is this still an issue? Somehow I doubt it's on our side if launching kdev from the CLI makes it work. That indicates some bug on your environment setup.

if you have more information showing it's a bug on our side after all, please reopen.
Comment 2 Milian Wolff 2010-10-19 12:47:35 UTC
*** Bug 254620 has been marked as a duplicate of this bug. ***
Comment 3 Milian Wolff 2010-10-20 17:07:34 UTC
*** Bug 254761 has been marked as a duplicate of this bug. ***
Comment 4 Milian Wolff 2010-10-20 17:08:49 UTC
As said in one of the duplicates:

does it work when you properly set KDEDIRS and ran kbuildsycoca4 and launch
kdevelop through the command line? See duplicate bug and this howto:

http://www.kdevelop.org/mediawiki/index.php/KDevelop_4/compiling

If it pertains, please send me a valgrind log:

kdevelop --sessions # then find the {...hash...} for your session, now:
KDEV_SESSION={...hash...} valgrind --track-origins=yes --num-callers=25
kdevelop.bin

thanks

Also, please try to reproduce in KDevelop 4.1.
Comment 5 Mike Rublev 2010-10-22 17:51:10 UTC
I run it again started with new session from the CLI.
I'm just wondering, is it possible to remove KDevelop sessions? I have a huge list of them and I'd like to remove unused.
Comment 6 Milian Wolff 2010-10-28 13:27:32 UTC
*** Bug 255487 has been marked as a duplicate of this bug. ***
Comment 7 Milian Wolff 2010-10-28 14:08:07 UTC
I've tried a fix for kdev 4.1.1 / 4.2, please - if anyone can test current code from git do so and report back. The commit was:

commit 96229871059b93cdb1e219602d7d257c4126dac8
Author: Milian Wolff <mail@milianw.de>
Date:   Thu Oct 28 14:05:12 2010 +0200

    try to fix crash in KDevelop::ConfigurableHighlightingColors::getAttribute
    
    - make sure m_defaultColors is always initialized
    - add assertion in getter
    
    This is just a shot in the dark but it might be the right one, see
    esp. the queued connection in update() which might have lead to periods
    without an initialized m_defaultColors member.

diff --git a/language/highlighting/colorcache.cpp b/language/highlighting/colorcache.cpp
index 7bda401..9ee7c90 100644
--- a/language/highlighting/colorcache.cpp
+++ b/language/highlighting/colorcache.cpp
@@ -83,7 +83,7 @@ namespace KDevelop {
 ColorCache* ColorCache::m_self = 0;
 
 ColorCache::ColorCache(QObject* parent)
-  : QObject(parent), m_defaultColors(0), m_validColorCount(0), m_colorOffset(0),
+  : QObject(parent), m_defaultColors(new CodeHighlightingColors(this)), m_validColorCount(0), m_colorOffset(0),
     m_localColorRatio(0), m_globalColorRatio(0)
 {
   Q_ASSERT(m_self == 0);
@@ -117,6 +117,7 @@ ColorCache::~ColorCache()
 {
   m_self = 0;
   delete m_defaultColors;
+  m_defaultColors = 0;
 }
 
 ColorCache* ColorCache::self()
@@ -279,6 +280,7 @@ QColor ColorCache::blendLocalColor(QColor color) const
 
 CodeHighlightingColors* ColorCache::defaultColors() const
 {
+  Q_ASSERT(m_defaultColors);
   return m_defaultColors;
 }
Comment 8 Milian Wolff 2010-10-28 14:08:31 UTC
PS: a way to reproduce or a valgrind log from the crash would still be good.
Comment 9 giuseppe marco randazzo 2010-10-28 14:39:20 UTC
(In reply to comment #4)
> As said in one of the duplicates:
> 
> does it work when you properly set KDEDIRS and ran kbuildsycoca4 and launch
> kdevelop through the command line? See duplicate bug and this howto:
> 
> http://www.kdevelop.org/mediawiki/index.php/KDevelop_4/compiling
> 

It seems working by set KDEDIRS and kbuildsycoca4 :| but i've to test it for one or two day before to sing victory. 
It's strange, because when i install the binary package from archlinux official repository, kbuildsycoca4 seems not to start. :| boh!

if it persist i follow the steps below.

> If it pertains, please send me a valgrind log:
> 
> kdevelop --sessions # then find the {...hash...} for your session, now:
> KDEV_SESSION={...hash...} valgrind --track-origins=yes --num-callers=25
> kdevelop.bin
> 
> thanks
> 

Thanks to you :)

> Also, please try to reproduce in KDevelop 4.1. 

What???? This bug is made by KDevelop 4.1 :), sorry but i have not understood what you are trying to say :)

END
Comment 10 Milian Wolff 2010-11-05 14:19:20 UTC
*** Bug 256132 has been marked as a duplicate of this bug. ***
Comment 11 Jaroslav Franek 2010-11-09 13:18:02 UTC
Created attachment 53276 [details]
New crash information added by DrKonqi

kdevelop (4.1.0) on KDE Platform 4.5.2 (KDE 4.5.2) using Qt 4.7.0

- What I was doing when the application crashed:

Starting kdevelop. Was working in it yesterday, left few files open (no project), then shutdown comp.  After KDE login, kdevelop was launched and produced SIGSEG. After trying manually from KDE menu, SIGSEG again.

-- Backtrace (Reduced):
#7  value (this=0x0, number=3) at /usr/include/QtCore/qhash.h:606
#8  operator[] (this=0x0, number=3) at /usr/include/QtCore/qhash.h:731
#9  KDevelop::ConfigurableHighlightingColors::getAttribute (this=0x0, number=3) at /usr/src/debug/kdevplatform-1.1.0/language/highlighting/configurablecolors.cpp:43
#10 0x06dcd013 in KDevelop::CodeHighlighting::attributeForType (this=0x904c690, type=KDevelop::HighlightingEnumContainer::LocalVariableType, context=KDevelop::HighlightingEnumContainer::DeclarationContext, color=...) at /usr/src/debug/kdevplatform-1.1.0/language/highlighting/codehighlighting.cpp:103
#11 0x06dcda5f in KDevelop::CodeHighlightingInstance::highlightDeclaration (this=0x9446d28, declaration=0x94441b8, color=...) at /usr/src/debug/kdevplatform-1.1.0/language/highlighting/codehighlighting.cpp:447
Comment 12 Lastique 2010-11-09 19:44:40 UTC
Created attachment 53289 [details]
Valgrind log for the crashing kdevelop 4.1
Comment 13 Milian Wolff 2010-11-10 21:04:18 UTC
ok, I think the valgrind log you posted clarifies that I've fixed it. stay tuned for kdev 4.1.1
Comment 14 Milian Wolff 2010-11-22 13:37:36 UTC
*** Bug 257586 has been marked as a duplicate of this bug. ***
Comment 15 Ioannis 2010-12-18 17:22:38 UTC
Created attachment 55053 [details]
New crash information added by DrKonqi

kdevelop (4.1.1) on KDE Platform 4.5.4 (KDE 4.5.4) using Qt 4.7.0

- What I was doing when the application crashed:
start kdevelop via synapse 

This is on Ubuntu 10.10 with ppa backports for KDE, kdevelop 4.1.1. So it's not fixed yet.

It exhibits the same behavior as reported above. Kdevelop crashes when launched via menu or gnome-do/synapse, but not from CLI

-- Backtrace (Reduced):
#6  0x00007f1dc0966410 in KDevelop::CodeHighlightingInstance::highlightDUChain (this=0x3f40b70, context=<value optimized out>, colorsForDeclarations=) at ../../language/highlighting/codehighlighting.cpp:262
#7  0x00007f1dc09673ef in KDevelop::CodeHighlightingInstance::highlightDUChainSimple (this=0x3f40b70, context=0x380ec10) at ../../language/highlighting/codehighlighting.cpp:224
#8  0x00007f1dc0967302 in KDevelop::CodeHighlightingInstance::highlightDUChainSimple (this=0x3f40b70, context=0x3812c40) at ../../language/highlighting/codehighlighting.cpp:236
#9  0x00007f1dc096753b in KDevelop::CodeHighlightingInstance::highlightDUChain (this=0x3f40b70, context=0x3812c40) at ../../language/highlighting/codehighlighting.cpp:204
#10 0x00007f1dc09677c1 in KDevelop::CodeHighlighting::highlightDUChain (this=<value optimized out>, context=0x3812c40) at ../../language/highlighting/codehighlighting.cpp:173
Comment 16 Ioannis 2010-12-18 17:26:22 UTC
starting via CLI with either 'setsid' or suffixed with '&', will cause the crash as well.
Comment 17 Milian Wolff 2010-12-19 19:36:22 UTC
please run it through valgrind then show me the log it produces when you hit the crash. Considering that it crashes somewhere else please put it into a new bug report. To run valgrind, use this:

valgrind --track-origins=yes --num-callers=25 kdevelop

thanks
Comment 18 Ioannis 2010-12-19 21:08:01 UTC
Created attachment 55082 [details]
valgrind log
Comment 19 Ioannis 2010-12-19 21:10:12 UTC
Created attachment 55083 [details]
crash from valgrind report (no debug symbols though)

I'll include the log produced by valgrind and the crash report for that here, even though the latter one has no debug symbols. Can't find them for my distro (Ubuntu). Added the ddebs as well for the dbgsym.
Comment 20 Milian Wolff 2010-12-20 20:00:47 UTC
Valgrind and gdb are mutually exclusive, the crash report is hence useless. And the memcheck log says KDevelop didn't crash, nor does it contain anything interesting. So please try again to actually reproduce the crash there, if you look at the log it doesn't say anything about KDevelop::CodeHighlightingInstance::highlightDUChain (which it should).
Comment 21 Ioannis 2010-12-20 20:34:22 UTC
Created attachment 55108 [details]
valgrind (memcheck) log

I see. Unfortunately that's all I get from memcheck. I'm including another produced log from valgrind, this time by streaming its output to a file (rather than using --log-file), including stderr. I don't get the KDevelop::CodeHighlightingInstance::highlightDUChain you mentioned, but you can see that kdevelop does crash.
Comment 22 Ioannis 2010-12-20 20:41:21 UTC
Created attachment 55109 [details]
kdevelop run without crashing log

don't know if that helps, but I've also added the output I get from kdevelop when run via CLI (without & or setsid), which doesn't crash.
Comment 23 Milian Wolff 2010-12-22 20:47:58 UTC
both are useless - I cannot help you without a way to reproduce (launching in the background with & or setsid both work for me). Anyways, this is unrelated to the original bug here - if you ever get more information, open a new bug. Just make sure you get a valgrind log that shows similar backtrace to the gdb crash, then you got something useful. The fact that this is not possible for you is really strange imo. Anyways, sorry - but nothing I can do.
Comment 24 Milian Wolff 2010-12-29 16:22:21 UTC
*** Bug 261453 has been marked as a duplicate of this bug. ***
Comment 25 Anton 2011-01-22 11:11:35 UTC
Created attachment 56311 [details]
New crash information added by DrKonqi

kdevelop (4.1.0) on KDE Platform 4.5.5 (KDE 4.5.5) using Qt 4.7.1

- What I was doing when the application crashed:

Software:
XWin 1.9.3-2 (Cygwin/X)
Putty 0.60
Screen version 4.00.03 (FAU) 23-Oct-06

I tried to start kdevelop using PuTTY.

[user@localmachine ~]$ screen -dR
[user@localmachine ~]$ sudo su -
[root@localmachine ~]# echo $DISPLAY
localhost:10.0
[root@localmachine ~]# kdevelop

-- Backtrace (Reduced):
#6  value (this=0x0, number=6) at /usr/include/QtCore/qhash.h:606
#7  operator[] (this=0x0, number=6) at /usr/include/QtCore/qhash.h:731
#8  KDevelop::ConfigurableHighlightingColors::getAttribute (this=0x0, number=6) at /usr/src/debug/kdevplatform-1.1.0/language/highlighting/configurablecolors.cpp:43
#9  0x0000003a41bdece6 in KDevelop::CodeHighlighting::attributeForType (this=0x2cacbf0, type=KDevelop::HighlightingEnumContainer::ForwardDeclarationType, context=KDevelop::HighlightingEnumContainer::DeclarationContext, color=...) at /usr/src/debug/kdevplatform-1.1.0/language/highlighting/codehighlighting.cpp:103
#10 0x0000003a41bdf79b in KDevelop::CodeHighlightingInstance::highlightDeclaration (this=0x3b6dba0, declaration=<value optimized out>, color=...) at /usr/src/debug/kdevplatform-1.1.0/language/highlighting/codehighlighting.cpp:447
Comment 26 Milian Wolff 2011-02-15 09:37:04 UTC
*** Bug 266350 has been marked as a duplicate of this bug. ***
Comment 27 Milian Wolff 2011-03-03 11:03:35 UTC
*** Bug 267541 has been marked as a duplicate of this bug. ***
Comment 28 Milian Wolff 2011-03-29 11:54:09 UTC
*** Bug 268235 has been marked as a duplicate of this bug. ***
Comment 29 Pericles Luz 2011-06-17 15:15:02 UTC
Created attachment 61086 [details]
New crash information added by DrKonqi

kdevelop (4.0.2 (using KDevPlatform 1.0.2)) on KDE Platform 4.5.5 (KDE 4.5.5) using Qt 4.7.0

- What I was doing when the application crashed:

- I was starting the KDevelop. It's important to say that only on te first startup the application crashs. It not happen on de second one.

-- Backtrace (Reduced):
#7  value (this=0x0, number=3) at /usr/include/qt4/QtCore/qhash.h:606
#8  operator[] (this=0x0, number=3) at /usr/include/qt4/QtCore/qhash.h:731
#9  KDevelop::ConfigurableHighlightingColors::getAttribute (this=0x0, number=3) at ../../language/highlighting/configurablecolors.cpp:41
#10 0x06cfce08 in KDevelop::CodeHighlighting::attributeForType (this=0x9074e18, type=KDevelop::HighlightingEnumContainer::LocalVariableType, context=KDevelop::HighlightingEnumContainer::DeclarationContext, color=...) at ../../language/highlighting/codehighlighting.cpp:101
#11 0x06cfdd9f in KDevelop::CodeHighlightingInstance::highlightDeclaration (this=0x93fe080, declaration=0x92e1110, color=...) at ../../language/highlighting/codehighlighting.cpp:445