GC.gc() error

got the following error and Julia quitted. Should be the result of calling GC.gc().

any idea how to avoid it? v.1.9.1, Apple silicon M2 Ultra

mjulia191(74249,0x1e7495e00) malloc: *** error for object 0x48db150c0: pointer being freed was not allocated
mjulia191(74249,0x1e7495e00) malloc: *** set a breakpoint in malloc_error_break to debug

[74249] signal (6): Abort trap: 6
in expression starting at REPL[2]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 2699795111 (Pool: 2685605337; Big: 14189774); GC: 91
Abort trap: 6

Try ] gc in julia terminal. May be it is garbage collection issue.

] gc
1 Like

maybe becoz I started Julia with --check-bounds=no and carelessly went out of bounds.

1 Like