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

Fix stacktrace on Bazel build. #347

Merged
merged 1 commit into from
Apr 12, 2019
Merged

Fix stacktrace on Bazel build. #347

merged 1 commit into from
Apr 12, 2019

Conversation

nya3jp
Copy link
Contributor

@nya3jp nya3jp commented Jul 18, 2018

We need at least following defs to be set to print stacktrace in
failure signal handler.

  • HAVE_UNWIND_H: On Linux and macOS. unwind.h is usually present
    by default on those systems.
  • HAVE_DLADDR: On macOS.

Note that today glog does not build with Bazel on Windows.

Resolves #346.

@glalonde
Copy link

This would be super cool.

@ukai
Copy link
Contributor

ukai commented Apr 11, 2019

sorry for late.

seems PR is too old for buildkite verification.
could you rebase to master to pick up the changes to the WORKSPACE file and others?

We need at least following defs to be set to print stacktrace in
failure signal handler.

- HAVE_UNWIND_H: on Linux and macOS. unwind.h is usually present
  by default on those OSes.
- HAVE_DLADDR: on macOS.

Windows is not cared because glog can not be built with bazel
on Windows today.
@nya3jp
Copy link
Contributor Author

nya3jp commented Apr 11, 2019

Sure, rebased.

@ukai ukai merged commit 6ca3d3c into google:master Apr 12, 2019
durswd pushed a commit to durswd/glog that referenced this pull request Sep 2, 2019
We need at least following defs to be set to print stacktrace in
failure signal handler.

- HAVE_UNWIND_H: on Linux and macOS. unwind.h is usually present
  by default on those OSes.
- HAVE_DLADDR: on macOS.

Windows is not cared because glog can not be built with bazel
on Windows today.
@sergiud sergiud added this to the 0.5 milestone Apr 13, 2021
@sergiud sergiud mentioned this pull request May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stacktrace is not printed by failure signal handler when built with Bazel
5 participants