-
Notifications
You must be signed in to change notification settings - Fork 247
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
C++ exception test fails in 3.0.1 on arm-linux-gnueabihf #385
Comments
We run linux arm tests as part of CI, so it appears that the libc/libc++ runtime on this platform is different than that of the The code appears to be functioning correctly, only the error message is different from the expected value. Patches welcome; it should just be a small tweak to the test. However, because we don't have CI for this platform I can't guarantee things won't break again. |
there's a misunderstanding. This is ARM32, not AArch64. this is the current Ubuntu development version, leading to 24.04 LTS. It has glibc 2.37, and libstdc++ from GCC 13.2 |
Nonetheless, what I said stands. Patches welcome. |
Is something like this accepted? |
Based on the message that does come out, it seems like an exception is being thrown from the exception handling here, causing |
@jamessan |
For reference, this affects sparc64 also, and the patch fixes it in the same way. |
See: python-greenlet/greenlet@d14f7dc See: python-greenlet/greenlet#385 Bug: https://bugs.gentoo.org/917191 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
See: python-greenlet/greenlet@d14f7dc See: python-greenlet/greenlet#385 Bug: https://bugs.gentoo.org/917191 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk>
Bumps [greenlet](https://github.com/python-greenlet/greenlet) from 3.0.0 to 3.0.3. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/python-greenlet/greenlet/blob/master/CHANGES.rst">greenlet's changelog</a>.</em></p> <blockquote> <h1>3.0.3 (2023-12-21)</h1> <ul> <li>Python 3.12: Restore the full ability to walk the stack of a suspended greenlet; previously only the innermost frame was exposed. See <code>issue 388 <https://github.com/python-greenlet/greenlet/issues/388></code><em>. Fix by Joshua Oreman in <code>PR 393 <https://github.com/python-greenlet/greenlet/pull/393/></code></em>.</li> </ul> <h1>3.0.2 (2023-12-08)</h1> <ul> <li>Packaging: Add a minimal <code>pyproject.toml</code> to sdists.</li> <li>Packaging: Various updates to macOS wheels.</li> <li>Fix a test case on Arm32. Note that this is not a supported platform (there is no CI for it) and support is best effort; there may be other issues lurking. See <code>issue 385 <https://github.com/python-greenlet/greenlet/issues/385></code>_</li> </ul> <h1>3.0.1 (2023-10-25)</h1> <ul> <li>Fix a potential crash on Python 3.8 at interpreter shutdown time. This was a regression from earlier 3.0.x releases. Reported by Matt Wozniski in <code>issue 376 <https://github.com/python-greenlet/greenlet/issues/376></code>_.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/python-greenlet/greenlet/commit/ea4bc2776c75429a577e539389fee40ad9e46707"><code>ea4bc27</code></a> Preparing release 3.0.3</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/7694880b128bfa54ea0ece59974695a06af09931"><code>7694880</code></a> Make doctests work on 3.7 again, which doesn't have importlib.</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/073b1e1cf4ec25a8b90a534176bf79336d87689e"><code>073b1e1</code></a> Linting. Add linting to CI.</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/9e73b59eadb68017c25e8fabf0b9dba2eef6f150"><code>9e73b59</code></a> Docs: Update from the old default theme to furo.</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/5f4b4bbc098330b87211405ef50e276325c15a53"><code>5f4b4bb</code></a> Py3.12: Always expose greenlet frames on a switch.</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/13148f9f975924da18bef14054a558160e13369c"><code>13148f9</code></a> Update comment that was still referring to a different, less-robust approach ...</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/b5f9d232c401d8fba8710778ad85b29a41ec3924"><code>b5f9d23</code></a> Restore stack introspection ability on 3.12</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/edbdda27ab1983ac157b588dd0c04816cb31b0ea"><code>edbdda2</code></a> Back to development: 3.0.3</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/719ea473c61e9934cb75ebd04a52dda32a030863"><code>719ea47</code></a> Preparing release 3.0.2</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/2c0793c1b35e785d4353d4c6ce17cde2137da1c4"><code>2c0793c</code></a> Add change note about macOS wheels.</li> <li>Additional commits viewable in <a href="https://github.com/python-greenlet/greenlet/compare/3.0.0...3.0.3">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=greenlet&package-manager=pip&previous-version=3.0.0&new-version=3.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
Bumps [greenlet](https://github.com/python-greenlet/greenlet) from 3.0.1 to 3.0.3. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/python-greenlet/greenlet/blob/master/CHANGES.rst">greenlet's changelog</a>.</em></p> <blockquote> <h1>3.0.3 (2023-12-21)</h1> <ul> <li>Python 3.12: Restore the full ability to walk the stack of a suspended greenlet; previously only the innermost frame was exposed. See <code>issue 388 <https://github.com/python-greenlet/greenlet/issues/388></code><em>. Fix by Joshua Oreman in <code>PR 393 <https://github.com/python-greenlet/greenlet/pull/393/></code></em>.</li> </ul> <h1>3.0.2 (2023-12-08)</h1> <ul> <li>Packaging: Add a minimal <code>pyproject.toml</code> to sdists.</li> <li>Packaging: Various updates to macOS wheels.</li> <li>Fix a test case on Arm32. Note that this is not a supported platform (there is no CI for it) and support is best effort; there may be other issues lurking. See <code>issue 385 <https://github.com/python-greenlet/greenlet/issues/385></code>_</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/python-greenlet/greenlet/commit/ea4bc2776c75429a577e539389fee40ad9e46707"><code>ea4bc27</code></a> Preparing release 3.0.3</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/7694880b128bfa54ea0ece59974695a06af09931"><code>7694880</code></a> Make doctests work on 3.7 again, which doesn't have importlib.</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/073b1e1cf4ec25a8b90a534176bf79336d87689e"><code>073b1e1</code></a> Linting. Add linting to CI.</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/9e73b59eadb68017c25e8fabf0b9dba2eef6f150"><code>9e73b59</code></a> Docs: Update from the old default theme to furo.</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/5f4b4bbc098330b87211405ef50e276325c15a53"><code>5f4b4bb</code></a> Py3.12: Always expose greenlet frames on a switch.</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/13148f9f975924da18bef14054a558160e13369c"><code>13148f9</code></a> Update comment that was still referring to a different, less-robust approach ...</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/b5f9d232c401d8fba8710778ad85b29a41ec3924"><code>b5f9d23</code></a> Restore stack introspection ability on 3.12</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/edbdda27ab1983ac157b588dd0c04816cb31b0ea"><code>edbdda2</code></a> Back to development: 3.0.3</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/719ea473c61e9934cb75ebd04a52dda32a030863"><code>719ea47</code></a> Preparing release 3.0.2</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/2c0793c1b35e785d4353d4c6ce17cde2137da1c4"><code>2c0793c</code></a> Add change note about macOS wheels.</li> <li>Additional commits viewable in <a href="https://github.com/python-greenlet/greenlet/compare/3.0.1...3.0.3">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=greenlet&package-manager=pip&previous-version=3.0.1&new-version=3.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [greenlet](https://github.com/python-greenlet/greenlet) from 3.0.1 to 3.0.3. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/python-greenlet/greenlet/blob/master/CHANGES.rst">greenlet's changelog</a>.</em></p> <blockquote> <h1>3.0.3 (2023-12-21)</h1> <ul> <li>Python 3.12: Restore the full ability to walk the stack of a suspended greenlet; previously only the innermost frame was exposed. See <code>issue 388 <https://github.com/python-greenlet/greenlet/issues/388></code><em>. Fix by Joshua Oreman in <code>PR 393 <https://github.com/python-greenlet/greenlet/pull/393/></code></em>.</li> </ul> <h1>3.0.2 (2023-12-08)</h1> <ul> <li>Packaging: Add a minimal <code>pyproject.toml</code> to sdists.</li> <li>Packaging: Various updates to macOS wheels.</li> <li>Fix a test case on Arm32. Note that this is not a supported platform (there is no CI for it) and support is best effort; there may be other issues lurking. See <code>issue 385 <https://github.com/python-greenlet/greenlet/issues/385></code>_</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/python-greenlet/greenlet/commit/ea4bc2776c75429a577e539389fee40ad9e46707"><code>ea4bc27</code></a> Preparing release 3.0.3</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/7694880b128bfa54ea0ece59974695a06af09931"><code>7694880</code></a> Make doctests work on 3.7 again, which doesn't have importlib.</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/073b1e1cf4ec25a8b90a534176bf79336d87689e"><code>073b1e1</code></a> Linting. Add linting to CI.</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/9e73b59eadb68017c25e8fabf0b9dba2eef6f150"><code>9e73b59</code></a> Docs: Update from the old default theme to furo.</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/5f4b4bbc098330b87211405ef50e276325c15a53"><code>5f4b4bb</code></a> Py3.12: Always expose greenlet frames on a switch.</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/13148f9f975924da18bef14054a558160e13369c"><code>13148f9</code></a> Update comment that was still referring to a different, less-robust approach ...</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/b5f9d232c401d8fba8710778ad85b29a41ec3924"><code>b5f9d23</code></a> Restore stack introspection ability on 3.12</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/edbdda27ab1983ac157b588dd0c04816cb31b0ea"><code>edbdda2</code></a> Back to development: 3.0.3</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/719ea473c61e9934cb75ebd04a52dda32a030863"><code>719ea47</code></a> Preparing release 3.0.2</li> <li><a href="https://github.com/python-greenlet/greenlet/commit/2c0793c1b35e785d4353d4c6ce17cde2137da1c4"><code>2c0793c</code></a> Add change note about macOS wheels.</li> <li>Additional commits viewable in <a href="https://github.com/python-greenlet/greenlet/compare/3.0.1...3.0.3">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=greenlet&package-manager=pip&previous-version=3.0.1&new-version=3.0.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
As seen in
https://launchpad.net/ubuntu/+source/python-greenlet/3.0.1-0ubuntu1/+build/26969609
the test fails on arm-linux-gnueabihf, but succeeds on other architectures.
this fails with both 3.11 and 3.12.
======================================================================
FAIL: test_unhandled_std_exception_as_greenlet_function_aborts (greenlet.tests.test_cpp.CPPTests.test_unhandled_std_exception_as_greenlet_function_aborts)
Traceback (most recent call last):
File "/<>/.pybuild/cpython3_3.12/build/greenlet/tests/leakcheck.py", line 316, in wrapper
return _RefCountChecker(self, method)(args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/<>/.pybuild/cpython3_3.12/build/greenlet/tests/leakcheck.py", line 294, in call
self._run_test(args, kwargs)
File "/<>/.pybuild/cpython3_3.12/build/greenlet/tests/leakcheck.py", line 212, in _run_test
self.function(self.testcase, *args, **kwargs)
File "/<>/.pybuild/cpython3_3.12/build/greenlet/tests/test_cpp.py", line 58, in test_unhandled_std_exception_as_greenlet_function_aborts
self.assertIn(
AssertionError: 'greenlet: Unhandled C++ exception: Thrown from an extension.' not found in "fail_cpp_exception is running\nraising <built-in method switch of greenlet.greenlet object at 0xf7b3e748>\nterminate called after throwing an instance of 'std::runtime_error'\n what(): Thrown from an extension.\n"
Ran 137 tests in 28.518s
FAILED (failures=1, skipped=1)
The text was updated successfully, but these errors were encountered: