gc: Tests fail with gcc stack protection

Hi, as discussed previously, I wanted to see if gcc works. But I was getting this error and a few warnings:

mkdir -p ../build/test/../src
gcc -g -Wall -Wextra -pedantic -I../include -fprofile-arcs -ftest-coverage -MMD -c ../src/log.c -o ../build/tes
t/../src/log.o
mkdir -p ../build/test
gcc -g -L../build/src -L../build/test --coverage  ../build/test/test_gc.o ../build/test/../src/log.o -o ../buil
d/test/test_gc
make[1]: Leaving directory '/root/gc/test'
./build/test/test_gc
---=[ GC tests
Heap allocation referenced from stack should be tagged
Tests run: 5
profiling:/root/gc/test/../build/test/test_gc.gcda:Version mismatch - expected A74* got 402*
Makefile:10: recipe for target 'test' failed
make: *** [test] Error 1

I was hoping I can look into this if it is an actual issue and not some local system problem with some dependencies.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 25 (25 by maintainers)

Commits related to this issue

Most upvoted comments

That would be greatly appreciated. In particular the Heap allocation referenced from stack... is an interesting one. I never tested stack scanning using gcc, but it should work. Regarding the warning about the Version mismatch, that’s gcov.