Hi everyone,

I'd like to propose turning on the ASan runtime flag "abort_on_error" by 
default on OS X. The main reason for that is crash logs: on OS X, crash 
reports are stored for all crashes, but ASan currently makes the program 
exit(1) by default, which is not a crash. This can make you completely miss 
some ASan report, especially in cases where you don't directly look at the 
console output (you're logging into a file or something).

I know there's some downsides of that, for example that crashes generate 
core dumps which are huge with ASan - therefore I'm only proposing this for 
OS X where we don't generate core dumps by default. Another thing that I'm 
aware of is the ASan test suite, which would generate hundreds of crash 
logs (that's undesirable) and run much slower, so we would probably need to 
disable abort_on_error for it.

Regardless of these, it still seems to me that abort_on_error=1 is a more 
logical default value than the current default. Is there a strong reason 
against that?

Thanks,
Kuba

-- 
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to