-
Notifications
You must be signed in to change notification settings - Fork 335
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
stack-trace symbolizer using llvm-symbolizer subprocess #297
Conversation
6003453
to
8531033
Compare
When linked it, looks for $LLVM_SYMBOLIZER environment variable and uses it for stacktrace symbolication. To effectively use it with bazel you should add: -c dbg --test_env=LLVM_SYMBOLIZER=llvm-symbolizer-15 to your test command.
8531033
to
3fa2faa
Compare
}; | ||
|
||
String stringifyStackTrace(ArrayPtr<void* const> trace) { | ||
const char* llvmSymbolizer = getenv("LLVM_SYMBOLIZER"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried using this but it appears bazel hides all environment variables from test programs, so it doesn't work unless I run the test directly. What's the right way to make it work when the test runs under bazel?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(wrong chain)
it is in the top comment: -c dbg --test_env=LLVM_SYMBOLIZER=llvm-symbolizer-15
we can always make things default later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duh, sorry, I can't read.
Can we also update |
Hmm, this didn't seem to have any effect in my bazelrc... |
bazel's stripping is weird. It worked for me only with |
|
Here's what I added to
I'd prefer to actually override the behavior of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I already used this today, it was quite helpful.
…dflare#297)" This reverts commit fd7d179.
When linked it, looks for $LLVM_SYMBOLIZER environment variable and uses it for stacktrace symbolication.
To use it with bazel you should add
--config=fastdbg --test_env=LLVM_SYMBOLIZER=llvm-symbolizer-15
to your test command.