-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Some error paths do not set Exceptions in _testexternalinspection #130052
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
Comments
…ion (#130053) Co-authored-by: Victor Stinner <vstinner@python.org>
I see the same issue happening with a7 on aarch64 with freethreading-debug build:
|
@befeleme Can you rerun this test with following patch?
I want to make sure that the get_stack_trace from _testexternalinspection is actually called (I just checked the code again and don't see anything suspicious). |
On Fedora Rawhide x86-64, I get the following unrelated errors:
On Fedora 41 AArch64 with Python built with |
Ah, Fedora builds Python with LTO. I recall that |
Testing again with the patch, a similar failure happens on s390x in another test:
|
Ok, I reproduced the error on s390x using the Fedora package The error comes from search_map_for_section() at: 402 exit:
403 if (close(fd) != 0) {
404 PyErr_SetFromErrno(PyExc_OSError);
405 } The problem is that the I'm working on a fix: #132594 |
* Don't call close() if the file descriptor is negative. * If close() fails, chain the existing exception.
* Don't call close() if the file descriptor is negative. * If close() fails, chain the existing exception.
Bug report
Bug description:
Following @colesbury findings at #130035 (comment), I did a manual inspection of
_testexternalinspection
and found a few more cases where Exception should be set.Will sent a PR soon.
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: