Commit cf48d8c4 by Martin Liska Committed by Martin Liska

Document ASAN_OPTIONS="halt_on_error" env variable.

	* doc/invoke.texi: Explain connection between -fsanitize-recover=address
	and ASAN_OPTIONS="halt_on_error=1".

From-SVN: r236172
parent c4ec1243
2016-05-12 Martin Liska <mliska@suse.cz>
* doc/invoke.texi: Explain connection between -fsanitize-recover=address
and ASAN_OPTIONS="halt_on_error=1".
2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com> 2016-05-12 Ilya Enkovich <ilya.enkovich@intel.com>
PR tree-optimization/71006 PR tree-optimization/71006
......
...@@ -10007,6 +10007,14 @@ for which this feature is experimental. ...@@ -10007,6 +10007,14 @@ for which this feature is experimental.
accepted, the former enables recovery for all sanitizers that support it, accepted, the former enables recovery for all sanitizers that support it,
the latter disables recovery for all sanitizers that support it. the latter disables recovery for all sanitizers that support it.
Even if a recovery mode is turned on the compiler side, it needs to be also
enabled on the runtime library side, otherwise the failures are still fatal.
The runtime library defaults to @code{halt_on_error=0} for
ThreadSanitizer and UndefinedBehaviorSanitizer, while default value for
AddressSanitizer is @code{halt_on_error=1}. This can overridden through
the following environment variables: @env{ASAN_OPTIONS}, @env{TSAN_OPTIONS},
@env{UBSAN_OPTIONS}.
Syntax without explicit @var{opts} parameter is deprecated. It is equivalent to Syntax without explicit @var{opts} parameter is deprecated. It is equivalent to
@smallexample @smallexample
-fsanitize-recover=undefined,float-cast-overflow,float-divide-by-zero -fsanitize-recover=undefined,float-cast-overflow,float-divide-by-zero
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment