Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 039714d

Browse filesBrowse files
gh-101975: Fixed a potential SegFault on garbage collection (GH-102803)
1 parent b3cc11a commit 039714d
Copy full SHA for 039714d

File tree

Expand file treeCollapse file tree

2 files changed

+2
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-0
lines changed
Open diff view settings
Collapse file
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed ``stacktop`` value on tracing entries to avoid corruption on garbage collection.
Collapse file

‎Python/ceval_macros.h‎

Copy file name to clipboardExpand all lines: Python/ceval_macros.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ GETITEM(PyObject *v, Py_ssize_t i) {
310310
_PyFrame_SetStackPointer(frame, stack_pointer); \
311311
int err = trace_function_entry(tstate, frame); \
312312
stack_pointer = _PyFrame_GetStackPointer(frame); \
313+
frame->stacktop = -1; \
313314
if (err) { \
314315
goto error; \
315316
} \

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.