Skip to content
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

Assertion failure triggering on Mac OS with debugpy. #332

Closed
fabioz opened this issue Nov 17, 2022 · 0 comments · Fixed by #337
Closed

Assertion failure triggering on Mac OS with debugpy. #332

fabioz opened this issue Nov 17, 2022 · 0 comments · Fixed by #337

Comments

@fabioz
Copy link

fabioz commented Nov 17, 2022

Reports such as: microsoft/debugpy#1124 are being reported in debugpy after the greenlet update to 2.0.1 (on Mac OS).

I see 2 issues here:

  1. Apparently users are being fed a greenlet version with debug turned on -- as it's an assert that's failing:
    assert(this->tracefunc.REFCNT() == old_refs + 1);
  2. If the same function is set over and over again presumably this assert will fail because the refcount would be kept the same?
github-actions bot referenced this issue in MaRDI4NFDI/open-interfaces Jan 30, 2023
Bumps [greenlet](https://github.com/python-greenlet/greenlet) from 2.0.1
to 2.0.2.
<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>2.0.2 (2023-01-28)</h1>
<ul>
<li>Fix calling <code>greenlet.settrace()</code> with the same tracer
object that
was currently active. See <code>issue 332
&lt;https://github.com/python-greenlet/greenlet/issues/332&gt;</code>_.</li>
<li>Various compilation and standards conformance fixes. See <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/335">#335</a>,
<a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/336">#336</a>,
<a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/300">#300</a>,
<a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/302">#302</a>,
<a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/334">#334</a>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/45e78ee5dbefe91c201b8d2b492b2701248e4c4c"><code>45e78ee</code></a>
Preparing release 2.0.2</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/b55ea9e05172e5cfd91ca00dda38895024104ce1"><code>b55ea9e</code></a>
Improve type error messages. Refs <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/330">#330</a></li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/1784361e97545c520384cfe50796136c337d1763"><code>1784361</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/342">#342</a>
from python-greenlet/issue334</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/f891cc2d340e2f7983719d6f625ade517785933f"><code>f891cc2</code></a>
Attempt a fix for <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/334">#334</a></li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/ae570c56dbee9070b02eb2124f0b991cce52f4db"><code>ae570c5</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/341">#341</a>
from python-greenlet/issue302</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/616df6049cca1d94f783447ad164e331b3044ead"><code>616df60</code></a>
Stop using 'const PyObject*, per <a
href="https://github.com/vstinner"><code>@​vstinner</code></a></li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/880825b7f02c4e22d64eef2e16a015c6a629fdcd"><code>880825b</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/340">#340</a>
from python-greenlet/new-actions</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/da25c7f3b07e55c2239f3e618cf29dea3c0864e0"><code>da25c7f</code></a>
Moving to currently supported action versions.</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/424733f52b9d2ad1c0bf8abd58119bc27aec30c8"><code>424733f</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/339">#339</a>
from python-greenlet/issue300</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/99cad0de1ee0af3c62d16415d1632d781fa3af60"><code>99cad0d</code></a>
Fix setup.py encoding; bump github codeql from v2 to v2</li>
<li>Additional commits viewable in <a
href="https://github.com/python-greenlet/greenlet/compare/2.0.1...2.0.2">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=2.0.1&new-version=2.0.2)](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 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>
danielkjellid referenced this issue in danielkjellid/nest Feb 1, 2023
Bumps [greenlet](https://github.com/python-greenlet/greenlet) from 2.0.1
to 2.0.2.
<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>2.0.2 (2023-01-28)</h1>
<ul>
<li>Fix calling <code>greenlet.settrace()</code> with the same tracer
object that
was currently active. See <code>issue 332
&lt;https://github.com/python-greenlet/greenlet/issues/332&gt;</code>_.</li>
<li>Various compilation and standards conformance fixes. See <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/335">#335</a>,
<a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/336">#336</a>,
<a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/300">#300</a>,
<a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/302">#302</a>,
<a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/334">#334</a>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/45e78ee5dbefe91c201b8d2b492b2701248e4c4c"><code>45e78ee</code></a>
Preparing release 2.0.2</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/b55ea9e05172e5cfd91ca00dda38895024104ce1"><code>b55ea9e</code></a>
Improve type error messages. Refs <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/330">#330</a></li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/1784361e97545c520384cfe50796136c337d1763"><code>1784361</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/342">#342</a>
from python-greenlet/issue334</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/f891cc2d340e2f7983719d6f625ade517785933f"><code>f891cc2</code></a>
Attempt a fix for <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/334">#334</a></li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/ae570c56dbee9070b02eb2124f0b991cce52f4db"><code>ae570c5</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/341">#341</a>
from python-greenlet/issue302</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/616df6049cca1d94f783447ad164e331b3044ead"><code>616df60</code></a>
Stop using 'const PyObject*, per <a
href="https://github.com/vstinner"><code>@​vstinner</code></a></li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/880825b7f02c4e22d64eef2e16a015c6a629fdcd"><code>880825b</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/340">#340</a>
from python-greenlet/new-actions</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/da25c7f3b07e55c2239f3e618cf29dea3c0864e0"><code>da25c7f</code></a>
Moving to currently supported action versions.</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/424733f52b9d2ad1c0bf8abd58119bc27aec30c8"><code>424733f</code></a>
Merge pull request <a
href="https://github-redirect.dependabot.com/python-greenlet/greenlet/issues/339">#339</a>
from python-greenlet/issue300</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/99cad0de1ee0af3c62d16415d1632d781fa3af60"><code>99cad0d</code></a>
Fix setup.py encoding; bump github codeql from v2 to v2</li>
<li>Additional commits viewable in <a
href="https://github.com/python-greenlet/greenlet/compare/2.0.1...2.0.2">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=2.0.1&new-version=2.0.2)](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 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] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
emilymclean referenced this issue in TechlauncherFireApp/backend Aug 13, 2023
Bumps [greenlet](https://github.com/python-greenlet/greenlet) from 1.0.0
to 2.0.2.
<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>2.0.2 (2023-01-28)</h1>
<ul>
<li>Fix calling <code>greenlet.settrace()</code> with the same tracer
object that
was currently active. See <code>issue 332
&lt;https://github.com/python-greenlet/greenlet/issues/332&gt;</code>_.</li>
<li>Various compilation and standards conformance fixes. See <a
href="https://redirect.github.com/python-greenlet/greenlet/issues/335">#335</a>,
<a
href="https://redirect.github.com/python-greenlet/greenlet/issues/336">#336</a>,
<a
href="https://redirect.github.com/python-greenlet/greenlet/issues/300">#300</a>,
<a
href="https://redirect.github.com/python-greenlet/greenlet/issues/302">#302</a>,
<a
href="https://redirect.github.com/python-greenlet/greenlet/issues/334">#334</a>.</li>
</ul>
<h1>2.0.1 (2022-11-07)</h1>
<ul>
<li>Python 3.11: Fix a memory leak. See <code>issue 328
&lt;https://github.com/python-greenlet/greenlet/issues/328&gt;</code>_
and
<code>gevent issue 1924
&lt;https://github.com/gevent/gevent/issues/1924&gt;</code>_.</li>
</ul>
<h1>2.0.0.post0 (2022-11-03)</h1>
<ul>
<li>Add <code>Programming Language :: Python :: 3.11</code> to the PyPI
classifier metadata.</li>
</ul>
<h1>2.0.0 (2022-10-31)</h1>
<ul>
<li>Nothing changed yet.</li>
</ul>
<h1>2.0.0rc5 (2022-10-31)</h1>
<ul>
<li>Linux: Fix another group of rare crashes that could occur when
shutting down an
interpeter running multiple threads. See <code>issue 325
&lt;https://github.com/python-greenlet/greenlet/issues/325&gt;</code>_.</li>
</ul>
<h1>2.0.0rc4 (2022-10-30)</h1>
<ul>
<li>Linux: Fix a rare crash that could occur when shutting down an
interpreter running multiple threads, when some of those threads are
in greenlets making calls to functions that release the GIL.</li>
</ul>
<h1>2.0.0rc3 (2022-10-29)</h1>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/45e78ee5dbefe91c201b8d2b492b2701248e4c4c"><code>45e78ee</code></a>
Preparing release 2.0.2</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/b55ea9e05172e5cfd91ca00dda38895024104ce1"><code>b55ea9e</code></a>
Improve type error messages. Refs <a
href="https://redirect.github.com/python-greenlet/greenlet/issues/330">#330</a></li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/1784361e97545c520384cfe50796136c337d1763"><code>1784361</code></a>
Merge pull request <a
href="https://redirect.github.com/python-greenlet/greenlet/issues/342">#342</a>
from python-greenlet/issue334</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/f891cc2d340e2f7983719d6f625ade517785933f"><code>f891cc2</code></a>
Attempt a fix for <a
href="https://redirect.github.com/python-greenlet/greenlet/issues/334">#334</a></li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/ae570c56dbee9070b02eb2124f0b991cce52f4db"><code>ae570c5</code></a>
Merge pull request <a
href="https://redirect.github.com/python-greenlet/greenlet/issues/341">#341</a>
from python-greenlet/issue302</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/616df6049cca1d94f783447ad164e331b3044ead"><code>616df60</code></a>
Stop using 'const PyObject*, per <a
href="https://github.com/vstinner"><code>@​vstinner</code></a></li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/880825b7f02c4e22d64eef2e16a015c6a629fdcd"><code>880825b</code></a>
Merge pull request <a
href="https://redirect.github.com/python-greenlet/greenlet/issues/340">#340</a>
from python-greenlet/new-actions</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/da25c7f3b07e55c2239f3e618cf29dea3c0864e0"><code>da25c7f</code></a>
Moving to currently supported action versions.</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/424733f52b9d2ad1c0bf8abd58119bc27aec30c8"><code>424733f</code></a>
Merge pull request <a
href="https://redirect.github.com/python-greenlet/greenlet/issues/339">#339</a>
from python-greenlet/issue300</li>
<li><a
href="https://github.com/python-greenlet/greenlet/commit/99cad0de1ee0af3c62d16415d1632d781fa3af60"><code>99cad0d</code></a>
Fix setup.py encoding; bump github codeql from v2 to v2</li>
<li>Additional commits viewable in <a
href="https://github.com/python-greenlet/greenlet/compare/1.0.0...2.0.2">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=1.0.0&new-version=2.0.2)](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] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant