Skip to content

Instantly share code, notes, and snippets.

@Xliff
Created May 27, 2025 10:38
Show Gist options
  • Save Xliff/99f7d0d44e009b6536a2463fe09207d9 to your computer and use it in GitHub Desktop.
Save Xliff/99f7d0d44e009b6536a2463fe09207d9 to your computer and use it in GitHub Desktop.
JSON-GLib backtraces

Backtrace #1

0x00007ffff796c2e7 in mi_free (p=0x555555573a5c) at 3rdparty/mimalloc/src/free.c:156
156       const bool is_local = (_mi_prim_thread_id() == mi_atomic_load_relaxed(&segment->thread_id));
(gdb) bt
#0  0x00007ffff796c2e7 in mi_free (p=0x555555573a5c) at 3rdparty/mimalloc/src/free.c:156
#1  0x00007ffff78aa2e1 in MVM_free (p=<optimized out>) at src/core/alloc.h:60
#2  gc_cleanup (tc=<optimized out>, st=<optimized out>, data=0x26c5b069850) at src/6model/reprs/CArray.c:156
#3  gc_free (tc=<optimized out>, obj=0x26c5b069838) at src/6model/reprs/CArray.c:166
#4  0x00007ffff7871f00 in MVM_gc_collect_free_nursery_uncopied (executing_thread=executing_thread@entry=0x26c54020200, tc=tc@entry=0x26c54020200, limit=0x26c5b3dfff8) at src/gc/collect.c:599
#5  0x00007ffff786d1f7 in finish_gc (tc=<optimized out>, gen=<optimized out>, is_coordinator=<optimized out>) at src/gc/orchestrate.c:244
#6  run_gc (tc=tc@entry=0x26c54020200, what_to_do=what_to_do@entry=0 '\000') at src/gc/orchestrate.c:447
#7  0x00007ffff786e26f in MVM_gc_enter_from_allocator (tc=tc@entry=0x26c54020200) at src/gc/orchestrate.c:599
#8  0x00007ffff786e569 in MVM_gc_allocate_nursery (tc=0x26c54020200, size=40) at src/gc/allocation.c:37
#9  0x00007ffff786e7e8 in MVM_gc_allocate (tc=0x26c54020200, size=<optimized out>) at src/gc/allocation.h:15
#10 MVM_gc_allocate_zeroed (tc=0x26c54020200, size=<optimized out>) at src/gc/allocation.h:21
#11 MVM_gc_allocate_object (tc=0x26c54020200, st=<optimized out>) at src/gc/allocation.c:87
#12 0x00007ffff78b9e34 in MVM_capture_insert_arg (tc=tc@entry=0x26c54020200, capture_obj=capture_obj@entry=0x26c5b3dffd0, idx=idx@entry=0, kind=kind@entry=MVM_CALLSITE_ARG_OBJ, value=...) at src/6model/reprs/MVMCapture.c:403
#13 0x00007ffff78d3f7d in MVM_disp_program_record_capture_insert_constant_arg (tc=tc@entry=0x26c54020200, capture=0x26c5b3dffd0, idx=0, kind=kind@entry=MVM_CALLSITE_ARG_OBJ, value=...) at src/disp/program.c:1496
#14 0x00007ffff78d9e85 in dispatcher_insert_arg_literal_obj_impl (tc=0x26c54020200, arg_info=...) at src/disp/syscall.c:249
#15 0x00007ffff78304e4 in MVM_interp_run (tc=0x555555573a5c, initial_invoke=0x555554000000, initial_invoke@entry=0x7ffff7970b30 <toplevel_initial_invoke>, invoke_data=0x555554000000, 
    invoke_data@entry=0x7ffff7970b30 <toplevel_initial_invoke>, outer_runloop=0x7ffff7f883c0, outer_runloop@entry=0x0) at src/core/interp.c:6789
#16 0x00007ffff7971bfb in MVM_vm_run_file (instance=instance@entry=0x26c54010000, filename=filename@entry=0x555555559570 "/home/cbwood/.rakubrew/versions/moar-blead/install/share/perl6/runtime/perl6.moarvm") at src/moar.c:523
#17 0x000055555555577c in main (argc=<optimized out>, argv=0x7fffffffccb8) at src/vm/moar/runner/main.c:497
@Xliff
Copy link
Author

Xliff commented May 27, 2025

This line seems to be the culprit:

156       const bool is_local = (_mi_prim_thread_id() == mi_atomic_load_relaxed(&segment->thread_id));

from

0x00007ffff796c2e7 in mi_free (p=0x55555555b067) at 3rdparty/mimalloc/src/free.c:156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment