Bug 226874 - Crash in background parser on KDevelop shutdown
Summary: Crash in background parser on KDevelop shutdown
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: language (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2010-02-14 19:37 UTC by Niko Sams
Modified: 2018-10-21 05:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (32.35 KB, text/plain)
2010-02-21 09:26 UTC, Tobias Hochgürtel
Details
KDEV_SESSION={7f04ae30-167d-463a-9d90-ebab5fcc932c} valgrind ~tobi/Projekte/compiled/kde4/bin/kdevelop.bin (232.96 KB, application/octet-stream)
2010-02-21 10:49 UTC, Tobias Hochgürtel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niko Sams 2010-02-14 19:37:56 UTC
Application that crashed: kdevelop.bin
Version of the application: 3.9.98 (using KDevPlatform 0.9.98)
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-19-generic i686
Distribution: Ubuntu 9.10

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

Thread 3 (Thread 0xb4f47b70 (LWP 12038)):
#0  0x00110422 in __kernel_vsyscall ()
#1  0x06810142 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x054508d4 in pthread_cond_timedwait () from /lib/tls/i686/cmov/libc.so.6
#3  0x0139bdef in QWaitConditionPrivate::wait (this=0x876ca9c, mutex=0x876caa0, time=200000) at thread/qwaitcondition_unix.cpp:85
#4  QWaitCondition::wait (this=0x876ca9c, mutex=0x876caa0, time=200000) at thread/qwaitcondition_unix.cpp:159
#5  0x020c801c in KDevelop::DUChainPrivate::CleanupThread::run (this=0x876ca90) at /home/niko/kdesvn/sdk-git/kdevplatform/language/duchain/duchain.cpp:286
#6  0x0139ae32 in QThreadPrivate::start (arg=0x876ca90) at thread/qthread_unix.cpp:188
#7  0x0680b80e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#8  0x054438de in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb1b38b70 (LWP 12078)):
#0  0x00110422 in __kernel_vsyscall ()
#1  0x0680fe15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0545087d in pthread_cond_wait () from /lib/tls/i686/cmov/libc.so.6
#3  0x0139be67 in QWaitConditionPrivate::wait (this=0x8705340, mutex=0x8705548, time=4294967295) at thread/qwaitcondition_unix.cpp:87
#4  QWaitCondition::wait (this=0x8705340, mutex=0x8705548, time=4294967295) at thread/qwaitcondition_unix.cpp:159
#5  0x0043cb30 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x8705328, th=0x880ae38) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#6  0x0043f19c in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x87037e8, th=0x880ae38) at ../../../threadweaver/Weaver/WorkingHardState.cpp:80
#7  0x0043b1fb in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x8705328, th=0x880ae38) at ../../../threadweaver/Weaver/WeaverImpl.cpp:356
#8  0x0043f292 in ThreadWeaver::WorkingHardState::applyForWork (this=0x87037e8, th=0x880ae38) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#9  0x0043cdb3 in ThreadWeaver::WeaverImpl::applyForWork (this=0x8705328, th=0x880ae38, previous=0x8a191b0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:351
#10 0x0043d3be in ThreadWeaver::ThreadRunHelper::run (this=0xb1b38304, parent=0x8705328, th=0x880ae38) at ../../../threadweaver/Weaver/Thread.cpp:87
#11 0x0043d9db in ThreadWeaver::Thread::run (this=0x880ae38) at ../../../threadweaver/Weaver/Thread.cpp:142
#12 0x0139ae32 in QThreadPrivate::start (arg=0x880ae38) at thread/qthread_unix.cpp:188
#13 0x0680b80e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#14 0x054438de in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb7850700 (LWP 12037)):
[KCrash Handler]
#5  0x020afd3f in ~KSharedPtr (this=0xbffa266c, __in_chrg=<value optimized out>) at /usr/include/ksharedptr.h:90
#6  0x020ae0b1 in ~ParseJob (this=0x8a191b0, __in_chrg=<value optimized out>) at /home/niko/kdesvn/sdk-git/kdevplatform/language/backgroundparser/parsejob.cpp:121
#7  0x028bb87c in ~ParseJob (this=0x8a191b0, __in_chrg=<value optimized out>) at /home/niko/kdesvn/sdk-git/kdevelop-plugins/php/phpparsejob.cpp:103
#8  0x020a743f in ~BackgroundParserPrivate (this=0x8705098, __in_chrg=<value optimized out>) at /home/niko/kdesvn/sdk-git/kdevplatform/language/backgroundparser/backgroundparser.cpp:105
#9  0x020a4dbc in ~BackgroundParser (this=0x8703460, __in_chrg=<value optimized out>) at /home/niko/kdesvn/sdk-git/kdevplatform/language/backgroundparser/backgroundparser.cpp:372
#10 0x0149a46f in QObjectPrivate::deleteChildren (this=0x8705668) at kernel/qobject.cpp:1847
#11 0x014a27cf in ~QObject (this=0x8703618, __in_chrg=<value optimized out>) at kernel/qobject.cpp:836
#12 0x0066f493 in ~ILanguageController (this=0x8703618, __in_chrg=<value optimized out>) at /home/niko/kdesvn/sdk-git/kdevplatform/interfaces/ilanguagecontroller.h:38
#13 0x0066e25e in ~LanguageController (this=0x8703618, __in_chrg=<value optimized out>) at /home/niko/kdesvn/sdk-git/kdevplatform/shell/languagecontroller.cpp:125
#14 0x0064a5ec in ~CorePrivate (this=0x858ecf0, __in_chrg=<value optimized out>) at /home/niko/kdesvn/sdk-git/kdevplatform/shell/core.cpp:210
#15 0x0064ac08 in ~Core (this=0x858ece0, __in_chrg=<value optimized out>) at /home/niko/kdesvn/sdk-git/kdevplatform/shell/core.cpp:261
#16 0x0149a135 in qDeleteInEventHandler (o=0x4) at kernel/qobject.cpp:3815
#17 0x0149b62b in QObject::event (this=0x858ece0, e=0x871c828) at kernel/qobject.cpp:1094
#18 0x0169ff54 in QApplicationPrivate::notify_helper (this=0x84f0128, receiver=0x858ece0, e=0x871c828) at kernel/qapplication.cpp:4056
#19 0x016a767c in QApplication::notify (this=0xbffa2d98, receiver=0x858ece0, e=0x871c828) at kernel/qapplication.cpp:3603
#20 0x0118cbfa in KApplication::notify (this=0xbffa2d98, receiver=0x858ece0, event=0x871c828) at ../../kdeui/kernel/kapplication.cpp:302
#21 0x0148b6cb in QCoreApplication::notifyInternal (this=0xbffa2d98, receiver=0x858ece0, event=0x871c828) at kernel/qcoreapplication.cpp:610
#22 0x0148c2b2 in QCoreApplication::sendEvent (receiver=0x0, event_type=52, data=0x8459ef0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#23 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=52, data=0x8459ef0) at kernel/qcoreapplication.cpp:1247
#24 0x0148c47d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=52) at kernel/qcoreapplication.cpp:1140
#25 0x0148c589 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:895
#26 0x0169fdd7 in QApplication::exec () at kernel/qapplication.cpp:3525
#27 0x0804d916 in main (argc=1, argv=0xbffa32c4) at /home/niko/kdesvn/sdk-git/kdevelop/app/main_internal.cpp:141

Reported using DrKonqi
Comment 1 Andreas Pakulat 2010-02-15 09:50:09 UTC
This probably needs a valgrind run. I can't see how the ksharedptr desctructor can crash right now.
Comment 2 Tobias Hochgürtel 2010-02-21 09:26:53 UTC
Created attachment 40975 [details]
New crash information added by DrKonqi

Same Issue here, but additional I cannot see the opened files in the editor, only the document tab shows me a list of opend files, but I cannot see the file contents.
Comment 3 Andreas Pakulat 2010-02-21 09:43:52 UTC
Really we need a valgrind run for this, so anybody who can reproduce this, please run KDEV_SESSION={.....} valgrind kdevelop.bin  (where {...} is the uuid from your session visible in kdevelop --sessions) and provide the output here.
Comment 4 Tobias Hochgürtel 2010-02-21 10:49:40 UTC
Created attachment 40977 [details]
KDEV_SESSION={7f04ae30-167d-463a-9d90-ebab5fcc932c} valgrind ~tobi/Projekte/compiled/kde4/bin/kdevelop.bin
Comment 5 Tobias Hochgürtel 2010-02-21 10:50:07 UTC
tobi@tobias-ws:~$ kdevelop --sessions

Available sessions (use '-s HASH' or '-s NAME' to open a specific one):

Hash                                    Name: Opened Projects
{7f04ae30-167d-463a-9d90-ebab5fcc932c}  hedge     [running]
WARNING: deleting stale lockfile /home/tobi/.kde/share/apps/kdevelop/sessions//{bda40a79-bf37-4550-a115-261dea66cdf3}/lock
{bda40a79-bf37-4550-a115-261dea66cdf3}  hedge

The KDEV_SESSION={7f04ae30-167d-463a-9d90-ebab5fcc932c} valgrind ~tobi/Projekte/compiled/kde4/bin/kdevelop.bin Command Output is in the Attachment..
Comment 6 Andreas Pakulat 2010-02-21 12:50:51 UTC
Did kdevelop really crash with this valgrind log? It doesn't seem to include any trace of the crash. (the conditional jump depends on uninitialized value errors are afaik false positives)

The only thing I can see is an X11 error when data is retrieved from the clipboard, but this is something you'd need to take to Qt/Nokia or x.org.
Comment 7 Tobias Hochgürtel 2010-02-21 13:11:02 UTC
oh sorry ;) my Fail. I'm new :) I haven't crashed the application again with the valgrind command, I will later try it to crash it with valgrid running, I think at the evening I have some time. ~ 20:00
Comment 8 David Nolden 2010-02-22 02:07:57 UTC
I don't see any KSharedPtr within ParseJob at all, so this crash is strange.
Comment 9 Andrew Crouthamel 2018-09-20 22:06:48 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Andrew Crouthamel 2018-10-21 05:02:58 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!