ez@desktop-nixos ~/c/testing-roc [1]> ~/code/roc/zig-out/bin/roc test
thread 13052 panic: Use-after-free: incref on already-freed memory
/home/ez/code/roc/src/builtins/utils.zig:258:13: 0x4bdd9fd in increfRcPtrC (mod.zig)
@panic("Use-after-free: incref on already-freed memory");
^
/home/ez/code/roc/src/builtins/utils.zig:353:24: 0x4984515 in increfDataPtrC (mod.zig)
return increfRcPtrC(isizes, inc_amount);
^
/home/ez/code/roc/src/eval/StackValue.zig:188:42: 0x45be3d1 in copyToPtr (mod.zig)
builtins.utils.increfDataPtrC(alloc_ptr, 1);
^
/home/ez/code/roc/src/eval/interpreter.zig:782:30: 0x45c9d6b in pushCopy (mod.zig)
try src.copyToPtr(&self.runtime_layout_store, ptr.?, roc_ops);
^
/home/ez/code/roc/src/eval/interpreter.zig:10661:54: 0x50708f9 in evalLookupLocal (mod.zig)
const copy_result = try self.pushCopy(b.value, roc_ops);
^
/home/ez/code/roc/src/eval/interpreter.zig:9000:55: 0x4dee219 in scheduleExprEval (mod.zig)
const value = try self.evalLookupLocal(lookup, expected_rt_var, roc_ops);
^
/home/ez/code/roc/src/eval/interpreter.zig:8719:46: 0x4bdf732 in evalWithExpectedType (mod.zig)
try self.scheduleExprEval(&work_stack, &value_stack, eval_item.expr_idx, eval_item.expected_rt_var, roc_ops);
^
/home/ez/code/roc/src/eval/interpreter.zig:500:45: 0x4987c1d in eval (mod.zig)
return try self.evalWithExpectedType(expr_idx, roc_ops, null);
^
/home/ez/code/roc/src/eval/test_runner.zig:198:49: 0x49cedd9 in eval (mod.zig)
const result = try self.interpreter.eval(expr_idx, ops);
^
/home/ez/code/roc/src/eval/test_runner.zig:223:41: 0x478c7e3 in eval_all (mod.zig)
const result = self.eval(stmt.s_expect.body) catch |err| {
^
/home/ez/code/roc/src/cli/main.zig:3094:41: 0x47d4b3a in rocTest (main.zig)
const summary = test_runner.eval_all() catch |err| {
^
/home/ez/code/roc/src/cli/main.zig:576:41: 0x47f29f2 in mainArgs (main.zig)
.test_cmd => |test_args| rocTest(allocs, test_args),
^
/home/ez/code/roc/src/cli/main.zig:508:13: 0x47f4a63 in main (main.zig)
mainArgs(&allocs, args) catch {
^
/home/ez/opt/zig/lib/std/start.zig:627:37: 0x47f5021 in main (std.zig)
const result = root.main() catch |err| {
^
/home/ez/opt/zig/lib/libc/musl/src/env/__libc_start_main.c:95:7: 0x945dcc0 in libc_start_main_stage2 (/home/ez/opt/zig/lib/libc/musl/src/env/__libc_start_main.c)
exit(main(argc, argv, envp));
^
???:?:?: 0x936af89 in ??? (???)
Unwind error at address exe:0x936af89 (error.MissingFDE), trace may be incomplete
fish: Job 1, '~/code/roc/zig-out/bin/roc test' terminated by signal SIGABRT (Abort)