svhawkins / B-Minor-Compiler

COMP 4060 B-Minor Compiler
2 stars 0 forks source link

Some tests cause an abort() due to invalid free() #10

Closed svhawkins closed 7 months ago

svhawkins commented 7 months ago

Tests that use strings and/or hidden symbols in any fashion are not being managed properly. They cause aborts due to in invalid free somewhere. The affected tests have been commented out in their respective files:

The fact that hidden symbols are bringing so many problems only begs the question whether should be reimplemented as a symbol table only addition (instead of having a decl hidden list, which is also causing problems) or not.

svhawkins commented 7 months ago

12.12.2023 - 22:24: memory issues have been resolved with the removal of the (rather shoddy) hidden symbol implementation and its tests. There were also a few cases of execessive strdup() causing more allocs than frees. Some tests were also split into multiple to make them simpler.