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

List:       kdevelop-bugs
Subject:    [Bug 296908] New: KDevelop crashes while scanning Panda3D for DUChain
From:       Matt Williams <matt () milliams ! com>
Date:       2012-03-27 19:15:51
Message-ID: bug-296908-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

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

            Bug ID: 296908
          Severity: critical
           Version: unspecified
          Priority: NOR
                CC: svenbrauch@googlemail.com
          Assignee: kdevelop-bugs@kdevelop.org
           Summary: KDevelop crashes while scanning Panda3D for DUChain
    Classification: Unclassified
                OS: Linux
          Reporter: matt@milliams.com
          Hardware: openSUSE RPMs
            Status: NEW
         Component: general
           Product: kdev-python

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20100101
Firefox/10.0.2
Build Identifier: 

I've build Panda3D from source and have it residing in
/home/matt/panda3d-1.8.0/built

If I run KDevelop with:

PANDA_PATH=/home/matt/panda3d-1.8.0
export LD_LIBRARY_PATH=$PANDA_PATH/built/lib
export PYTHONPATH=$PANDA_PATH/built/lib:$PANDA_PATH/built
kdevelop

then if I create a file called main.py containing just:

from direct.showbase import PythonUtil

then KDevelop crashes. The output in the terminal is attached as pdevelop.log
and the backtrace is:

#0  0x00007ffff27fc93e in
KDevelop::DUContext::allDeclarations(KDevelop::CursorInRevision const&,
KDevelop::TopDUContext const*, bool) const ()
   from /usr/lib64/libkdevplatformlanguage.so.6
#1  0x00007fffc8a9511c in Python::Helper::internalContextsForClass
(klassType=..., context=0x7fff640a0220, depth=0)
    at
/usr/src/debug/kdevelop4-plugin-python-0.1.git.1332720389/duchain/helpers.cpp:190
#2  0x00007fffc8a8f91f in Python::ExpressionVisitor::visitAttribute
(this=0x7fff6bffd0f0, node=0x7fff64dd2ca8)
    at
/usr/src/debug/kdevelop4-plugin-python-0.1.git.1332720389/duchain/expressionvisitor.cpp:247
#3  0x00007fffc8aa8fdd in Python::DeclarationBuilder::visitAssignment
(this=0x7fff6bffe790, node=0x7fff64dd2ad8)
    at
/usr/src/debug/kdevelop4-plugin-python-0.1.git.1332720389/duchain/declarationbuilder.cpp:933
#4  0x00007fffc8aa03e3 in visitNodeList<Python::Ast> (l=<optimized out>,
this=0x7fff6bffe790)
    at
/usr/src/debug/kdevelop4-plugin-python-0.1.git.1332720389/duchain/contextbuilder.h:123
#5  Python::ContextBuilder::visitFunctionBody (this=0x7fff6bffe790,
node=<optimized out>)
    at
/usr/src/debug/kdevelop4-plugin-python-0.1.git.1332720389/duchain/contextbuilder.cpp:526
#6  0x00007fffc8aae96c in Python::DeclarationBuilder::visitFunctionDefinition
(this=0x7fff6bffe790, node=0x7fff64dd2340)
    at
/usr/src/debug/kdevelop4-plugin-python-0.1.git.1332720389/duchain/declarationbuilder.cpp:1268
#7  0x00007fffc8ce844b in Python::AstDefaultVisitor::visitCode
(this=0x7fff6bffe7f0, node=<optimized out>)
    at
/usr/src/debug/kdevelop4-plugin-python-0.1.git.1332720389/parser/astdefaultvisitor.cpp:47
#8  0x00007fffc8a9d28f in Python::ContextBuilder::visitCode
(this=0x7fff6bffe790, node=0x3acf420)
    at
/usr/src/debug/kdevelop4-plugin-python-0.1.git.1332720389/duchain/contextbuilder.cpp:390
#9  0x00007fffc8abb995 in supportBuild (context=0x7fff640a0220, node=0x3acf420,
this=0x7fff6bffe790)
    at
/usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:133
#10 KDevelop::AbstractTypeBuilder<Python::Ast, Python::Identifier,
Python::ContextBuilder>::supportBuild (this=0x7fff6bffe790, node=0x3acf420,
context=<optimized out>)
    at
/usr/include/kdevplatform/language/duchain/builders/abstracttypebuilder.h:85
#11 0x00007fffc8a9f56a in build (updateContext=..., node=0x3acf420,
url=<optimized out>, this=0x7fff6bffe790)
    at
/usr/include/kdevplatform/language/duchain/builders/abstractcontextbuilder.h:113
#12 Python::ContextBuilder::build (this=0x7fff6bffe790, url=<optimized out>,
node=0x3acf420, updateContext=<optimized out>)
    at
/usr/src/debug/kdevelop4-plugin-python-0.1.git.1332720389/duchain/contextbuilder.cpp:83
#13 0x00007fffc8aa36ec in Python::DeclarationBuilder::build
(this=0x7fff6bffe790, url=..., node=0x3acf420, updateContext=...)
    at
/usr/src/debug/kdevelop4-plugin-python-0.1.git.1332720389/duchain/declarationbuilder.cpp:107
#14 0x00007fffc9132495 in Python::ParseJob::run (this=0x2969680) at
/usr/src/debug/kdevelop4-plugin-python-0.1.git.1332720389/pythonparsejob.cpp:140
#15 0x00007fffed1468db in ThreadWeaver::JobRunHelper::runTheJob
(this=0x7fff6bffedc0, th=0x3d94fc0, job=0x2969680) at
/usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Job.cpp:106
#16 0x00007fffed146a4c in ThreadWeaver::Job::execute (this=0x2969680,
th=0x3d94fc0) at /usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Job.cpp:135
#17 0x00007fffed14609f in ThreadWeaver::ThreadRunHelper::run
(this=0x7fff6bffee40, parent=0x915900, th=0x3d94fc0) at
/usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Thread.cpp:95
#18 0x00007fffed14615b in ThreadWeaver::Thread::run (this=0x3d94fc0) at
/usr/src/debug/kdelibs-4.8.1/threadweaver/Weaver/Thread.cpp:142
#19 0x00007ffff642d55b in ?? () from /usr/lib64/libQtCore.so.4
#20 0x00007ffff4e22f05 in start_thread () from /lib64/libpthread.so.0
#21 0x00007ffff511310d in clone () from /lib64/libc.so.6

It seems to be falling down when parsing the class 'Functor' but I've tried
extracting that class to its own file and KDevelop parses it fine.

Simply running main.py in python works just fine as long as the LD_LIBRARY_PATH
and PYTHONPATH are set as above.

Reproducible: Always

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

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