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
385efb4d
Commit
385efb4d
authored
Feb 11, 2015
by
Victor Stinner
Browse files
Options
Browse Files
Download
Plain Diff
Merge 3.4 (faulthandler)
parents
eb6b554f
7a5567a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Modules/faulthandler.c
Modules/faulthandler.c
+5
-4
No files found.
Modules/faulthandler.c
View file @
385efb4d
...
...
@@ -927,12 +927,12 @@ faulthandler_fatal_error_py(PyObject *self, PyObject *args)
}
#if defined(HAVE_SIGALTSTACK) && defined(HAVE_SIGACTION)
static
void
*
stack_overflow
(
void
*
min_sp
,
void
*
max_sp
,
size_t
*
depth
)
static
Py_uintptr_t
stack_overflow
(
Py_uintptr_t
min_sp
,
Py_uintptr_t
max_sp
,
size_t
*
depth
)
{
/* allocate 4096 bytes on the stack at each call */
unsigned
char
buffer
[
4096
];
void
*
sp
=
&
buffer
;
Py_uintptr_t
sp
=
(
Py_uintptr_t
)
&
buffer
;
*
depth
+=
1
;
if
(
sp
<
min_sp
||
max_sp
<
sp
)
return
sp
;
...
...
@@ -945,7 +945,8 @@ static PyObject *
faulthandler_stack_overflow
(
PyObject
*
self
)
{
size_t
depth
,
size
;
char
*
sp
=
(
char
*
)
&
depth
,
*
stop
;
Py_uintptr_t
sp
=
(
Py_uintptr_t
)
&
depth
;
Py_uintptr_t
stop
;
faulthandler_suppress_crash_report
();
depth
=
0
;
...
...
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