-
Notifications
You must be signed in to change notification settings - Fork 423
Closed
Description
- 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)
Metadata
Metadata
Assignees
Labels
No labels