-
-
Notifications
You must be signed in to change notification settings - Fork 37.3k
Run a job that the test suite with MSan to the CI #158625
New issue
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
base: main
Are you sure you want to change the base?
Changes from all commits
2e1fb0e
c01ed73
5c0f7ae
ab2ad7e
e51b518
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1690,6 +1690,7 @@ allocate_instrumentation_data(PyCodeObject *code) | |
| } | ||
| monitoring->local_monitors = (_Py_LocalMonitors){ 0 }; | ||
| monitoring->active_monitors = (_Py_LocalMonitors){ 0 }; | ||
| memset(monitoring->tool_versions, 0, sizeof(monitoring->tool_versions)); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's a surprising change. Does the current code rely on uninitialized memory? If it's a legit bug, it should be backported.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please see PR description:
|
||
| monitoring->tools = NULL; | ||
| monitoring->lines = NULL; | ||
| monitoring->line_tools = NULL; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe Objects/obmalloc.c can be modified to not use debug hooks on memory allocations when Python is built with
--with-memory-sanitizer. When I did tests on Valgrind, I setPYTHONMALLOC=mallocenvironment variable to disable debug hooks and disable pymalloc, to use the generic malloc()/free().