[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 281275] KDevelop crashes during background parsing of a python project (kdevelop-python plugin
From:       Matěj Laitl <matej () laitl ! cz>
Date:       2012-02-15 17:02:51
Message-ID: E1RxiFn-0001LF-Lp () bugs ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=281275





--- Comment #13 from Matěj Laitl <matej laitl cz>  2012-02-15 17:02:51 ---
(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.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.=


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic