Re: [MIPS] Garbage collection crash during Unix port running on MIPS
Posted: Mon Jun 07, 2021 9:15 pm
I'm seeing some problem with FFI on x64 Ubuntu.
I'm trying to implement "machine.Timer" based on timer.py from micropython-lib here: https://github.com/lvgl/lv_binding_micr ... v_timer.py
It works up to some point and then crashes:
I'm trying to implement "machine.Timer" based on timer.py from micropython-lib here: https://github.com/lvgl/lv_binding_micr ... v_timer.py
It works up to some point and then crashes:
Code: Select all
>>> from lv_timer import Timer
>>> def f(t):
... pass
...
...
...
>>> t = Timer(1)
>>> t.init(period=1, callback=f)
>>>
>>>
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff79b7ae1 in ffi_closure_unix64_inner () from /usr/lib/x86_64-linux-gnu/libffi.so.6
(gdb) bt
#0 0x00007ffff79b7ae1 in ffi_closure_unix64_inner () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#1 0x00007ffff79b7fa8 in ffi_closure_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#2 <signal handler called>
#3 0x00007ffff7bca4fe in __read_nocancel () at ../sysdeps/unix/syscall-template.S:84
#4 0x000000000064823a in mp_hal_stdin_rx_chr () at unix_mphal.c:170
#5 0x00000000007672d1 in readline (line=0x7fffffffd5d0, prompt=0x82324d ">>> ") at ../../lib/mp-readline/readline.c:512
#6 0x0000000000646d4e in do_repl () at main.c:194
#7 0x0000000000647eb9 in main_ (argc=1, argv=0x7fffffffd868) at main.c:673
#8 0x00000000006473cf in main (argc=1, argv=0x7fffffffd868) at main.c:436