gccrs icon indicating copy to clipboard operation
gccrs copied to clipboard

Compile using ASAN on the github CI

Open powerboat9 opened this issue 1 year ago • 1 comments

This adds a job for running GCC with ASAN to the github CI

powerboat9 avatar Aug 27 '24 03:08 powerboat9

Not working yet, having trouble with linker during link tests

powerboat9 avatar Aug 28 '24 19:08 powerboat9

Alright, looks like things are working now

powerboat9 avatar Aug 29 '24 04:08 powerboat9

It looks like the execute tests are failing because runtime libraries compiled with ASAN require that the programs using them are compiled with ASAN.

powerboat9 avatar Aug 30 '24 22:08 powerboat9

I was trying to avoid creating a custom build config file, but in hindsight that's probably the best way to go

powerboat9 avatar Sep 03 '24 19:09 powerboat9

Should be ready for review again

powerboat9 avatar Sep 03 '24 20:09 powerboat9

Ah, I think the test failures might be due to the execute testsuite running but not linking with ASAN? this is something that happens to me when I do local ASAN builds. If that is the case, then a solution would be to either run only the compile.exp testsuite with RUNTESTFLAGS or figure out how to run the execute.exp testsuite in compile-only mode, without linking/running the final binary. but I don't know if dejagnu supports this

CohenArthur avatar Sep 04 '24 08:09 CohenArthur

I managed to get the execute tests working, and it seems like the remaining test failures are down to bugs in GCCRS

powerboat9 avatar Sep 04 '24 13:09 powerboat9

The ASAN check should pass now

powerboat9 avatar Sep 07 '24 21:09 powerboat9