Jamesbarford / holyc-lang

HolyC compiler
BSD 2-Clause "Simplified" License
197 stars 8 forks source link

Tests aborted with "malloc(): corrupted top size" #43

Closed david-prv closed 3 months ago

david-prv commented 3 months ago

When running make unit-test in /src folder, it yields:

$ make unit-test 
cd ../tests && hcc -o test-runner ./run.HC && ./test-runner
malloc(): corrupted top size
Aborted (core dumped)
make: *** [Makefile:53: unit-test] Error 134
Jamesbarford commented 3 months ago

Thanks for this, I'll need to dig into these errors you've found. Which operating system are you on?

david-prv commented 3 months ago

Hi @Jamesbarford, thank you! I'm on Linux Mint 21.2 Cinnamon (v5.8.4)

Jamesbarford commented 3 months ago

Thank you for finding these, very helpful. Both the issue of hcc -tokens and make unit-test should now be resolved on the main branch. (fixed by #44)