Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ramosian-glider opened this issue Aug 31, 2015 · 4 comments
Closed

Comments

@ramosian-glider
Copy link
Member

Originally reported on Google Code with ID 263

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.

Reported by eugenis@google.com on 2014-02-12 15:43:25

@ramosian-glider
Copy link
Member Author

Reported by ramosian.glider on 2015-07-30 09:05:32

  • Labels added: ProjectAddressSanitizer

@ramosian-glider
Copy link
Member Author

Adding Project:AddressSanitizer as part of GitHub migration.

Reported by ramosian.glider on 2015-07-30 09:06:56

@morehouse
Copy link
Contributor

@eugenis: Do we need SanCov dumping on Android, or can something else be used?

@eugenis
Copy link
Contributor

eugenis commented Jun 8, 2018

(a) we don't need it
(b) I'm pretty sure the bionic issue has been a long time ago

@eugenis eugenis closed this as completed Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants