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

Colored output in "adb logcat" on Android. #174

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

Colored output in "adb logcat" on Android. #174

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

Comments

@ramosian-glider
Copy link
Member

Originally reported on Google Code with ID 174

Running ASan-instrumented apps on Android with logwrapper sends ASan reports to "adb
logcat". For some reason they are still colorized. This looks bad and may break parsers.

Reported by eugenis@google.com on 2013-03-29 11:03:53

@ramosian-glider
Copy link
Member Author

This also bothers quemu users. 
I guess we need to implement ASAN_OPTIONS=color=0 

Reported by konstantin.s.serebryany on 2013-04-19 16:18:43

@ramosian-glider
Copy link
Member Author

Note that ASan prints colorized output only if isatty(stderr) returns "true". Though,
adding a runtime option is not a problem.

Reported by samsonov@google.com on 2013-04-22 07:19:19

@ramosian-glider
Copy link
Member Author

Colorized output on Android is caused by logwrapper using pseudo tty to redirect application
output.
Recently we've implemented logging in asan runtime library (using liblog.so). It is
not colored by default. Logwrapper is no longer recommended.

Reported by eugenis@google.com on 2014-01-29 13:28:45

  • Status changed: Fixed

@ramosian-glider
Copy link
Member Author

Adding Project:AddressSanitizer as part of GitHub migration.

Reported by ramosian.glider on 2015-07-30 09:13:41

  • Labels added: ProjectAddressSanitizer

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

1 participant