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

protoc segfaults on macOS 12.0.1 #494

Closed
ChrisCummins opened this issue Nov 29, 2021 · 0 comments · Fixed by #512
Closed

protoc segfaults on macOS 12.0.1 #494

ChrisCummins opened this issue Nov 29, 2021 · 0 comments · Fixed by #512
Assignees
Labels
Bug Something isn't working Testing & Tooling Tests, tooling, and build systems
Milestone

Comments

@ChrisCummins
Copy link
Contributor

ChrisCummins commented Nov 29, 2021

🐛 Bug

The version of protoc used by the CompilerGym build segfaults on macOS 12.0.1:

$ bazel-out/host/bin/external/com_github_protocolbuffers_protobuf/protoc
[1]    82656 segmentation fault  bazel-out/host/bin/external/com_github_protocolbuffers_protobuf/protoc

Thanks @mostafaelhoushi for discovering this!

To Reproduce

Steps to reproduce the behavior:

  1. Update to macOS 12.0.1.
  2. Start from a clean build: make distclean.
  3. Attempt to build CompilerGym:
$ make install BAZEL_BUILD_OPTS='--sandbox_debug'
...
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_cummins/c3f286fbbefcd6317d9b13e427e86632/sandbox/darwin-sandbox/3008/sandbox.sb /var/tmp/_bazel_cummins/install/97cf8d40e3de7fca7ef885fa763bde13/process-wrapper '--timeout=0' '--kill_delay=15' bazel-out/host/bin/external/com_github_protocolbuffers_protobuf/protoc '--python_out=bazel-out/host/bin/external/com_github_protocolbuffers_protobuf/python' -Iexternal/com_github_protocolbuffers_protobuf/python -Ibazel-out/host/bin/external/com_github_protocolbuffers_protobuf/python bazel-out/host/bin/external/com_github_protocolbuffers_protobuf/python/google/protobuf/timestamp.proto) sandbox-exec failed: error executing command
...

Environment

Please fill in this checklist:

  • CompilerGym: 0.2.1
  • How you installed CompilerGym (conda, pip, source): source
  • OS: macOS 12.0.1
  • Python version: 3.8
  • GCC/clang version (if compiling from source): Apple clang 12.0.5
  • Bazel version (if compiling from source):
  • Versions of any other relevant libraries:

You may use the PyTorch
environment collection script
to generate most of this information. You can get the script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
@ChrisCummins ChrisCummins changed the title Segmentation fault during Protocol buffer compilation fails on macOS 12.0.1 Segmentation fault during Protocol buffer compilation on macOS 12.0.1 Nov 29, 2021
@ChrisCummins ChrisCummins added this to the v0.2.2 milestone Nov 29, 2021
@ChrisCummins ChrisCummins added Bug Something isn't working Testing & Tooling Tests, tooling, and build systems labels Nov 29, 2021
@ChrisCummins ChrisCummins self-assigned this Nov 29, 2021
@ChrisCummins ChrisCummins changed the title Segmentation fault during Protocol buffer compilation on macOS 12.0.1 protoc segfaults on macOS 12.0.1 Nov 29, 2021
ChrisCummins added a commit to ChrisCummins/CompilerGym that referenced this issue Dec 10, 2021
A segmentation fault in protoc caused by the macOS Monterey update is
mitigated by updating bazel version to 4.2.2. See:

protocolbuffers/protobuf#9172 (comment)

Issue facebookresearch#494.
This was referenced Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Testing & Tooling Tests, tooling, and build systems
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant