
log.cc:this_unit.slogger depends upon logger.cc:this_unit.ident. Depending on which one is destructed first, there will be a crash or then not. It seems that the destruction order when returning from main() is not necessarily the same as that when calling exit() in main, as this bug is triggered with compilers versions and not with other.