-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Broken stack trace on Bazel #847
Comments
Should we revert https://github.com/google/glog/pull/708/files? Or do you think it's safe to try to just undo the change to glog.bzl and rely on the CI to ensure Android stays working? |
@huangqinjin It looks like #708 broke stack unwinding on other targets, but it didn't add a test for stack unwinding on Android, so I'm not sure how to verify that it still works when we try to fix it. (short of reverting #708 and adding tests on other platforms before restoring it) Has your project pinned glog at a version that works for you? If so maybe it's easiest/safest to revert #708 before trying to fix forward. What do you think? EDIT: Please ignore, sorry for the noise! |
@marekcirkos Could you try either adding a test for this to the glog bazel tests, or using |
Thank you for following up! Since #846, glog.bzl is the only file than refers to HAVE_UNWIND_H, so I think that should have been replaced with HAVE__UNWIND_BACKTRACE in #767. Originally I was confused because it's only defined in |
#851 should help. Also added tests, hopefully will run on all platforms |
With latest (0.6.0) printing stack trace on macOS with simple app built with Bazel is broken.
Code of
main.cc
Output of
main.cc
with0.6.0
compared to expected
0.5.0
outputRest of the setup
WORKSPACE
BUILD
Ideas
Problem seems to be related to #767.
Simply adding
"-DHAVE__UNWIND_BACKTRACE",
todarwin_only_copts
in glog.bzl, resolves the problem.However, I am not sure this is correct approach.
The text was updated successfully, but these errors were encountered: