Hi all! I've been trying my hand at building a roc platform to emulate the Elm architecture to some degree, closely following what other established platforms do.
I've managed to get to a point where the roc app can talk to the host code, but here I started running into memory issues. I've been trying to use valgrind to debug this, but aside from several courses many years ago I don't have much experience w/ these types of problems.
I was wondering if anyone has some books or resources they could recommend that would help shed some light on this for me. Preferably that would be most helpful in the context of Roc & unsafe rust, rather than being a good C developer.
Also, if anyone has any suggestions or ideas of what my problem could be, code is at https://git.sr.ht/~parasrah/roc-platform-repro/tree/SH-1/unaligned-tcache-chunk, and the error:
malloc(): unaligned tcache chunk detected
Aborted (core dumped)
Thank you!
Last updated: Jul 05 2025 at 12:14 UTC