This is an archive of the discontinued LLVM Phabricator instance.

[Safestack] Fix the canary test to catch the libc's message regarding stack smashing
ClosedPublic

Authored by kosarev on Apr 27 2017, 10:24 AM.

Details

Summary

By default glibc writes its diagnostics directly to tty so the 2>&1 | redirection in the test doesn't catch the *** stack smashing detected *** message, which in turn breaks printing the lit's progress bar. By defining the LIBC_FATAL_STDERR_ environment variable we force glibc to direct diagnostic messages to stderr.

Diff Detail

Repository
rL LLVM

Event Timeline

kosarev created this revision.Apr 27 2017, 10:24 AM
eugenis accepted this revision.Apr 27 2017, 11:31 AM
This revision is now accepted and ready to land.Apr 27 2017, 11:31 AM
This revision was automatically updated to reflect the committed changes.