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
b84cb708
Commit
b84cb708
authored
Apr 30, 2019
by
Victor Stinner
Committed by
GitHub
Apr 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-36734: Fix compilation of faulthandler.c on HP-UX (GH-12970)
Initialize "stack_t current_stack" to zero using memset().
parent
3bbcc925
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Misc/NEWS.d/next/Library/2019-04-26-17-14-20.bpo-36734.p2MaiN.rst
...S.d/next/Library/2019-04-26-17-14-20.bpo-36734.p2MaiN.rst
+2
-0
Modules/faulthandler.c
Modules/faulthandler.c
+2
-1
No files found.
Misc/NEWS.d/next/Library/2019-04-26-17-14-20.bpo-36734.p2MaiN.rst
0 → 100644
View file @
b84cb708
Fix compilation of ``faulthandler.c`` on HP-UX. Initialize ``stack_t
current_stack`` to zero using ``memset()``.
Modules/faulthandler.c
View file @
b84cb708
...
...
@@ -1370,7 +1370,8 @@ void _PyFaulthandler_Fini(void)
#ifdef HAVE_SIGALTSTACK
if
(
stack
.
ss_sp
!=
NULL
)
{
/* Fetch the current alt stack */
stack_t
current_stack
=
{};
stack_t
current_stack
;
memset
(
&
current_stack
,
0
,
sizeof
(
current_stack
));
if
(
sigaltstack
(
NULL
,
&
current_stack
)
==
0
)
{
if
(
current_stack
.
ss_sp
==
stack
.
ss_sp
)
{
/* The current alt stack is the one that we installed.
...
...
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