Stream: beginners

Topic: SIGSEGV on Dict insert


view this post on Zulip Gabriel Pickl (Dec 09 2022 at 22:08):

I don't think I can easily create a minimal example because this seems to be connected to some memory layout/aliasing problems, but replacing out this line with SubDir Dict.empty stops the program from SIGSEGVing.

Removing the logic here results in a different error:

malloc(): unaligned tcache chunk detected
fish: Job 1, 'roc run roc/day07.roc' terminated by signal SIGABRT (Abort)

So I am not exactly sure which of the two Dict.insert is the actual culprit or if the problem is something else

view this post on Zulip Brendan Hansknecht (Dec 09 2022 at 23:25):

Can you file an issue for this? I want to look into this later, but might forget without a reminder.

view this post on Zulip Gabriel Pickl (Dec 12 2022 at 18:30):

Created a very verbatim issue :sweat_smile:


Last updated: Jul 06 2025 at 12:14 UTC