Bug 350751 - Infinite recursion when parsing re.py from Python 3.4.3 [Python::AstVisitor::visitNode, Python::RangeFixVisitor::visitAttribute]
Summary: Infinite recursion when parsing re.py from Python 3.4.3 [Python::AstVisitor::...
Status: RESOLVED DUPLICATE of bug 349990
Alias: None
Product: kdev-python
Classification: Developer tools
Component: Language support (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Sven Brauch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-29 15:32 UTC by Kevin Funk
Modified: 2015-07-29 21:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Funk 2015-07-29 15:32:59 UTC
Backtrace:

#45552 0x00007fffb62fa353 in Python::AstVisitor::visitNode (this=0x7fffaeffc940, node=0x7fffa1c65b00) at /home/kfunk/devel/src/kf5/kdev-python/parser/astvisitor.cpp:81
#45553 0x00007fffb62fe838 in Python::RangeFixVisitor::visitAttribute (this=0x7fffaeffc940, node=0x7fffa1c65b00) at /home/kfunk/devel/src/kf5/kdev-python/parser/astbuilder.cpp:187
#45554 0x00007fffb62fa353 in Python::AstVisitor::visitNode (this=0x7fffaeffc940, node=0x7fffa1c65b00) at /home/kfunk/devel/src/kf5/kdev-python/parser/astvisitor.cpp:81
#45555 0x00007fffb62fe838 in Python::RangeFixVisitor::visitAttribute (this=0x7fffaeffc940, node=0x7fffa1c65b00) at /home/kfunk/devel/src/kf5/kdev-python/parser/astbuilder.cpp:187
#45556 0x00007fffb62fa353 in Python::AstVisitor::visitNode (this=0x7fffaeffc940, node=0x7fffa1c65b00) at /home/kfunk/devel/src/kf5/kdev-python/parser/astvisitor.cpp:81
#45557 0x00007fffb62f6471 in Python::AstDefaultVisitor::visitCall (this=0x7fffaeffc940, node=0x7fffa236aa70) at /home/kfunk/devel/src/kf5/kdev-python/parser/astdefaultvisitor.cpp:377
#45558 0x00007fffb62fa32e in Python::AstVisitor::visitNode (this=0x7fffaeffc940, node=0x7fffa236aa70) at /home/kfunk/devel/src/kf5/kdev-python/parser/astvisitor.cpp:80
#45559 0x00007fffb62f4096 in Python::AstDefaultVisitor::visitExpression (this=0x7fffaeffc940, node=0x7fffa2bd4ec0) at /home/kfunk/devel/src/kf5/kdev-python/parser/astdefaultvisitor.cpp:84
#45560 0x00007fffb62fa57b in Python::AstVisitor::visitNode (this=0x7fffaeffc940, node=0x7fffa2bd4ec0) at /home/kfunk/devel/src/kf5/kdev-python/parser/astvisitor.cpp:96
#45561 0x00007fffb62f469f in Python::AstDefaultVisitor::visitIf (this=0x7fffaeffc940, node=0x7fffa2a696a0) at /home/kfunk/devel/src/kf5/kdev-python/parser/astdefaultvisitor.cpp:136
#45562 0x00007fffb62f9ede in Python::AstVisitor::visitNode (this=0x7fffaeffc940, node=0x7fffa2a696a0) at /home/kfunk/devel/src/kf5/kdev-python/parser/astvisitor.cpp:50
#45563 0x00007fffb62f3fbd in Python::AstDefaultVisitor::visitCode (this=0x7fffaeffc940, node=0x7fffa292ff90) at /home/kfunk/devel/src/kf5/kdev-python/parser/astdefaultvisitor.cpp:77
#45564 0x00007fffb62f9da3 in Python::AstVisitor::visitNode (this=0x7fffaeffc940, node=0x7fffa292ff90) at /home/kfunk/devel/src/kf5/kdev-python/parser/astvisitor.cpp:41
#45565 0x00007fffb62fcf21 in Python::AstBuilder::parse (this=0x7fffaeffc9c0, filename=..., contents=...) at /home/kfunk/devel/src/kf5/kdev-python/parser/astbuilder.cpp:672
#45566 0x00007fffb62f1a3a in Python::ParseSession::parse (this=0x7fffa2cbe4e0) at /home/kfunk/devel/src/kf5/kdev-python/parser/parsesession.cpp:76
#45567 0x00007fffd15bb139 in Python::ParseJob::run (this=0x25daa50, self=..., thread=0x7fff9c0025d0) at /home/kfunk/devel/src/kf5/kdev-python/pythonparsejob.cpp:157
#45568 0x00007fffea79b560 in ThreadWeaver::IdDecorator::run (this=<optimized out>, self=..., thread=0x7fff9c0025d0) at ../../src/iddecorator.cpp:65
#45569 0x00007fffea79bba0 in ThreadWeaver::Executor::run (this=<optimized out>, job=..., thread=<optimized out>) at ../../src/executor.cpp:52
#45570 0x00007fffea79ab8a in ThreadWeaver::Job::execute (this=<optimized out>, self=..., th=0x7fff9c0025d0) at ../../src/job.cpp:83
#45571 0x00007fffea79a26a in ThreadWeaver::Thread::run (this=0x7fff9c0025d0) at ../../src/thread.cpp:114
#45572 0x00007ffff5996b0e in QThreadPrivate::start (arg=0x7fff9c0025d0) at thread/qthread_unix.cpp:337
#45573 0x00007fffefe156aa in start_thread (arg=0x7fffaeffd700) at pthread_create.c:333
#45574 0x00007ffff5320eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Easy to reproduce with duchainify:

./util/duchainify/duchainify /usr/lib/python3.4/re.py
Added 1 files to the background parser
parsing with 4 threads
zsh: segmentation fault  ./util/duchainify/duchainify /usr/lib/python3.4/re.py


Reproducible: Always
Comment 1 Sven Brauch 2015-07-29 20:07:31 UTC
Python 3.4.3 or Python 3.4.2? The former is completely broken atm, I still couldn't get come up with a fully working fix. :(
Comment 2 Kevin Funk 2015-07-29 20:33:52 UTC
Yes, Python 3.4.3. Feel free to mark as duplicate if this bug report is one.
Comment 3 Sven Brauch 2015-07-29 21:43:24 UTC

*** This bug has been marked as a duplicate of bug 349990 ***