This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] Prevent symbolizer from starting itself.
ClosedPublic

Authored by vitalybuka on Feb 21 2017, 1:17 PM.

Details

Summary

If symbolizer was instrumented with sanitizer and crash, it may
try to call itself again causing infinite recursion of crashing processes.

Diff Detail

Repository
rL LLVM

Event Timeline

vitalybuka created this revision.Feb 21 2017, 1:17 PM
eugenis edited edge metadata.Feb 21 2017, 1:22 PM

It might be better to set ASAN_OPTIONS=symbolize=0 in the environment for the symbolizer process.

eugenis accepted this revision.Feb 21 2017, 1:46 PM
eugenis added inline comments.
lib/sanitizer_common/sanitizer_symbolizer_libcdep.cc
401 ↗(On Diff #89271)

mention "symbolizer" in the warning message

This revision is now accepted and ready to land.Feb 21 2017, 1:46 PM
vitalybuka updated this revision to Diff 89273.Feb 21 2017, 1:50 PM

Updated warning message

vitalybuka marked an inline comment as done.Feb 21 2017, 1:50 PM
This revision was automatically updated to reflect the committed changes.