question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

edgedb-python test fails with uvloop 0.15.0

See original GitHub issue
  • EdgeDB Version: 1.0-alpha.8+dev.5432.g931252366.d20210212
  • OS Version: macOS 11.2.1 / Darwin 20.3.0

This is reproducible without edgedb/uvloop using a Cython script, which illustrates how edgedb/uvloop 0.15 run:

import contextvars


cdef class P:
    cdef object t

    def __init__(self, t):
        self.t = t

    def run(self):
        self.t.clear()
        t = self.t  # segfault: self.t is NULL


cdef class T:
    cdef:
        object _p, _run

    def __init__(self):
        self._p = P(self)
        self._run = self._p.run

    def clear(self):
        self._p = None
        self._run = None


cdef main(T tt):
    ctx = contextvars.copy_context()
    ctx.run(tt._run)


if __name__ == '__main__':
    t = T()
    main(t)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
elpranscommented, Aug 13, 2022
1reaction
elpranscommented, Feb 13, 2021

@fantix, check upstream master branch/issues too. It is likely that they’ve fixed this already, just haven’t released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

uvloop build failed on Python 3.8 · Issue #277 - GitHub
Two days ago new stable Python version 3.8.0 has been released. Today I updated test matrix for one of my projects and noticed...
Read more >
pip install uvloop causes permission denied error
I try to install uvloop into a Python 3.9 venv on CentOS 7. These are all actions I take: cd ~ mkdir python_envs...
Read more >
uvloop - PyPI
uvloop is a fast, drop-in replacement of the built-in asyncio event loop. uvloop is implemented in Cython and uses libuv under the hood....
Read more >
uvloop - piwheels
The piwheels project page for uvloop: Fast implementation of asyncio event loop on top of libuv.
Read more >
1718390 – python3-uvloop fails to import with Python 3.8
Bug 1718390 - python3-uvloop fails to import with Python 3.8 ... This makes "python-sanic" (which imports uvloop during tests) fail to build for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found