We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code triggers a RecursionError in astroid:
RecursionError
9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9*9
This bug was discovered by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59874 (report not public yet)
Traceback (most recent call last): File "pylint/pylint/lint/pylinter.py", line 974, in get_ast return MANAGER.ast_from_file(filepath, modname, source=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "astroid/astroid/manager.py", line 167, in ast_from_file return AstroidBuilder(self).file_build(filepath, modname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "astroid/astroid/builder.py", line 144, in file_build module, builder = self._data_build(data, modname, path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "astroid/astroid/builder.py", line 206, in _data_build module = builder.visit_module(node, modname, node_file, package) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "astroid/astroid/rebuilder.py", line 171, in visit_module [self.visit(child, newnode) for child in node.body], ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "astroid/astroid/rebuilder.py", line 448, in visit return visit_method(node, parent) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "astroid/astroid/rebuilder.py", line 972, in visit_expr newnode.postinit(self.visit(node.value, newnode)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "astroid/astroid/rebuilder.py", line 448, in visit return visit_method(node, parent) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "astroid/astroid/rebuilder.py", line 737, in visit_binop self.visit(node.left, newnode), self.visit(node.right, newnode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [...snip...] File "astroid/astroid/rebuilder.py", line 448, in visit return visit_method(node, parent) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "astroid/astroid/rebuilder.py", line 737, in visit_binop self.visit(node.left, newnode), self.visit(node.right, newnode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "astroid/astroid/rebuilder.py", line 448, in visit return visit_method(node, parent) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "astroid/astroid/rebuilder.py", line 1395, in visit_constant return nodes.Const( ^^^^^^^^^^^^ File "astroid/astroid/nodes/node_classes.py", line 2078, in __init__ Instance.__init__(self, None) File "astroid/astroid/bases.py", line 347, in __init__ super().__init__(proxied) RecursionError: maximum recursion depth exceeded
No crash
d8dbc46
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce
The following code triggers a
RecursionError
in astroid:This bug was discovered by OSS-Fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=59874 (report not public yet)
Current behavior
Expected behavior
No crash
Version
d8dbc46
The text was updated successfully, but these errors were encountered: