Bug 281275 - KDevelop crashes during background parsing of a python project (kdevelop-python plugin related)
Summary: KDevelop crashes during background parsing of a python project (kdevelop-pyth...
Status: RESOLVED FIXED
Alias: None
Product: kdev-python
Classification: Developer tools
Component: general (show other bugs)
Version: 1.2.60
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: 1.2.3
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-03 15:00 UTC by Matěj Laitl
Modified: 2012-06-06 16:55 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 Matěj Laitl 2011-09-03 15:00:33 UTC
Application: kdevelop (4.2.60)
KDE Platform Version: 4.7.00 (4.7.0)
Qt Version: 4.7.3
Operating System: Linux 3.1.0-rc3-00030-g958cc0b x86_64
Distribution (Platform): Gentoo Packages

-- Information about the crash:
Steps to reproduce:
0. install kdevelop-python plugin
1. git clone git://github.com/strohel/PyBayes.git
2. create a new project in that directory
3. background parser fires in, crashes in about 20%.

Versions of relevant software:
kdevplatfrom: git v1.2.3-750-g77cd431
kdevelop: git v4.2.3-446-gd952117
kdev-python: git alpha2-15-g2ac2f5a
kdelibs: 4.7.0

The crash can be reproduced every time.

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

Thread 11 (Thread 0x7fd13cbe8700 (LWP 11153)):
#0  pthread_cond_timedwait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:216
#1  0x00007fd1507b0fe2 in wait (this=<value optimized out>, mutex=0x3394270, time=1000) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x3394270, time=1000) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fd14cb6a24b in KDevelop::DUChainPrivate::CleanupThread::run (this=0x3394250) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999/language/duchain/duchain.cpp:282
#4  0x00007fd1507b04b5 in QThreadPrivate::start (arg=0x3394250) at thread/qthread_unix.cpp:320
#5  0x00007fd14f1e9c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#6  0x00007fd14f4d228d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 10 (Thread 0x7fd12a5a5700 (LWP 11156)):
#0  0x00007fd14f1ec365 in __pthread_mutex_lock (mutex=0x3f5fe88) at pthread_mutex_lock.c:61
#1  0x00007fd149fc5cd0 in g_main_context_dispatch (context=0x3f5fe80) at gmain.c:3010
#2  0x00007fd149fca548 in g_main_context_iterate (context=0x3f5fe80, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3092
#3  0x00007fd149fca6fc in g_main_context_iteration (context=0x3f5fe80, may_block=1) at gmain.c:3155
#4  0x00007fd1508ce6b6 in QEventDispatcherGlib::processEvents (this=0x3f5fd90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007fd1508a1222 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007fd1508a160c in QEventLoop::exec (this=0x7fd12a5a4de0, flags=) at kernel/qeventloop.cpp:201
#7  0x00007fd1507ad4bd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x00007fd150881098 in QInotifyFileSystemWatcherEngine::run (this=0x3f2ca30) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007fd1507b04b5 in QThreadPrivate::start (arg=0x3f2ca30) at thread/qthread_unix.cpp:320
#10 0x00007fd14f1e9c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#11 0x00007fd14f4d228d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 9 (Thread 0x7fd129396700 (LWP 11174)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fd14735835e in WTF::TCMalloc_PageHeap::scavengerThread (this=<value optimized out>) at wtf/FastMalloc.cpp:2378
#2  0x00007fd147358479 in WTF::TCMalloc_PageHeap::runScavengerThread (context=0x7fd147b0ef34) at wtf/FastMalloc.cpp:1497
#3  0x00007fd14f1e9c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#4  0x00007fd14f4d228d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 8 (Thread 0x7fd128b95700 (LWP 11610)):
#0  0x00007fd14f1ed8ce in __pthread_mutex_unlock_usercnt (mutex=0x4dd6ad8, decr=<value optimized out>) at pthread_mutex_unlock.c:52
#1  0x00007fd149fca3aa in g_main_context_iterate (context=0x4dd6ad0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3070
#2  0x00007fd149fca6fc in g_main_context_iteration (context=0x4dd6ad0, may_block=1) at gmain.c:3155
#3  0x00007fd1508ce6b6 in QEventDispatcherGlib::processEvents (this=0x4e398c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007fd1508a1222 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007fd1508a160c in QEventLoop::exec (this=0x7fd128b94de0, flags=) at kernel/qeventloop.cpp:201
#6  0x00007fd1507ad4bd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#7  0x00007fd150881098 in QInotifyFileSystemWatcherEngine::run (this=0x4d071d0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fd1507b04b5 in QThreadPrivate::start (arg=0x4d071d0) at thread/qthread_unix.cpp:320
#9  0x00007fd14f1e9c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#10 0x00007fd14f4d228d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 7 (Thread 0x7fd128394700 (LWP 11611)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fd1507b107b in wait (this=<value optimized out>, mutex=0x7fd11808d8f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x7fd11808d8f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fd147b2ec24 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x7fd11809c240, th=0x7fd11807eee0) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fd147b31e2b in ThreadWeaver::WorkingHardState::applyForWork (this=0x7fd118090540, th=0x7fd11807eee0) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fd147b3039f in ThreadWeaver::ThreadRunHelper::run (this=0x7fd128393e30, parent=0x7fd11809c240, th=0x7fd11807eee0) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/threadweaver/Weaver/Thread.cpp:87
#6  0x00007fd147b308f8 in ThreadWeaver::Thread::run (this=0x7fd11807eee0) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/threadweaver/Weaver/Thread.cpp:142
#7  0x00007fd1507b04b5 in QThreadPrivate::start (arg=0x7fd11807eee0) at thread/qthread_unix.cpp:320
#8  0x00007fd14f1e9c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#9  0x00007fd14f4d228d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 6 (Thread 0x7fd125869700 (LWP 11616)):
#0  0x00007fd14f4c94e3 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fd149fca2a9 in g_main_context_poll (context=0x7fd11805ea30, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3405
#2  g_main_context_iterate (context=0x7fd11805ea30, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3087
#3  0x00007fd149fca6fc in g_main_context_iteration (context=0x7fd11805ea30, may_block=1) at gmain.c:3155
#4  0x00007fd1508ce6b6 in QEventDispatcherGlib::processEvents (this=0x7fd11808edf0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007fd1508a1222 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007fd1508a160c in QEventLoop::exec (this=0x7fd125868e20, flags=) at kernel/qeventloop.cpp:201
#7  0x00007fd1507ad4bd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x00007fd1507b04b5 in QThreadPrivate::start (arg=0x4d601c0) at thread/qthread_unix.cpp:320
#9  0x00007fd14f1e9c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#10 0x00007fd14f4d228d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 5 (Thread 0x7fd125068700 (LWP 11617)):
#0  0x00007fd149fca69a in g_main_context_iteration (context=0x4e175b0, may_block=1) at gmain.c:3148
#1  0x00007fd1508ce6b6 in QEventDispatcherGlib::processEvents (this=0x4e793d0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#2  0x00007fd1508a1222 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#3  0x00007fd1508a160c in QEventLoop::exec (this=0x7fd125067e20, flags=) at kernel/qeventloop.cpp:201
#4  0x00007fd1507ad4bd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#5  0x00007fd1507b04b5 in QThreadPrivate::start (arg=0x4e344c0) at thread/qthread_unix.cpp:320
#6  0x00007fd14f1e9c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#7  0x00007fd14f4d228d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 4 (Thread 0x7fd124867700 (LWP 11622)):
#0  pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fd1507b107b in wait (this=<value optimized out>, mutex=0x24075f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x24075f0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007fd147b2ec24 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x244df90, th=0x422ab40) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007fd147b31e2b in ThreadWeaver::WorkingHardState::applyForWork (this=0x24071d0, th=0x422ab40) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007fd147b3039f in ThreadWeaver::ThreadRunHelper::run (this=0x7fd124866e30, parent=0x244df90, th=0x422ab40) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/threadweaver/Weaver/Thread.cpp:87
#6  0x00007fd147b308f8 in ThreadWeaver::Thread::run (this=0x422ab40) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/threadweaver/Weaver/Thread.cpp:142
#7  0x00007fd1507b04b5 in QThreadPrivate::start (arg=0x422ab40) at thread/qthread_unix.cpp:320
#8  0x00007fd14f1e9c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#9  0x00007fd14f4d228d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 3 (Thread 0x7fd11ffff700 (LWP 11623)):
[KCrash Handler]
#6  itemFromIndex (this=<value optimized out>) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999/language/duchain/repositories/itemrepository.h:857
#7  itemFromIndex (this=<value optimized out>) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999/language/duchain/repositories/itemrepository.h:1864
#8  KDevelop::IndexedString::str (this=<value optimized out>) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999/language/duchain/indexedstring.cpp:270
#9  0x00007fd14cb2df80 in KDevelop::fileModificationTimeCached (fileName=...) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999/language/editor/modificationrevision.cpp:106
#10 0x00007fd14cb2e080 in KDevelop::ModificationRevision::revisionForFile (url=...) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999/language/editor/modificationrevision.cpp:126
#11 0x00007fd14cbc0b9e in KDevelop::ParsingEnvironmentFile::ParsingEnvironmentFile (this=0x7fd108976b40, url=...) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999/language/duchain/parsingenvironment.cpp:132
#12 0x00007fd11ef71785 in Python::ContextBuilder::newTopContext (this=0x7fd1087296f0, range=..., file=0x7fd108976b40) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp:119
#13 0x00007fd11ef735c8 in build (this=0x7fd1087296f0, url=<value optimized out>, node=<value optimized out>, updateContext=) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:104
#14 Python::ContextBuilder::build (this=0x7fd1087296f0, url=<value optimized out>, node=<value optimized out>, updateContext=) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp:83
#15 0x00007fd11ef77f39 in Python::DeclarationBuilder::build (this=0x7fd1087296f0, url=..., node=0x7fd108d21f00, updateContext=) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:99
#16 0x00007fd11ef77ed6 in Python::DeclarationBuilder::build (this=0x7fd11fffe790, url=..., node=0x7fd108d21f00, updateContext=) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:93
#17 0x00007fd11f5f8262 in Python::ParseJob::run (this=0x6cfa5c0) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/pythonparsejob.cpp:149
#18 0x00007fd147b31081 in ThreadWeaver::JobRunHelper::runTheJob (this=0x7fd11fffeda0, th=0x7fd120173560, job=0x6cfa5c0) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/threadweaver/Weaver/Job.cpp:106
#19 0x00007fd147b3137e in ThreadWeaver::Job::execute (this=0x6cfa5c0, th=0x7fd120173560) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/threadweaver/Weaver/Job.cpp:135
#20 0x00007fd147b3036f in ThreadWeaver::ThreadRunHelper::run (this=0x7fd11fffee30, parent=0x244df90, th=0x7fd120173560) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/threadweaver/Weaver/Thread.cpp:95
#21 0x00007fd147b308f8 in ThreadWeaver::Thread::run (this=0x7fd120173560) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/threadweaver/Weaver/Thread.cpp:142
#22 0x00007fd1507b04b5 in QThreadPrivate::start (arg=0x7fd120173560) at thread/qthread_unix.cpp:320
#23 0x00007fd14f1e9c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#24 0x00007fd14f4d228d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7fd11eb67700 (LWP 11624)):
#0  0x00007fd14f4c94e3 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fd149fca2a9 in g_main_context_poll (context=0x4fb5f00, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3405
#2  g_main_context_iterate (context=0x4fb5f00, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3087
#3  0x00007fd149fca6fc in g_main_context_iteration (context=0x4fb5f00, may_block=1) at gmain.c:3155
#4  0x00007fd1508ce6b6 in QEventDispatcherGlib::processEvents (this=0x4d11000, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007fd1508a1222 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#6  0x00007fd1508a160c in QEventLoop::exec (this=0x7fd11eb66e20, flags=) at kernel/qeventloop.cpp:201
#7  0x00007fd1507ad4bd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#8  0x00007fd1507b04b5 in QThreadPrivate::start (arg=0x4d9aa20) at thread/qthread_unix.cpp:320
#9  0x00007fd14f1e9c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301
#10 0x00007fd14f4d228d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7fd152361760 (LWP 11152)):
#0  0x00007fd14f4c94e3 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fd1460ebb5a in _xcb_conn_wait (c=0x204ca20, cond=<value optimized out>, vector=0x7fff1c9bbe98, count=0x7fff1c9bbe94) at /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/xcb_conn.c:313
#2  0x00007fd1460ec0c1 in _xcb_out_send (c=0x204ca20, vector=0x7fff1c9bbf30, count=3) at /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/xcb_out.c:338
#3  0x00007fd1460ec372 in xcb_writev (c=0x204ca20, vector=<value optimized out>, count=<value optimized out>, requests=251) at /var/tmp/portage/x11-libs/libxcb-1.7/work/libxcb-1.7/src/xcb_out.c:286
#4  0x00007fd14b8799fc in _XSend (dpy=0x2057a00, data=0x6b62530 "", size=<value optimized out>) at /var/tmp/portage/x11-libs/libX11-1.4.4/work/libX11-1.4.4/src/xcb_io.c:494
#5  0x00007fd14b86db55 in SendZImage (dpy=0x2057a00, d=<value optimized out>, gc=<value optimized out>, image=0x60f6860, req_xoffset=0, req_yoffset=0, x=0, y=0, req_width=60, req_height=17, dest_bits_per_pixel=<value optimized out>, dest_scanline_pad=32) at /var/tmp/portage/x11-libs/libX11-1.4.4/work/libX11-1.4.4/src/PutImage.c:802
#6  PutImageRequest (dpy=0x2057a00, d=<value optimized out>, gc=<value optimized out>, image=0x60f6860, req_xoffset=0, req_yoffset=0, x=0, y=0, req_width=60, req_height=17, dest_bits_per_pixel=<value optimized out>, dest_scanline_pad=32) at /var/tmp/portage/x11-libs/libX11-1.4.4/work/libX11-1.4.4/src/PutImage.c:870
#7  PutSubImage (dpy=0x2057a00, d=<value optimized out>, gc=<value optimized out>, image=0x60f6860, req_xoffset=0, req_yoffset=0, x=0, y=0, req_width=60, req_height=17, dest_bits_per_pixel=<value optimized out>, dest_scanline_pad=32) at /var/tmp/portage/x11-libs/libX11-1.4.4/work/libX11-1.4.4/src/PutImage.c:908
#8  0x00007fd14b86dd2e in XPutImage (dpy=0x2057a00, d=<value optimized out>, gc=<value optimized out>, image=0x60f6860, req_xoffset=0, req_yoffset=11152, x=0, y=0, req_width=60, req_height=17) at /var/tmp/portage/x11-libs/libX11-1.4.4/work/libX11-1.4.4/src/PutImage.c:1027
#9  0x00007fd14fd3f7ea in QX11PixmapData::fromImage (this=0x6e9f580, img=<value optimized out>, flags=<value optimized out>) at image/qpixmap_x11.cpp:612
#10 0x00007fd14fd2adb6 in QPixmap::fromImage (image=..., flags=) at image/qpixmap.cpp:2059
#11 0x00007fd14fd8be78 in QPaintEngine::drawImage (this=0x6e59db0, r=..., image=..., sr=..., flags=<value optimized out>) at painting/qpaintengine.cpp:623
#12 0x00007fd14fe5afc2 in QX11PaintEngine::drawImage (this=0x6e59db0, r=..., image=..., sr=..., flags=) at painting/qpaintengine_x11.cpp:1903
#13 0x00007fd14fda1ecf in QPainterPrivate::draw_helper (this=0x5c37f70, originalPath=<value optimized out>, op=<value optimized out>) at painting/qpainter.cpp:497
#14 0x00007fd14fdaa87a in QPainter::drawRoundedRect (this=0x7fff1c9bf950, rect=<value optimized out>, xRadius=<value optimized out>, yRadius=<value optimized out>, mode=<value optimized out>) at painting/qpainter.cpp:4163
#15 0x00007fd141a66f9f in Oxygen::StyleHelper::progressBarIndicator (this=0x20855e0, pal=<value optimized out>, rect=<value optimized out>) at /var/tmp/portage/kde-base/kstyles-4.7.0/work/kstyles-4.7.0/kstyles/oxygen/oxygenstylehelper.cpp:353
#16 0x00007fd141a3e06c in Oxygen::Style::drawProgressBarContentsControl (this=0x20894d0, option=0x7fff1c9bfa80, painter=0x7fff1c9bfba0, widget=<value optimized out>) at /var/tmp/portage/kde-base/kstyles-4.7.0/work/kstyles-4.7.0/kstyles/oxygen/oxygenstyle.cpp:4901
#17 0x00007fd141a47f3d in Oxygen::Style::drawProgressBarControl (this=0x20894d0, option=0x7fff1c9bfb40, painter=0x7fff1c9bfba0, widget=0x337eb70) at /var/tmp/portage/kde-base/kstyles-4.7.0/work/kstyles-4.7.0/kstyles/oxygen/oxygenstyle.cpp:4816
#18 0x00007fd141a3d628 in Oxygen::Style::drawControl (this=0x20894d0, element=QStyle::CE_ProgressBar, option=0x7fff1c9bfb40, painter=0x7fff1c9bfba0, widget=0x337eb70) at /var/tmp/portage/kde-base/kstyles-4.7.0/work/kstyles-4.7.0/kstyles/oxygen/oxygenstyle.cpp:1119
#19 0x00007fd150093323 in drawControl (this=0x337eb70) at ../../include/QtGui/../../src/gui/painting/qstylepainter.h:89
#20 QProgressBar::paintEvent (this=0x337eb70) at widgets/qprogressbar.cpp:396
#21 0x00007fd14fc978ae in QWidget::event (this=0x337eb70, event=0x7fff1c9c0440) at kernel/qwidget.cpp:8405
#22 0x00007fd15009307c in QProgressBar::event (this=0x337eb70, e=0x7fff1c9c0440) at widgets/qprogressbar.cpp:562
#23 0x00007fd14fc41bfc in QApplicationPrivate::notify_helper (this=0x203e800, receiver=0x337eb70, e=0x7fff1c9c0440) at kernel/qapplication.cpp:4462
#24 0x00007fd14fc4703d in QApplication::notify (this=0x7fff1c9c47a0, receiver=0x337eb70, e=0x7fff1c9c0440) at kernel/qapplication.cpp:4341
#25 0x00007fd1510c5b36 in KApplication::notify (this=0x7fff1c9c47a0, receiver=0x337eb70, event=0x7fff1c9c0440) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/kdeui/kernel/kapplication.cpp:311
#26 0x00007fd1508a24fc in QCoreApplication::notifyInternal (this=0x7fff1c9c47a0, receiver=0x337eb70, event=0x7fff1c9c0440) at kernel/qcoreapplication.cpp:731
#27 0x00007fd14fc9e2cd in sendSpontaneousEvent (this=0x33ad510, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x3351920) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#28 QWidgetPrivate::drawWidget (this=0x33ad510, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5492
#29 0x00007fd14fc9ef68 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=2, rgn=<value optimized out>, offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5699
#30 0x00007fd14fc9e02a in QWidgetPrivate::drawWidget (this=0x33b07e0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5545
#31 0x00007fd14fc9ef68 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=2, rgn=<value optimized out>, offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5699
#32 0x00007fd14fc9e02a in QWidgetPrivate::drawWidget (this=0x3392760, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5545
#33 0x00007fd14fc9ef68 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=3, rgn=<value optimized out>, offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5699
#34 0x00007fd14fc9e02a in QWidgetPrivate::drawWidget (this=0x3384220, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5545
#35 0x00007fd14fc9ef68 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=1, rgn=<value optimized out>, offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5699
#36 0x00007fd14fc9e02a in QWidgetPrivate::drawWidget (this=0x21dc110, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5545
#37 0x00007fd14fc9ef68 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=1, rgn=<value optimized out>, offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5699
#38 0x00007fd14fc9e02a in QWidgetPrivate::drawWidget (this=0x21db9c0, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5545
#39 0x00007fd14fc9ef68 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=4, rgn=<value optimized out>, offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5699
#40 0x00007fd14fc9e02a in QWidgetPrivate::drawWidget (this=0x21df500, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5545
#41 0x00007fd14fc9ef68 in QWidgetPrivate::paintSiblingsRecursive (this=<value optimized out>, pdev=<value optimized out>, siblings=..., index=9, rgn=<value optimized out>, offset=<value optimized out>, flags=4, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5699
#42 0x00007fd14fc9e02a in QWidgetPrivate::drawWidget (this=0x21d7970, pdev=<value optimized out>, rgn=..., offset=<value optimized out>, flags=<value optimized out>, sharedPainter=0x0, backingStore=0x3351920) at kernel/qwidget.cpp:5545
#43 0x00007fd14fe71568 in QWidgetBackingStore::sync (this=0x3351920) at painting/qbackingstore.cpp:1333
#44 0x00007fd14fc91970 in QWidgetPrivate::syncBackingStore (this=0x21d7970) at kernel/qwidget.cpp:1842
#45 0x00007fd14fc97f7b in QWidget::event (this=0x21d77f0, event=0x7fff1c9c3040) at kernel/qwidget.cpp:8552
#46 0x00007fd15005e70b in QMainWindow::event (this=0x21d77f0, event=0x7fff1c9c3040) at widgets/qmainwindow.cpp:1480
#47 0x00007fd1511dd590 in KXmlGuiWindow::event (this=0x7fff1c9bbe40, ev=0x1) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/kdeui/xmlgui/kxmlguiwindow.cpp:126
#48 0x00007fd14fc41bfc in QApplicationPrivate::notify_helper (this=0x203e800, receiver=0x21d77f0, e=0x7fff1c9c3040) at kernel/qapplication.cpp:4462
#49 0x00007fd14fc4703d in QApplication::notify (this=0x7fff1c9c47a0, receiver=0x21d77f0, e=0x7fff1c9c3040) at kernel/qapplication.cpp:4341
#50 0x00007fd1510c5b36 in KApplication::notify (this=0x7fff1c9c47a0, receiver=0x21d77f0, event=0x7fff1c9c3040) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/kdeui/kernel/kapplication.cpp:311
#51 0x00007fd1508a24fc in QCoreApplication::notifyInternal (this=0x7fff1c9c47a0, receiver=0x21d77f0, event=0x7fff1c9c3040) at kernel/qcoreapplication.cpp:731
#52 0x00007fd14fe6e8a7 in sendEvent (widget=0x21d77f0, updateImmediately=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#53 sendUpdateRequest (widget=0x21d77f0, updateImmediately=<value optimized out>) at painting/qbackingstore.cpp:507
#54 0x00007fd14fe71da9 in QWidgetBackingStore::markDirty (this=0x3351920, rect=..., widget=0x337eb70, updateImmediately=true, invalidateBuffer=64) at painting/qbackingstore.cpp:683
#55 0x00007fd14fc93beb in QWidget::repaint (this=0x337eb70, rect=...) at kernel/qwidget.cpp:10322
#56 0x00007fd14fc93cb3 in QWidget::repaint (this=0x7fff1c9bbe40) at kernel/qwidget.cpp:10278
#57 0x00007fd151837fc3 in KDevelop::StatusbarProgressWidget::qt_metacall (this=0x3391010, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff1c9c3310) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999_build/shell/progresswidget.moc:87
#58 0x00007fd1508ba277 in QMetaObject::activate (sender=0x4e0e280, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3278
#59 0x00007fd151834fc0 in KDevelop::ProgressItem::progressItemProgress (this=0x7fff1c9bbe40, _t1=0x4e0e280, _t2=37) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999_build/shell/progressmanager.moc:117
#60 0x00007fd1517f9fa1 in KDevelop::StatusBar::showProgress (this=0x33841a0, status=<value optimized out>, minimum=<value optimized out>, maximum=<value optimized out>, value=<value optimized out>) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999/shell/statusbar.cpp:242
#61 0x00007fd1517fb6ba in KDevelop::StatusBar::qt_metacall (this=0x33841a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff1c9c35c0) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999_build/shell/statusbar.moc:94
#62 0x00007fd1508ba277 in QMetaObject::activate (sender=0x244e5a0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3278
#63 0x00007fd14cb2ec9d in KDevelop::BackgroundParser::showProgress (this=0x7fff1c9bbe40, _t1=0x244e5b0, _t2=0, _t3=686000, _t4=0) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999_build/language/backgroundparser.moc:252
#64 0x00007fd14cb2f2bb in KDevelop::BackgroundParser::updateProgressBar (this=0x244e5a0) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999/language/backgroundparser/backgroundparser.cpp:601
#65 0x00007fd14cb3073b in KDevelop::BackgroundParser::parseComplete (this=0x244e5a0, job=<value optimized out>) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999/language/backgroundparser/backgroundparser.cpp:535
#66 0x00007fd14cb34634 in KDevelop::BackgroundParser::qt_metacall (this=0x244e5a0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff1c9c3a50) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999_build/language/backgroundparser.moc:197
#67 0x00007fd1508ba277 in QMetaObject::activate (sender=0x612fc70, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3278
#68 0x00007fd147b30cb2 in ThreadWeaver::Job::done (this=0x7fff1c9bbe40, _t1=0x612fc70) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0_build/threadweaver/Weaver/Job.moc:97
#69 0x00007fd147b30e54 in ThreadWeaver::Job::qt_metacall (this=0x612fc70, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x6800ac0) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0_build/threadweaver/Weaver/Job.moc:77
#70 0x00007fd147b33030 in ThreadWeaver::JobCollection::qt_metacall (this=0x7fff1c9bbe40, _c=QMetaObject::ReadProperty, _id=-1, _a=0xffffffffffffffff) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0_build/threadweaver/Weaver/JobCollection.moc:69
#71 0x00007fd14cb3941a in KDevelop::ParseJob::qt_metacall (this=0x7fff1c9bbe40, _c=QMetaObject::ReadProperty, _id=-1, _a=0xffffffffffffffff) at /var/tmp/portage/dev-util/kdevplatform-9999/work/kdevplatform-9999_build/language/parsejob.moc:90
#72 0x00007fd1508b434e in QObject::event (this=0x612fc70, e=0x7fff1c9bbe40) at kernel/qobject.cpp:1217
#73 0x00007fd14fc41bfc in QApplicationPrivate::notify_helper (this=0x203e800, receiver=0x612fc70, e=0x717e360) at kernel/qapplication.cpp:4462
#74 0x00007fd14fc4703d in QApplication::notify (this=0x7fff1c9c47a0, receiver=0x612fc70, e=0x717e360) at kernel/qapplication.cpp:4341
#75 0x00007fd1510c5b36 in KApplication::notify (this=0x7fff1c9c47a0, receiver=0x612fc70, event=0x717e360) at /var/tmp/portage/kde-base/kdelibs-4.7.0-r1/work/kdelibs-4.7.0/kdeui/kernel/kapplication.cpp:311
#76 0x00007fd1508a24fc in QCoreApplication::notifyInternal (this=0x7fff1c9c47a0, receiver=0x612fc70, event=0x717e360) at kernel/qcoreapplication.cpp:731
#77 0x00007fd1508a5493 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x20168d0) at kernel/qcoreapplication.h:215
#78 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x20168d0) at kernel/qcoreapplication.cpp:1372
#79 0x00007fd1508ceb23 in sendPostedEvents (s=0x2042540) at kernel/qcoreapplication.h:220
#80 postEventSourceDispatch (s=0x2042540) at kernel/qeventdispatcher_glib.cpp:277
#81 0x00007fd149fc5e82 in g_main_dispatch (context=0x20414e0) at gmain.c:2441
#82 g_main_context_dispatch (context=0x20414e0) at gmain.c:3014
#83 0x00007fd149fca548 in g_main_context_iterate (context=0x20414e0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3092
#84 0x00007fd149fca6fc in g_main_context_iteration (context=0x20414e0, may_block=1) at gmain.c:3155
#85 0x00007fd1508ce663 in QEventDispatcherGlib::processEvents (this=0x20160b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#86 0x00007fd14fcf3c9e in QGuiEventDispatcherGlib::processEvents (this=0x7fff1c9bbe40, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#87 0x00007fd1508a1222 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#88 0x00007fd1508a160c in QEventLoop::exec (this=0x7fff1c9c44e0, flags=) at kernel/qeventloop.cpp:201
#89 0x00007fd1508a56cb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#90 0x000000000040bce7 in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/dev-util/kdevelop-9999/work/kdevelop-9999/app/main.cpp:474

Possible duplicates by query: bug 278314.

Reported using DrKonqi
Comment 1 Matěj Laitl 2011-09-12 11:56:02 UTC
Still occurs with:

kdevplatfrom: git v1.2.3-768-gacabbf5
kdevelop: git v4.2.3-452-gba980fc
kdev-python: git alpha3.1-2-g93c7b40
kdelibs: 4.7.1
Comment 2 Sven Brauch 2012-01-22 10:33:51 UTC
I cannot reproduce this with current master (beta1-24-gb3246bb). Can you?
Comment 3 Matěj Laitl 2012-01-22 12:02:18 UTC
(In reply to comment #2)
> I cannot reproduce this with current master (beta1-24-gb3246bb). Can you?

I confirm this does not crash anymore with today's master (kdevplatfrom, kdevelop, kdevelop-python), but it shows no semantic information in Python code at all. It seems that it doesn't load python plugin at all. (grep python /proc/`pidof kdevelop`/maps shows nothing - compared to grep php ...) However, kdevelop-python seems installed correctly:

edgy /proc/14624 # equery files kdevelop-python | grep '\.so$\|\.desktop$'
/usr/lib64/kde4/kdevpythonlanguagesupport.so
/usr/lib64/libkdev4pythoncompletion.so
/usr/lib64/libkdev4pythonduchain.so
/usr/lib64/libkdev4pythonparser.so
/usr/lib64/libpython2.7-kdevelop.so
/usr/share/kde4/services/kdevpythonsupport.desktop

It is installed in exact same locations as kdevelop-php, which works. Perpaps the problem is in the .desktop files?

edgy /proc/14624 # grep 'X-' /usr/share/kde4/services/kdevpythonsupport.desktop /usr/share/kde4/services/kdevphpsupport.desktop 
/usr/share/kde4/services/kdevpythonsupport.desktop:X-KDE-Library=kdevpythonlanguagesupport
/usr/share/kde4/services/kdevpythonsupport.desktop:X-KDevelop-Version=13
/usr/share/kde4/services/kdevpythonsupport.desktop:X-KDevelop-Language=Python
/usr/share/kde4/services/kdevpythonsupport.desktop:X-KDevelop-Args=PYTHON
/usr/share/kde4/services/kdevpythonsupport.desktop:X-KDevelop-Interfaces=ILanguageSupport
/usr/share/kde4/services/kdevpythonsupport.desktop:X-KDevelop-SupportedMimeTypes=text/x-python
/usr/share/kde4/services/kdevpythonsupport.desktop:X-KDE-PluginInfo-Name=kdevpythonsupport
/usr/share/kde4/services/kdevpythonsupport.desktop:X-KDevelop-Mode=NoGUI
/usr/share/kde4/services/kdevpythonsupport.desktop:X-KDE-PluginInfo-Category=Language Support
/usr/share/kde4/services/kdevphpsupport.desktop:X-KDE-Library=kdevphplanguagesupport
/usr/share/kde4/services/kdevphpsupport.desktop:X-KDevelop-Version=14
/usr/share/kde4/services/kdevphpsupport.desktop:X-KDevelop-Language=Php
/usr/share/kde4/services/kdevphpsupport.desktop:X-KDevelop-Args=PHP
/usr/share/kde4/services/kdevphpsupport.desktop:X-KDevelop-Interfaces=ILanguageSupport
/usr/share/kde4/services/kdevphpsupport.desktop:X-KDevelop-SupportedMimeTypes=application/x-php
/usr/share/kde4/services/kdevphpsupport.desktop:X-KDE-PluginInfo-Name=KDevPhpSupport
/usr/share/kde4/services/kdevphpsupport.desktop:X-KDE-PluginInfo-Category=Language Support
/usr/share/kde4/services/kdevphpsupport.desktop:X-KDevelop-Mode=NoGUI
/usr/share/kde4/services/kdevphpsupport.desktop:X-KDevelop-LoadMode=AlwaysOn
Comment 4 Sven Brauch 2012-01-22 12:09:43 UTC
The current plugin master requires kdevplatform 1.3 beta, otherwise it won't load.
Comment 5 Matěj Laitl 2012-01-24 23:45:54 UTC
(In reply to comment #4)
> The current plugin master requires kdevplatform 1.3 beta, otherwise it won't
> load.

I do have kdevplatform v1.2.81-66-gccf92f2, interesting to see is that plugins from kdevplatfrom itself define X-KDevelop-Version=14:
edgy ~ # grep KDevelop-Ver /usr/share/kde4/services/kdevgit.desktop
X-KDevelop-Version=14

while kdevelop-python (git version 974f6698b7321a8e7) defines X-KDevelop-Version=13:
edgy ~ # grep KDevelop-Ver /usr/share/kde4/services/kdevpythonsupport.desktop
X-KDevelop-Version=13

To me it seems like kdevelop-python was not updated witch newest kdevplatform plugin version.
Comment 6 Nicolás Alvarez 2012-01-25 00:04:31 UTC
You're running kdevplatform from git master (ccf92f2 is a master-only commit). git master currently has what will eventually be released as 1.4, but kdev-python is currently targeting kdevplatform 1.3. You need to *downgrade* your kdevplatform to 1.3 (use the 1.3 branch in git).

At this early stage of development (not much has changed between 1.3 and 1.4 yet), you *could* also change kdevpythonsupport.desktop's X-KDevelop-Version to 14, but that's a bad idea in the general case. It will break as soon as kdevplatform 1.4 makes an incompatible change.
Comment 7 Matěj Laitl 2012-01-25 00:14:48 UTC
(In reply to comment #6)
> You're running kdevplatform from git master (ccf92f2 is a master-only commit).
> git master currently has what will eventually be released as 1.4, but
> kdev-python is currently targeting kdevplatform 1.3. You need to *downgrade*
> your kdevplatform to 1.3 (use the 1.3 branch in git).

Ahh, thanks for this explanation, I did not get it from Sven's comment, I thought my kdevlatform was too old.

When I cheated and rewrite python plugin version to 14, I got following (different) backtrace also during background parsing:

Thread 5 (Thread 0x7fd7d473b700 (LWP 8499)):
[KCrash Handler]
#6  0x0000000000000000 in ?? ()
#7  0x00007fd7d92f2945 in Python::DeclarationBuilder::visitArguments (this=0x9aa7550, node=0x9ee7990) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:1299
#8  0x00007fd7d92e4424 in Python::ContextBuilder::visitFunctionArguments (this=0x9aa7550, node=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp:494
#9  0x00007fd7d92ed0ba in Python::DeclarationBuilder::visitFunctionDefinition (this=0x9aa7550, node=0x9ee78c0) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:1146
#10 0x00007fd7d952e492 in Python::AstDefaultVisitor::visitClassDefinition (this=0x9aa75b0, node=0x9ee5d90) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/parser/astdefaultvisitor.cpp:317
#11 0x00007fd7d92ec9b2 in Python::DeclarationBuilder::visitClassDefinition (this=<optimized out>, node=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:1079
#12 0x00007fd7d952d9e2 in Python::AstDefaultVisitor::visitCode (this=0x9aa75b0, node=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/parser/astdefaultvisitor.cpp:47
#13 0x00007fd7d92e0a16 in Python::ContextBuilder::visitCode (this=0x9aa7550, node=0x9eb44b0) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp:385
#14 0x00007fd7d92e7c3c in Python::DeclarationBuilder::visitCode (this=0x9aa7550, node=0x9eb44b0) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:285
#15 0x00007fd7d93018c9 in supportBuild (context=0x7fd7b549f2e0, node=0x9eb44b0, this=0x9aa7550) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:133

Should I try to reproduce this with kdevplatform 1.3 branch?
Comment 8 Sven Brauch 2012-01-25 00:23:09 UTC
Ah yeah, sorry, I guessed you'd just pick out the 1.3 beta version from the tag lists when reading my comment. I should have made it clear that it's a bit older, not newer.

Don't bother trying with another kdevplatform version, that's not the issue here... I changed something, can you try again? Also, please close kdevelop, then clear the whole cache with rm -Rf ~/.kdevduchain before trying again.

Thanks!
Comment 9 Matěj Laitl 2012-01-25 00:39:19 UTC
(In reply to comment #8)
> Don't bother trying with another kdevplatform version, that's not the issue
> here... I changed something, can you try again? Also, please close kdevelop,
> then clear the whole cache with rm -Rf ~/.kdevduchain before trying again.

With 8a1f1579c427e3599fa001 I get nearly the same backtrace:

#0  0x0000000000000000 in ?? ()
#1  0x00007fffcdd3287b in Python::DeclarationBuilder::visitArguments (this=0x7fffaca42d00, node=0x7fffadbab920)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:1296
#2  0x00007fffcdd243c4 in Python::ContextBuilder::visitFunctionArguments (this=0x7fffaca42d00, node=<optimized out>)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp:494
#3  0x00007fffcdd2c4ba in Python::DeclarationBuilder::visitFunctionDefinition (this=0x7fffaca42d00, node=0x7fffadbab850)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:1146
#4  0x00007fffcdf6e492 in Python::AstDefaultVisitor::visitClassDefinition (this=0x7fffaca42d60, node=0x7fffadba9d20)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/parser/astdefaultvisitor.cpp:317
#5  0x00007fffcdd2e212 in Python::DeclarationBuilder::visitClassDefinition (this=<optimized out>, node=<optimized out>)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:1079
#6  0x00007fffcdf6d9e2 in Python::AstDefaultVisitor::visitCode (this=0x7fffaca42d60, node=<optimized out>)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/parser/astdefaultvisitor.cpp:47
#7  0x00007fffcdd209b6 in Python::ContextBuilder::visitCode (this=0x7fffaca42d00, node=0x7fffad5e9e50)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp:385
#8  0x00007fffcdd27bdc in Python::DeclarationBuilder::visitCode (this=0x7fffaca42d00, node=0x7fffad5e9e50)
    at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:285
#9  0x00007fffcdd417c9 in supportBuild (context=0x7fffb89495a0, node=0x7fffad5e9e50, this=0x7fffaca42d00)
    at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:133
#10 KDevelop::AbstractTypeBuilder<Python::Ast, Python::Identifier, Python::ContextBuilder>::supportBuild (this=0x7fffaca42d00, node=0x7fffad5e9e50, 
    context=<optimized out>) at /usr/include/kdevplatform/language/duchain/builders/abstracttypebuilder.h:85
Comment 10 Sven Brauch 2012-01-25 07:57:38 UTC
Hm, okay, I cannot reproduce this... do you have some code to make it crash?
Comment 11 Matěj Laitl 2012-01-27 12:36:02 UTC
(In reply to comment #10)
> Hm, okay, I cannot reproduce this... do you have some code to make it crash?

The latest kdevelop-python revision still crashes for me with following steps to reproduce (even with .kdevduchain wiped out):

1. git clone git://github.com/strohel/PyBayes.git
2. create a new project in that directory

The backtrace is the same as in comment #9.
Comment 12 Sven Brauch 2012-01-27 18:47:38 UTC
I still cannot reproduce this crash.
Can you please send me the "git describe" output of all three relevant projects?
Mine is this:
PyBayes: v0.3-43-g2f4c63e
kdev-python: beta1-40-g0a019cd
kdevplatform: v1.2.80

Maybe you could try with the same versions and see if it still happens?
I'm using two threads for the background parser, are you using significantly more of them?
Comment 13 Matěj Laitl 2012-02-15 17:02:51 UTC
(In reply to comment #12)
> I still cannot reproduce this crash.
> Can you please send me the "git describe" output of all three relevant
> projects?
> Mine is this:
> PyBayes: v0.3-43-g2f4c63e
> kdev-python: beta1-40-g0a019cd
> kdevplatform: v1.2.80
> 
> Maybe you could try with the same versions and see if it still happens?
> I'm using two threads for the background parser, are you using significantly
> more of them?

Hi, sorry for late reply. I am able to reproduce the crash with following versions:
kdevplatform v1.2.81
kdevelop v4.2.81
kdev-python beta1-55-g0060b91
PyBayes v0.3-43-g2f4c63e
...with Tokyo submodule: `git submodule status`
 896d046b62cf50faf7faa7e58a8705fb2f22f19a tokyo (heads/master)

The exact steps to reproduce:
1. create new user with empty $HOME, login as that user to KDE
2. git clone git://github.com/strohel/PyBayes.git
3. cd PyBayes
4. git submodule update --init
5. Start KDevelop, create Generic Project Manager project at $HOME/PyBayes
6. KDevelop crashes reproducibly near 50% of the background parser.

I use max. 2 threads for bg parser. The backtrace is somewhat different from the previous ones:

Thread 4 (Thread 0x7ff511d19700 (LWP 9773)):
[KCrash Handler]
#6  0x00007ff53db1e555 in KDevelop::DUContext::findDeclarations (this=0x0, identifier=<optimized out>, position=..., topContext=0x0, flags=...) at /var/tmp/portage/dev-util/kdevplatform-1.2.81/work/kdevplatform-1.2.81/language/duchain/ducontext.cpp:1196
#7  0x00007ff5121521c0 in Python::DeclarationBuilder::findDeclarationInContext (this=<optimized out>, dottedNameIdentifier=..., ctx=0x7ff518668400) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:375
#8  0x00007ff51215caed in Python::DeclarationBuilder::createModuleImportDeclaration (this=0xb6bcfc0, dottedName=<optimized out>, declarationIdentifier=0xb765930, rangeNode=<optimized out>, createProblem=Python::DeclarationBuilder::DontCreateProblems) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:613
#9  0x00007ff51215eaec in Python::DeclarationBuilder::visitImportFrom (this=0xb6bcfc0, node=0xb7657c0) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:407
#10 0x00007ff512397ee2 in Python::AstDefaultVisitor::visitCode (this=0xb6bd020, node=<optimized out>) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/parser/astdefaultvisitor.cpp:47
#11 0x00007ff512149ef6 in Python::ContextBuilder::visitCode (this=0xb6bcfc0, node=0xb6b4020) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/contextbuilder.cpp:385
#12 0x00007ff5121510dc in Python::DeclarationBuilder::visitCode (this=0xb6bcfc0, node=0xb6b4020) at /var/tmp/portage/dev-util/kdevelop-python-9999/work/kdevelop-python-9999/duchain/declarationbuilder.cpp:298
#13 0x00007ff51216b019 in supportBuild (context=0x86525c0, node=0xb6b4020, this=0xb6bcfc0) at /usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:133

Thanks for working with me to resolve this issue.
Comment 14 Sven Brauch 2012-02-17 03:06:26 UTC
Hmm, weird! It still parses the whole project for me without crashing. I have no idea...
Comment 15 Matěj Laitl 2012-03-17 12:16:15 UTC
Hi Sven, I've got some new observations - it seems that the parser crash is related to scipy Python package. I can reproduce the crash by:

1) install Scipy (I have version 0.9.0)
2) create new KDevelop project, put the following to example.py:
import scipy.io

scipy.io.loadmat("file")
3) crash! Backtrace identical to the one from comment #13
4) KDevelop also crashes every time you start it and open this project. (during background parser run)
Comment 16 Sven Brauch 2012-03-18 16:31:30 UTC
Hi,

I'm still not able to reproduce this!
Could you please do
rm -Rf ~/.kdevduchain
(this clears all of the kdevelop cache completely -- exit any running instances of kdevelop before this) and see if the crash persists?

Greetings
Comment 17 Sven Brauch 2012-04-18 16:23:10 UTC
Still not able to reproduce this. I'll set it to NEEDSINFO until there's some more reliable way to reproduce it...
Comment 18 Matěj Laitl 2012-06-06 14:48:21 UTC
I'm no longer able to reproduce this with current kdev-python (& kdevelop & kdevplatform) git, so I'm marking this as fixed. Thanks!
Comment 19 Sven Brauch 2012-06-06 16:48:56 UTC
Fine, thanks. I'll mark it as fixed for now.
Comment 20 Matěj Laitl 2012-06-06 16:55:48 UTC
(In reply to comment #19)
> Fine, thanks. I'll mark it as fixed for now.

But I have another bug for you: bug 301289. Does python plugin somehow set font weight out of 0 - 99?