sst-core icon indicating copy to clipboard operation
sst-core copied to clipboard

Add configure option to support address sanitization

Open jpkenny opened this issue 2 years ago • 0 comments

Core's memory use looks buggy to many memory debugging tools.

For component debugging it is impractical to compile sst-core using -fsanitize=address because so many things in core get flagged as errors. But you can't only compile the component with sanitization because sanitizer symbols won't get linked in properly.

I think the best solution here is to add -fsanitize=address ONLY to the sstsim.x link command. I've hacked this by hand and it works well. I propose we add a configure option to trigger this in core so we have a more user-friendly way to debug memory errors. I think this will be very useful both in-house and for external users.

jpkenny avatar Jun 28 '22 17:06 jpkenny