Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1de70b52
Commit
1de70b52
authored
Nov 05, 2012
by
Nick Coghlan
Browse files
Options
Browse Files
Download
Plain Diff
Merge #6717 crasher from 3.2
parents
32dd36bd
692b023f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
Lib/test/crashers/trace_at_recursion_limit.py
Lib/test/crashers/trace_at_recursion_limit.py
+27
-0
No files found.
Lib/test/crashers/trace_at_recursion_limit.py
0 → 100644
View file @
1de70b52
"""
From http://bugs.python.org/issue6717
A misbehaving trace hook can trigger a segfault by exceeding the recursion
limit.
"""
import
sys
def
x
():
pass
def
g
(
*
args
):
if
True
:
# change to True to crash interpreter
try
:
x
()
except
:
pass
return
g
def
f
():
print
(
sys
.
getrecursionlimit
())
f
()
sys
.
settrace
(
g
)
f
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment