Re: [pypy-dev] Help with asmmemmgr.py:_copy_to_raw_memory()

2021-10-20 Thread Armin Rigo
Hi, On Tue, 19 Oct 2021 at 20:47, M A wrote: > [translation:ERROR] Exception: A function calling locals() is not RPython. > Note that if you're translating code outside the PyPy repository, a likely > cause is that py.test's --assert=rewrite mode is getting in the way. You > should copy the

[pypy-dev] Help with asmmemmgr.py:_copy_to_raw_memory()

2021-10-19 Thread M A
Hi, I'm trying to call a C function from the asmmemmgr.py:_copy_to_raw_memory() function now. I tried following an example for malloc() and used llexternal() to make the call work. Here is what I tried: from rpython.translator.tool.cbuild import ExternalCompilationInfo info = Ext

Re: [pypy-dev] Help with asmmemmgr.py:_copy_to_raw_memory()

2021-10-12 Thread Armin Rigo
Hi, On Wed, 13 Oct 2021 at 04:08, M A wrote: > Hi guys. I am having a problem with a function called _copy_to_raw_memory() > in the file rpython/jit/backend/llsupport/asmmemmgr.py. After building PyPy > there is always a crash in this function. Here is a partial backtrace I > captured: > > * t

[pypy-dev] Help with asmmemmgr.py:_copy_to_raw_memory()

2021-10-12 Thread M A
Hi guys. I am having a problem with a function called _copy_to_raw_memory() in the file rpython/jit/backend/llsupport/asmmemmgr.py. After building PyPy there is always a crash in this function. Here is a partial backtrace I captured: * thread #1, queue = 'com.apple.main-thread', stop reason = EX