GeezerVison is showing github.com — gh-126742: allow to use non-UTF8 exception messages by picnixz · Pull Request #126746 · python/cpython
Conversation
picnixz
commented
Nov 12, 2024
•
edited by bedevere-app
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
picnixz
changed the title
gh-126742: allow to use translated exception messages
gh-126742: allow to use non-UTF8 exception messages
Nov 12, 2024
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Technically, since this is a bugfix, let's wait until #126555 has landed before we merge this, and then address all the uses of dlerror() in this PR.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
picnixz
commented
Nov 12, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
then address all the uses of dlerror() in this PR.
I actually thought of doing it two PRs. Technically, this specific PR can be merged without waiting for the other and then you can use this interface in the other (rather the other way around).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Eh, I would rather not. Let's not overwhelm someone with thread states and the private API on their first PR :)
|
picnixz reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I've removed backport labels, per what Petr said in the issue. I think he's right--let's just focus on main with this.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Hmm, just had an idea: if we add a “char* in locale encoding” format to PyUnicode_FromFormat, it'll be possible to use it with PyErr_Format -- but also for non-error messages.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I like that idea! But we're exposing this as a public API--how often might users need this? (I've never needed to mess with locale in any of my C API usage, but to be fair I'm typically not calling APIs that return strings.)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
picnixz
commented
Nov 15, 2024
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Hmm, just had an idea: if we add a “char* in locale encoding” format to
I'm not very fond of adding a case to additionally check when there's not a lot of use cases (unless proven otherwise). It shouldn't affect performances much (but this needs verification) but this would complicate an already complicate function I think (and people need to remember this new format as well).
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
No no, I don't think he meant a variation of PyUnicode_FromFormat that takes a locale, he meant a format value %whatever that automatically calls PyUnicode_DecodeLocale or something like that.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
No no, I don't think he meant a variation of PyUnicode_FromFormat that takes a locale, he meant a format value %whatever that automatically calls PyUnicode_DecodeLocale or something like that.
And I understood. I don't think a new code should be added unless there is a real need.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
And I understood.
Ah! I couldn't tell, sorry.
A code search for PyUnicode_DecodeLocale is showing not too much real world usage--maybe that's a bad thing? Depending on how common it is for a non-UTF8 locale to break things, maybe it would be a good idea to add a format character just so people start handling it.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
It could also show that we're mainly handling errors from the OS at one point -- the OSError constructor. That would be a good thing :)
Anyway, for this PR: @picnixz, do you want to add calls to the new helper(s)?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
FWIW, Bénédikt is on vacation right now. I don't think he'll be able to implement anything until next week.
|
encukou reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
I don't see the purpose of these internal functions since they are now used. This PR only adds dead code. I would prefer to see how these functions are used.
If only dlerror() uses it, why not using code using dlerror()?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks @picnixz for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Sorry, @picnixz and @encukou, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 7303f06846b69016a075bca7ad7c6055f29ad024 3.12
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This is a bug fix. It should be backported.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Ah! I think we should also have a NEWS entry. I'll add one. Sorry for forgetting about it :(
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Concerning the failure on 3.12 backport it's because we did not backported the PR on dlerror() usages yet. I've opened a PR for that #127764
|
serhiy-storchaka reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Thanks @picnixz for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Sorry, @picnixz and @encukou, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 7303f06846b69016a075bca7ad7c6055f29ad024 3.12
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Grrr. I thought that the conflicts would be easily solved but apparently not. I'll do the backport manually.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
picnixz
added a commit
to picnixz/cpython
that referenced
this pull request
Dec 17, 2024
…r messages (pythonGH-126746)
- Add a helper to set an error from locale-encoded `char*`
- Use the helper for gdbm & dlerror messages
Co-authored-by: Victor Stinner <[email protected]>
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️
Hi! The buildbot PPC64LE RHEL8 3.x has failed when building commit 7303f06.
What do you need to do:
- Don't panic.
- Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
- Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/559/builds/5438) and take a look at the build logs.
- Check if the failure is related to this commit (7303f06) or if it is a false positive.
- If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.
You can take a look at the buildbot page here:
https://buildbot.python.org/#/builders/559/builds/5438
Failed tests:
Failed subtests:
- test_localized_error_in_dll - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_in_dll
- test_localized_error_from_dll - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_from_dll
- test_localized_error_dlsym - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_dlsym
Summary of the results of the build (if available):
==
Click to see traceback logs
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le/build/Lib/test/test_ctypes/test_dlerror.py", line 179, in test_localized_error_dlsym
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le/build/Lib/test/test_ctypes/test_dlerror.py", line 144, in test_localized_error_from_dll
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le/build/Lib/test/test_ctypes/test_dlerror.py", line 153, in test_localized_error_in_dll
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Ok, so I didn't expect that on some archs, the error message would be different...
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️
Hi! The buildbot PPC64LE RHEL8 LTO 3.x has failed when building commit 7303f06.
What do you need to do:
- Don't panic.
- Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
- Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/361/builds/5642) and take a look at the build logs.
- Check if the failure is related to this commit (7303f06) or if it is a false positive.
- If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.
You can take a look at the buildbot page here:
https://buildbot.python.org/#/builders/361/builds/5642
Failed tests:
Failed subtests:
- test_localized_error_in_dll - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_in_dll
- test_localized_error_from_dll - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_from_dll
- test_localized_error_dlsym - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_dlsym
Summary of the results of the build (if available):
==
Click to see traceback logs
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_ctypes/test_dlerror.py", line 179, in test_localized_error_dlsym
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_ctypes/test_dlerror.py", line 153, in test_localized_error_in_dll
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_ctypes/test_dlerror.py", line 144, in test_localized_error_from_dll
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Tests are failing on PPC64LE RHEL8 LTO 3.x:
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
I've opened #128034 for this but Serhiy suggested removing the filename check as well.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️
Hi! The buildbot PPC64LE RHEL8 3.13 has failed when building commit fe08cdf.
What do you need to do:
- Don't panic.
- Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
- Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/1430/builds/360) and take a look at the build logs.
- Check if the failure is related to this commit (fe08cdf) or if it is a false positive.
- If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.
You can take a look at the buildbot page here:
https://buildbot.python.org/#/builders/1430/builds/360
Failed tests:
Failed subtests:
- test_localized_error_in_dll - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_in_dll
- test_localized_error_from_dll - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_from_dll
- test_localized_error_dlsym - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_dlsym
Summary of the results of the build (if available):
==
Click to see traceback logs
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le/build/Lib/test/test_ctypes/test_dlerror.py", line 153, in test_localized_error_in_dll
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le/build/Lib/test/test_ctypes/test_dlerror.py", line 144, in test_localized_error_from_dll
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le/build/Lib/test/test_ctypes/test_dlerror.py", line 179, in test_localized_error_dlsym
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️
Hi! The buildbot PPC64LE RHEL8 LTO + PGO 3.13 has failed when building commit fe08cdf.
What do you need to do:
- Don't panic.
- Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
- Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/1444/builds/374) and take a look at the build logs.
- Check if the failure is related to this commit (fe08cdf) or if it is a false positive.
- If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.
You can take a look at the buildbot page here:
https://buildbot.python.org/#/builders/1444/builds/374
Failed tests:
Failed subtests:
- test_localized_error_in_dll - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_in_dll
- test_localized_error_from_dll - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_from_dll
- test_localized_error_dlsym - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_dlsym
Summary of the results of the build (if available):
==
Click to see traceback logs
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_ctypes/test_dlerror.py", line 153, in test_localized_error_in_dll
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_ctypes/test_dlerror.py", line 179, in test_localized_error_dlsym
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto-pgo/build/Lib/test/test_ctypes/test_dlerror.py", line 144, in test_localized_error_from_dll
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️
Hi! The buildbot PPC64LE RHEL8 LTO 3.13 has failed when building commit fe08cdf.
What do you need to do:
- Don't panic.
- Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
- Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/1412/builds/375) and take a look at the build logs.
- Check if the failure is related to this commit (fe08cdf) or if it is a false positive.
- If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.
You can take a look at the buildbot page here:
https://buildbot.python.org/#/builders/1412/builds/375
Failed tests:
Failed subtests:
- test_localized_error_in_dll - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_in_dll
- test_localized_error_from_dll - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_from_dll
- test_localized_error_dlsym - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_dlsym
Summary of the results of the build (if available):
==
Click to see traceback logs
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_ctypes/test_dlerror.py", line 153, in test_localized_error_in_dll
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_ctypes/test_dlerror.py", line 144, in test_localized_error_from_dll
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.lto/build/Lib/test/test_ctypes/test_dlerror.py", line 179, in test_localized_error_dlsym
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️
Hi! The buildbot PPC64LE RHEL8 Refleaks 3.13 has failed when building commit fe08cdf.
What do you need to do:
- Don't panic.
- Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
- Go to the page of the buildbot that failed (https://buildbot.python.org/#/builders/1407/builds/317) and take a look at the build logs.
- Check if the failure is related to this commit (fe08cdf) or if it is a false positive.
- If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.
You can take a look at the buildbot page here:
https://buildbot.python.org/#/builders/1407/builds/317
Failed tests:
Failed subtests:
- test_localized_error_in_dll - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_in_dll
- test_localized_error_from_dll - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_from_dll
- test_localized_error_dlsym - test.test_ctypes.test_dlerror.TestLocalization.test_localized_error_dlsym
Summary of the results of the build (if available):
==
Click to see traceback logs
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.refleak/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.refleak/build/Lib/test/test_ctypes/test_dlerror.py", line 153, in test_localized_error_in_dll
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.refleak/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.refleak/build/Lib/test/test_ctypes/test_dlerror.py", line 144, in test_localized_error_from_dll
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.refleak/build/Lib/contextlib.py", line 85, in inner
return func(*args, **kwds)
File "/home/buildbot/buildarea/3.13.cstratak-RHEL8-ppc64le.refleak/build/Lib/test/test_ctypes/test_dlerror.py", line 179, in test_localized_error_dlsym
self.assertIn(self.libc_filename, str(cm.exception))
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 'libc.so.6' not found in '/lib64/glibc-hwcaps/power9/libc-2.28.so: undefined symbol: this_name_does_not_exist'
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
srinivasreddy
pushed a commit
to srinivasreddy/cpython
that referenced
this pull request
Jan 8, 2025
…r messages (pythonGH-126746)
- Add a helper to set an error from locale-encoded `char*`
- Use the helper for gdbm & dlerror messages
Co-authored-by: Victor Stinner <[email protected]>
Reviewers
vstinner
vstinner approved these changes
encukou
encukou approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|