AMReX-Codes / amrex

AMReX: Software Framework for Block Structured AMR
https://amrex-codes.github.io/amrex
Other
503 stars 336 forks source link

add DEBUG_LIBSTDCXX option to GNU Make gcc for libstdc++ debug #3945

Closed zingale closed 1 month ago

zingale commented 1 month ago

this catches bounds errors in the standard library containers

Summary

Additional background

Checklist

The proposed changes:

zingale commented 1 month ago

see: https://gcc.gnu.org/onlinedocs/libstdc++/manual/debug_mode_using.html

zingale commented 1 month ago

not sure if we need this as an option so I left it WIP. It doesn't find issues in Castro. I am not sure how much of the standard library containers we rely on.

WeiqunZhang commented 1 month ago

Since the new option is opt-in, there is no harm I guess.