gopalshankar / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
0 stars 0 forks source link

Android libc closes stdout/stdin/stderr before atexit() handlers #263

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Standard streams are closed immediately after main executable destructors on 
Android.
ASan runtime is a shared library, and its destructors (including atexit 
handlers) run after that. Any attempt to write smth to stderr causes a deadlock 
(if Die() also writes to stderr) or a crash (if it does not).

This is an issue for coverage dumping.

Original issue reported on code.google.com by euge...@google.com on 12 Feb 2014 at 3:43