Uh oh!
There was an error while loading. Please reload this page.
gh-148286: Run test_capi and test_faulthandler on GHA UBSan - #151274
Closed
vstinner wants to merge 1 commit into
Closed
gh-148286: Run test_capi and test_faulthandler on GHA UBSan#151274vstinner wants to merge 1 commit into
vstinner wants to merge 1 commit into
Conversation
vstinner
commented
Jun 10, 2026
MemberAuthor
vstinner
commented
Jun 10, 2026
MemberAuthor
I cannot reproduce test_capi or test_faulthandler failure locally. I built Python with |
vstinner
commented
Jun 10, 2026
MemberAuthor
Ah, the "Sanitizers / UBSan" CI failed:
|
vstinner
commented
Jun 10, 2026
MemberAuthor
I rebuilt Python with Aha. This time I'm able to reproduce the error: |
vstinner
commented
Jun 10, 2026
MemberAuthor
test_capi pass with this change: diff --git a/Lib/test/test_capi/test_unicode.py b/Lib/test/test_capi/test_unicode.py
index 5dee25756fe..16ee04ba22b 100644
--- a/Lib/test/test_capi/test_unicode.py+++ b/Lib/test/test_capi/test_unicode.py@@ -842,9 +842,9 @@ def test_fromwidechar(self):
if SIZEOF_WCHAR_T == 2:
self.assertEqual(fromwidechar('a\U0001f600'.encode(encoding), 2), 'a\ud83d')
- self.assertRaises(MemoryError, fromwidechar, b'', PY_SSIZE_T_MAX)+ #self.assertRaises(MemoryError, fromwidechar, b'', PY_SSIZE_T_MAX)
self.assertRaises(SystemError, fromwidechar, b'\0'*SIZEOF_WCHAR_T, -2)
- self.assertRaises(SystemError, fromwidechar, b'\0'*SIZEOF_WCHAR_T, PY_SSIZE_T_MIN)+ #self.assertRaises(SystemError, fromwidechar, b'\0'*SIZEOF_WCHAR_T, PY_SSIZE_T_MIN)
self.assertEqual(fromwidechar(NULL, 0), '')
self.assertRaises(SystemError, fromwidechar, NULL, 1)
self.assertRaises(SystemError, fromwidechar, NULL, PY_SSIZE_T_MAX) |
vstinner
commented
Jun 10, 2026
MemberAuthor
I created #151278 to fix test_faulthandler. Once test_faulthandler will be fixed, I will create an issue to fix test_capi. I close this PR since it's wrong. We cannot just reenable the tests since they fail. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.