Bug 307132 - Crash opening existing project.
Summary: Crash opening existing project.
Status: VERIFIED FIXED
Alias: None
Product: kdev-python
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Sven Brauch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-21 00:08 UTC by rjwgnr27
Modified: 2012-10-06 18:16 UTC (History)
2 users (show)

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 rjwgnr27 2012-09-21 00:08:37 UTC
Application: kdevelop (4.4.60)
KDE Platform Version: 4.6.5 (4.6.5) (Compiled from sources)
Qt Version: 4.7.4
Operating System: Linux 2.6.43.8-1.fc15.x86_64 x86_64
Distribution: "Fedora release 15 (Lovelock)"

-- Information about the crash:
Opening saved project. Previous instance stop context parsing in C++ file. Had to "kill -9" previous instance.

Tried to start multiple time, at one point selecting "Ok" to delete cache.

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
165	62:	movl	(%rsp), %edi
[Current thread is 1 (Thread 0x7fb182c50840 (LWP 18048))]

Thread 11 (Thread 0x7fb174a97700 (LWP 18050)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:219
#1  0x0000003c69274efe in wait (time=1000, this=0x1e861c0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x1e8b990, time=1000) at thread/qwaitcondition_unix.cpp:160
#3  0x00000039ee4b0f9b in KDevelop::DUChainPrivate::CleanupThread::run (this=<optimized out>) at /srv/devel/src/kde4/src/kdevplatform/language/duchain/duchain.cpp:282
#4  0x0000003c69274af5 in QThreadPrivate::start (arg=0x1e8b970) at thread/qthread_unix.cpp:331
#5  0x0000003c5f607b41 in start_thread (arg=0x7fb174a97700) at pthread_create.c:305
#6  0x0000003c5eae0e6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 10 (Thread 0x7fb15da47700 (LWP 18053)):
#0  0x0000003c5ead85a3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003c5e642d24 in g_main_context_poll (n_fds=1, fds=0x7fb1580026b0, priority=<optimized out>, timeout=-1, context=0x7fb1580009b0) at gmain.c:3405
#2  g_main_context_iterate (context=0x7fb1580009b0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3087
#3  0x0000003c5e64325c in g_main_context_iteration (context=0x7fb1580009b0, may_block=1) at gmain.c:3155
#4  0x0000003c693853f6 in QEventDispatcherGlib::processEvents (this=0x7fb1580008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x0000003c69359e02 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003c69359fff in QEventLoop::exec (this=0x7fb15da46d40, flags=...) at kernel/qeventloop.cpp:201
#7  0x0000003c6927207f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x0000003c69274af5 in QThreadPrivate::start (arg=0x2a2c9e0) at thread/qthread_unix.cpp:331
#9  0x0000003c5f607b41 in start_thread (arg=0x7fb15da47700) at pthread_create.c:305
#10 0x0000003c5eae0e6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 9 (Thread 0x7fb15d246700 (LWP 18054)):
#0  0x0000003c5ead85a3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003c5e642d24 in g_main_context_poll (n_fds=1, fds=0x7fb1500026b0, priority=<optimized out>, timeout=-1, context=0x7fb1500009b0) at gmain.c:3405
#2  g_main_context_iterate (context=0x7fb1500009b0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3087
#3  0x0000003c5e64325c in g_main_context_iteration (context=0x7fb1500009b0, may_block=1) at gmain.c:3155
#4  0x0000003c693853f6 in QEventDispatcherGlib::processEvents (this=0x7fb1500008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x0000003c69359e02 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003c69359fff in QEventLoop::exec (this=0x7fb15d245d40, flags=...) at kernel/qeventloop.cpp:201
#7  0x0000003c6927207f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x0000003c69274af5 in QThreadPrivate::start (arg=0x2a2b0c0) at thread/qthread_unix.cpp:331
#9  0x0000003c5f607b41 in start_thread (arg=0x7fb15d246700) at pthread_create.c:305
#10 0x0000003c5eae0e6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 8 (Thread 0x7fb15ca45700 (LWP 18059)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x0000003c7df84d62 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x3c7e27dc20) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x0000003c7df84d99 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x0000003c5f607b41 in start_thread (arg=0x7fb15ca45700) at pthread_create.c:305
#4  0x0000003c5eae0e6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 7 (Thread 0x7fb157bef700 (LWP 18060)):
#0  0x0000003c5ead85a3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003c5e642d24 in g_main_context_poll (n_fds=1, fds=0x7fb14c0022c0, priority=<optimized out>, timeout=-1, context=0x7fb14c0009b0) at gmain.c:3405
#2  g_main_context_iterate (context=0x7fb14c0009b0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3087
#3  0x0000003c5e64325c in g_main_context_iteration (context=0x7fb14c0009b0, may_block=1) at gmain.c:3155
#4  0x0000003c693853f6 in QEventDispatcherGlib::processEvents (this=0x7fb14c0008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x0000003c69359e02 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003c69359fff in QEventLoop::exec (this=0x7fb157beed10, flags=...) at kernel/qeventloop.cpp:201
#7  0x0000003c6927207f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x0000003c6933ceaf in QInotifyFileSystemWatcherEngine::run (this=0x48eda10) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x0000003c69274af5 in QThreadPrivate::start (arg=0x48eda10) at thread/qthread_unix.cpp:331
#10 0x0000003c5f607b41 in start_thread (arg=0x7fb157bef700) at pthread_create.c:305
#11 0x0000003c5eae0e6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 6 (Thread 0x7fb155f7e700 (LWP 18123)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x00000032bf8ca93a in WTF::TCMalloc_PageHeap::scavengerThread (this=0x32c00cf2c0) at wtf/FastMalloc.cpp:2378
#2  0x00000032bf8caa29 in WTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at wtf/FastMalloc.cpp:1497
#3  0x0000003c5f607b41 in start_thread (arg=0x7fb155f7e700) at pthread_create.c:305
#4  0x0000003c5eae0e6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7fb15677f700 (LWP 18124)):
#0  0x0000003c5ead85a3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003c5e642d24 in g_main_context_poll (n_fds=1, fds=0x7fb148012b90, priority=<optimized out>, timeout=6149, context=0x7fb148013640) at gmain.c:3405
#2  g_main_context_iterate (context=0x7fb148013640, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3087
#3  0x0000003c5e64325c in g_main_context_iteration (context=0x7fb148013640, may_block=1) at gmain.c:3155
#4  0x0000003c693853f6 in QEventDispatcherGlib::processEvents (this=0x7fb1480013e0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x0000003c69359e02 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003c69359fff in QEventLoop::exec (this=0x7fb15677ed40, flags=...) at kernel/qeventloop.cpp:201
#7  0x0000003c6927207f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x0000003c69274af5 in QThreadPrivate::start (arg=0x48ebe70) at thread/qthread_unix.cpp:331
#9  0x0000003c5f607b41 in start_thread (arg=0x7fb15677f700) at pthread_create.c:305
#10 0x0000003c5eae0e6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7fb1439e4700 (LWP 18214)):
[KCrash Handler]
#6  0x00007fb14236df24 in Python::ContextBuilder::simpleRangeForNode (node=0x25, moveRight=true) at /srv/devel/src/kde4/src/kdev-python/duchain/contextbuilder.cpp:110
#7  0x00007fb14237ae37 in Python::DeclarationBuilder::visitFunctionDefinition (this=0x7fb11beaa960, node=0x7fb11be9e348) at /srv/devel/src/kde4/src/kdev-python/duchain/declarationbuilder.cpp:1509
#8  0x00007fb16de56fb4 in Python::AstDefaultVisitor::visitClassDefinition (this=0x7fb11beaa9c0, node=0x7fb11be9df50) at /srv/devel/src/kde4/src/kdev-python/parser/astdefaultvisitor.cpp:317
#9  0x00007fb14237bb8a in Python::DeclarationBuilder::visitClassDefinition (this=0x7fb11beaa960, node=0x7fb11be9df50) at /srv/devel/src/kde4/src/kdev-python/duchain/declarationbuilder.cpp:1399
#10 0x00007fb16de5677c in Python::AstDefaultVisitor::visitCode (this=0x7fb11beaa9c0, node=<optimized out>) at /srv/devel/src/kde4/src/kdev-python/parser/astdefaultvisitor.cpp:47
#11 0x00007fb14236e8dc in Python::ContextBuilder::visitCode (this=0x7fb11beaa960, node=0x8156a10) at /srv/devel/src/kde4/src/kdev-python/duchain/contextbuilder.cpp:341
#12 0x00007fb142383130 in supportBuild (context=0x7fb11bf6b4a0, node=0x8156a10, this=0x7fb11beaa960) at /usr/include/kde4/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:133
#13 KDevelop::AbstractTypeBuilder<Python::Ast, Python::Identifier, Python::ContextBuilder>::supportBuild (this=0x7fb11beaa960, node=0x8156a10, context=<optimized out>) at /usr/include/kde4/kdevplatform/language/duchain/builders/abstracttypebuilder.h:85
#14 0x00007fb1423701dd in build (updateContext=..., node=0x8156a10, url=<optimized out>, this=0x7fb11beaa960) at /usr/include/kde4/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:113
#15 Python::ContextBuilder::build (this=0x7fb11beaa960, url=<optimized out>, node=0x8156a10, updateContext=<optimized out>) at /srv/devel/src/kde4/src/kdev-python/duchain/contextbuilder.cpp:85
#16 0x00007fb14237415c in Python::DeclarationBuilder::build (this=0x7fb11beaa960, url=..., node=0x8156a10, updateContext=...) at /srv/devel/src/kde4/src/kdev-python/duchain/declarationbuilder.cpp:102
#17 0x00007fb1423740e4 in Python::DeclarationBuilder::build (this=0x7fb1439e3690, url=..., node=0x8156a10, updateContext=...) at /srv/devel/src/kde4/src/kdev-python/duchain/declarationbuilder.cpp:95
#18 0x00007fb1427da310 in Python::ParseJob::run (this=0x7fb1081e9af0) at /srv/devel/src/kde4/src/kdev-python/pythonparsejob.cpp:156
#19 0x0000003c82a0be51 in ThreadWeaver::JobRunHelper::runTheJob (this=0x7fb1439e3ce0, th=0x7e84940, job=0x7b597b0) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Job.cpp:106
#20 0x0000003c82a0bf7c in ThreadWeaver::Job::execute (this=0x7b597b0, th=0x7e84940) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Job.cpp:135
#21 0x0000003c82a0b65f in ThreadWeaver::ThreadRunHelper::run (this=0x7fb1439e3d60, parent=0xe61f40, th=0x7e84940) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Thread.cpp:95
#22 0x0000003c82a0b71b in ThreadWeaver::Thread::run (this=0x7e84940) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Thread.cpp:142
#23 0x0000003c69274af5 in QThreadPrivate::start (arg=0x7e84940) at thread/qthread_unix.cpp:331
#24 0x0000003c5f607b41 in start_thread (arg=0x7fb1439e4700) at pthread_create.c:305
#25 0x0000003c5eae0e6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7fb1431e3700 (LWP 18215)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x0000003c69274f8b in wait (time=18446744073709551615, this=0xe62070) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0xe750c0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x0000003c82a0a224 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0xe61f40, th=0x7fb144010d70) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x0000003c82a0c7cb in ThreadWeaver::WorkingHardState::applyForWork (this=0xe75b20, th=0x7fb144010d70) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x0000003c82a0b68f in ThreadWeaver::ThreadRunHelper::run (this=0x7fb1431e2d60, parent=0xe61f40, th=0x7fb144010d70) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Thread.cpp:87
#6  0x0000003c82a0b71b in ThreadWeaver::Thread::run (this=0x7fb144010d70) at /usr/src/debug/kdelibs-4.6.5/threadweaver/Weaver/Thread.cpp:142
#7  0x0000003c69274af5 in QThreadPrivate::start (arg=0x7fb144010d70) at thread/qthread_unix.cpp:331
#8  0x0000003c5f607b41 in start_thread (arg=0x7fb1431e3700) at pthread_create.c:305
#9  0x0000003c5eae0e6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fb142326700 (LWP 21609)):
#0  0x0000003c5ead85a3 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x0000003c5e642d24 in g_main_context_poll (n_fds=1, fds=0x7fb1340024b0, priority=<optimized out>, timeout=-1, context=0x7fb1340009b0) at gmain.c:3405
#2  g_main_context_iterate (context=0x7fb1340009b0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3087
#3  0x0000003c5e64325c in g_main_context_iteration (context=0x7fb1340009b0, may_block=1) at gmain.c:3155
#4  0x0000003c693853f6 in QEventDispatcherGlib::processEvents (this=0x7fb1340008c0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x0000003c69359e02 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x0000003c69359fff in QEventLoop::exec (this=0x7fb142325d40, flags=...) at kernel/qeventloop.cpp:201
#7  0x0000003c6927207f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x0000003c69274af5 in QThreadPrivate::start (arg=0x7b05f00) at thread/qthread_unix.cpp:331
#9  0x0000003c5f607b41 in start_thread (arg=0x7fb142326700) at pthread_create.c:305
#10 0x0000003c5eae0e6d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fb182c50840 (LWP 18048)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:165
#1  0x0000003c69274f8b in wait (time=18446744073709551615, this=0x491ca50) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x491c990, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x0000003c6927483c in QThread::wait (this=<optimized out>, time=18446744073709551615) at thread/qthread_unix.cpp:745
#4  0x0000003c693308e0 in QFileSystemWatcher::~QFileSystemWatcher (this=0x49182d0, __in_chrg=<optimized out>) at io/qfilesystemwatcher.cpp:446
#5  0x0000003c693309b9 in QFileSystemWatcher::~QFileSystemWatcher (this=0x49182d0, __in_chrg=<optimized out>) at io/qfilesystemwatcher.cpp:462
#6  0x0000003c6936c465 in QObjectPrivate::deleteChildren (this=0x491b4f0) at kernel/qobject.cpp:1955
#7  0x0000003c69371a19 in QObject::~QObject (this=0x491b4c0, __in_chrg=<optimized out>) at kernel/qobject.cpp:946
#8  0x000000381e880919 in Solid::Backends::Fstab::FstabWatcher::~FstabWatcher (this=0x491b4c0, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.6.5/solid/solid/backends/fstab/fstabwatcher.cpp:51
#9  0x0000003c5ea388c1 in __run_exit_handlers (status=1, listp=0x3c5ed935a8, run_list_atexit=true) at exit.c:78
#10 0x0000003c5ea38945 in __GI_exit (status=<optimized out>) at exit.c:100
#11 0x000000381be28a68 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:772
#12 0x00000032b8a41fd8 in KApplication::xioErrhandler (this=0x7fffb4a96490, dpy=0x83e380) at /usr/src/debug/kdelibs-4.6.5/kdeui/kernel/kapplication.cpp:419
#13 0x0000003c612481be in _XIOError (dpy=0x83e380) at XlibInt.c:1618
#14 0x0000003c61245a5d in _XEventsQueued (dpy=0x83e380, mode=<optimized out>) at xcb_io.c:307
#15 0x0000003c612364ff in XEventsQueued (dpy=0x83e380, mode=2) at Pending.c:43
#16 0x000000381be5fb17 in x11EventSourcePrepare (s=0x815de0, timeout=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:77
#17 0x0000003c5e641cc2 in g_main_context_prepare (context=0x814ce0, priority=0x7fffb4a960b8) at gmain.c:2762
#18 0x0000003c5e642bbd in g_main_context_iterate (context=0x814ce0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3072
#19 0x0000003c5e64325c in g_main_context_iteration (context=0x814ce0, may_block=1) at gmain.c:3155
#20 0x0000003c693853f6 in QEventDispatcherGlib::processEvents (this=0x767580, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#21 0x000000381be5fc1e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:207
#22 0x0000003c69359e02 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#23 0x0000003c69359fff in QEventLoop::exec (this=0x7fffb4a96210, flags=...) at kernel/qeventloop.cpp:201
#24 0x0000003c6935e117 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#25 0x000000000040aa05 in main (argc=<optimized out>, argv=<optimized out>) at /srv/devel/src/kde4/src/kdevelop/app/main.cpp:518

Reported using DrKonqi
Comment 1 Milian Wolff 2012-10-04 23:07:05 UTC
Invalid memory access (uninitialized data?).

If it's reproducible, maybe run through valgrind and give Sven a log so he can fix it:

valgrind --track-origins=yes kdevelop ...
Comment 2 Sven Brauch 2012-10-04 23:41:59 UTC
Hi!

This is indeed a crash in the python plugin, but it has been a while since it was reported... and the offending code is gone. Can you check whether the problem can still be reproduced using a recent version of the plugin?

Greetings,
Sven
Comment 3 Matěj Laitl 2012-10-06 16:04:51 UTC
Reproducible on my side with kdev-python beta2-38-ga502a7d everytime, updating to newer version now:

 ====> PARSING ====> parsing file  "/usr/lib64/python2.7/site-packages/gobject/__init__.py" ; has priority -2 
 ====> AST     ====>     building abstract syntax tree for  "/usr/lib64/python2.7/site-packages/gobject/__init__.py" 
 ====> DUCHAIN ====>     rebuilding duchain for "/usr/lib64/python2.7/site-packages/gobject/__init__.py" (was built before) 
 ====> AST     ====>     building abstract syntax tree for  "/usr/share/apps/kdevpythonsupport/documentation_files/PyQt4/QtGui.py" 
 ====> DUCHAIN ====>     rebuilding duchain for "/usr/lib64/python2.7/site-packages/gobject/__init__.py" (was built before) 
 ====> PARSING ====> parsing file  "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/__init__.py" ; has priority -2 
 ====> AST     ====>     building abstract syntax tree for  "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/__init__.py" 
 ====> DUCHAIN ====>     building duchain for "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/__init__.py" 
 ====> DUCHAIN ====>     rebuilding duchain for "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/__init__.py" (was built before) 
 ====> DUCHAIN ====>     rebuilding duchain for "/usr/share/apps/kdevpythonsupport/documentation_files/PyQt4/QtGui.py" (was built before) 
 ====> PARSING ====> parsing file  "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/__version__.py" ; has priority -3 
 ====> AST     ====>     building abstract syntax tree for  "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/__version__.py" 
 ====> DUCHAIN ====>     building duchain for "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/__version__.py" 
 ====> DUCHAIN ====>     rebuilding duchain for "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/__version__.py" (was built before) 
 ====> PARSING ====> parsing file  "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core.py" ; has priority -3 
 ====> AST     ====>     building abstract syntax tree for  "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core.py" 
 ====> DUCHAIN ====>     building duchain for "/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core.py" 

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffa70b9700 (LWP 15036)]
Python::ContextBuilder::simpleRangeForNode (node=0xf5, moveRight=true)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp:110
110     /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp: No such file or directory.
        in /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp
(gdb) bt
#0  Python::ContextBuilder::simpleRangeForNode (node=0xf5, moveRight=true)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp:110
#1  0x00007fffbb5450a8 in Python::DeclarationBuilder::visitFunctionDefinition (this=0x7fff491357a0, node=0x7fff48233930)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:1509
#2  0x00007fffdc0be533 in Python::AstDefaultVisitor::visitClassDefinition (this=0x7fff49135800, node=0x7fff482324f0)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/parser/astdefaultvisitor.cpp:317
#3  0x00007fffbb545f06 in Python::DeclarationBuilder::visitClassDefinition (this=0x7fff491357a0, node=0x7fff482324f0)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:1399
#4  0x00007fffdc0bdfa3 in Python::AstDefaultVisitor::visitCode (this=0x7fff49135800, node=<optimized out>)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/parser/astdefaultvisitor.cpp:47
#5  0x00007fffbb5325e4 in Python::ContextBuilder::visitCode (this=0x7fff491357a0, node=0x4aa4d90)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp:341
#6  0x00007fffbb5519f5 in supportBuild (context=0x7fff49403610, node=0x4aa4d90, this=0x7fff491357a0)
    at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:133
#7  KDevelop::AbstractTypeBuilder<Python::Ast, Python::Identifier, Python::ContextBuilder>::supportBuild (this=0x7fff491357a0, node=0x4aa4d90, context=<optimized out>)
    at /usr/include/kdevplatform/language/duchain/builders/abstracttypebuilder.h:85
#8  0x00007fffbb53538c in build (updateContext=..., node=0x4aa4d90, url=<optimized out>, this=0x7fff491357a0)
    at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:113
#9  Python::ContextBuilder::build (this=0x7fff491357a0, url=<optimized out>, node=0x4aa4d90, updateContext=...)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp:85
#10 0x00007fffbb538960 in Python::DeclarationBuilder::build (this=0x7fff491357a0, url=..., node=0x4aa4d90, updateContext=...)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:102
#11 0x00007fffbb5388f3 in Python::DeclarationBuilder::build (this=0x7fffa70b8700, url=..., node=0x4aa4d90, updateContext=...)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:95
#12 0x00007fffbb9e6d9f in Python::ParseJob::run (this=0x7fffa70b8b80) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/pythonparsejob.cpp:156
#13 0x00007fffeb3f58ab in ThreadWeaver::JobRunHelper::runTheJob (this=0x7fffa70b8d60, th=0x3855c70, job=0x33bd6c0)
    at /var/tmp/portage/kde-base/kdelibs-4.9.2/work/kdelibs-4.9.2/threadweaver/Weaver/Job.cpp:106
#14 0x00007fffeb3f5a2e in ThreadWeaver::Job::execute (this=0x33bd6c0, th=0x3855c70)
    at /var/tmp/portage/kde-base/kdelibs-4.9.2/work/kdelibs-4.9.2/threadweaver/Weaver/Job.cpp:135
#15 0x00007fffeb3f515f in ThreadWeaver::ThreadRunHelper::run (this=0x7fffa70b8df0, parent=0xbbb010, th=0x3855c70)
    at /var/tmp/portage/kde-base/kdelibs-4.9.2/work/kdelibs-4.9.2/threadweaver/Weaver/Thread.cpp:95
#16 0x00007fffeb3f5218 in ThreadWeaver::Thread::run (this=0x3855c70) at /var/tmp/portage/kde-base/kdelibs-4.9.2/work/kdelibs-4.9.2/threadweaver/Weaver/Thread.cpp:142
#17 0x00007ffff5978048 in QThreadPrivate::start (arg=0x3855c70) at thread/qthread_unix.cpp:338
#18 0x00007ffff426ada6 in start_thread (arg=0x7fffa70b9700) at pthread_create.c:305
#19 0x00007ffff456b10d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
(gdb) info threads
  Id   Target Id         Frame 
* 18   Thread 0x7fffa70b9700 (LWP 15036) "ThreadWeaver::T" Python::ContextBuilder::simpleRangeForNode (node=0xf5, moveRight=true)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp:110
  17   Thread 0x7fffa7fff700 (LWP 15035) "ThreadWeaver::T" 0x00007ffff4538c1d in nanosleep () at ../sysdeps/unix/syscall-template.S:82
  16   Thread 0x7fffb8df1700 (LWP 14866) "QThread" 0x00007ffff45621e3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>)
    at ../sysdeps/unix/sysv/linux/poll.c:87
  15   Thread 0x7fffa68b8700 (LWP 14865) "kdevelop" pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
  8    Thread 0x7fffbace6700 (LWP 14838) "QInotifyFileSys" 0x00007ffff45621e3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>)
    at ../sysdeps/unix/sysv/linux/poll.c:87
  7    Thread 0x7fffbb4e7700 (LWP 14830) "QThread" 0x00007ffff45621e3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>)
    at ../sysdeps/unix/sysv/linux/poll.c:87
  6    Thread 0x7fffc495e700 (LWP 14825) "QThread" 0x00007ffff45621e3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>)
    at ../sysdeps/unix/sysv/linux/poll.c:87
  5    Thread 0x7fffc515f700 (LWP 14824) "QThread" 0x00007ffff45621e3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>)
    at ../sysdeps/unix/sysv/linux/poll.c:87
  4    Thread 0x7fffcd220700 (LWP 14787) "QProcessManager" 0x00007ffff4564853 in select () at ../sysdeps/unix/syscall-template.S:82
  3    Thread 0x7fffce500700 (LWP 14786) "QThread" 0x00007ffff45621e3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>)
    at ../sysdeps/unix/sysv/linux/poll.c:87
  2    Thread 0x7fffdd348700 (LWP 14785) "QThread" pthread_cond_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:215
  1    Thread 0x7ffff7f8b780 (LWP 14744) "kdevelop" 0x00007ffff45621e3 in *__GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>)
    at ../sysdeps/unix/sysv/linux/poll.c:87
Comment 4 Sven Brauch 2012-10-06 17:09:51 UTC
Hi,

thanks for the backtrace. I tried to parse that file and a bit of other wxgtk stuff with beta2-49-ga616174, and it works fine here. I recently fixed a similar bug, can you update to beta2-48-5b9f77c41 or later? It will probably work there. Please let me know if not, then I'll investiage further.

Greetings,
Sven
Comment 5 Matěj Laitl 2012-10-06 17:29:53 UTC
Cannot reproduce with current git even if I try hard -> yay fixed! Thanks, Sven.
Comment 6 Sven Brauch 2012-10-06 18:16:58 UTC
Cool, thanks for your help. :)