Stream: beginners

Topic: Heap corruption bug


view this post on Zulip Luke Boswell (Aug 07 2023 at 22:05):

Just working on fixing a feature in basic-cli (Dir.list) and am getting a Heap corruption detected. I've pushed the current state to this branch.

Would it be helpful to log an issue for this? I suspect this is a compiler issue.

% roc dev examples/dir.roc
πŸ”¨ Rebuilding platform...

── UNUSED IMPORT ──────────────────────────────────────────── examples/dir.roc ─

Nothing from Stderr is used in this module.

5β”‚          pf.Stderr,
            ^^^^^^^^^

Since Stderr isn't used, you don't need to import it.

────────────────────────────────────────────────────────────────────────────────

0 errors and 1 warning found in 2463 ms.

Running program…

────────────────────────────────────────────────────────────────────────────────
roc_app_binary(88375,0x1fd1f1e00) malloc: Heap corruption detected, free list is damaged at 0x600001c90080
*** Incorrect guard value: 16
roc_app_binary(88375,0x1fd1f1e00) malloc: *** set a breakpoint in malloc_error_break to debug

Last updated: Jul 05 2025 at 12:14 UTC