Closed RolandMarchand closed 1 year ago
Hard to say exactly - it could well be an issue with how tgc is doing things. However you should first try making sure your tests are running one function call deeper than main:
https://github.com/orangeduck/tgc#tgc-isnt-working-when-optimisations-are-enabled
This fix seems to work. Asan still returns a stack buffer overflow error, but my tests now consistently succeed. Thank you for such a quick response.
The way tgc scans the stack is probably causing Asan to report it as an overflow. In general it does so safely but it definitely makes tools like memory sanitizers worried!
I am using
tgc
in my linked lists, and line 12 of my project causes me issues. This test fails randomly when running the program.Running the test through
--undef-value-errors=no
returns no error.Running the test through Asan returns this, there seems to be a stack buffer overflow in
tgc_mark_stack
:Is this an issue on my end, or on
tgc
's end?Specs: