bloomberg / memray

Memray is a memory profiler for Python
https://bloomberg.github.io/memray/
Apache License 2.0
13.17k stars 392 forks source link

memray is currently broken by Cython 3.0 #424

Closed pablogsal closed 1 year ago

pablogsal commented 1 year ago

Cython 3.0 enforces some signatures more strictly and currently we are failing with:

Error compiling Cython file:
------------------------------------------------------------
...
        self.ptr = pvalloc(size)
        return self.ptr != NULL

    def run_in_pthread(self, callback):
        cdef pthread_t thread
        cdef int ret = pthread_create(&thread, NULL, &_pthread_worker, <void*>callback)
                                                     ^
------------------------------------------------------------

src/memray/_memray_test_utils.pyx:109:53: Cannot assign type 'void *(*)(void *) except * nogil' to 'void *(*)(void *) noexcept nogil'
Traceback (most recent call last):