-
Notifications
You must be signed in to change notification settings - Fork 136
Closed
Description
🐛 Bug
When running some of the tests and LLVM is built in debug, an assert in fails llvm::BitcodeWriter::~BitcodeWriter()
.
I encountered this when doing the CMake build PR. There LLVM could be built in debug, wheres it seems the Bazel build uses a prebuilt release version, so the assert is suppressed.
It appears in tests related to SHA.
To Reproduce
Steps to reproduce the behavior:
- Checkout https://github.com/sogartar/CompilerGym/tree/boian-cmake-2 and build with CMake in debug. Use
-DCMAKE_BUILD_TYPE=debug
as an argument during configuration. - Run the tests from the binary directory with
ctest -j5 -R tests/fuzzing/llvm_stress_fuzz_test\|tests/llvm/fresh_environment_observation_reward_test\|tests/llvm/llvm_env_test\|tests/llvm/observation_spaces_test\|tests/llvm/validation_regression_test
One of the errors that appears:
compiler_gym-llvm-service: /home/petkantchin/ws/nodlabs/compiler_gym/build/ninja/debug/external/llvm/llvm/src/llvm/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:4370: llvm::BitcodeWriter::~BitcodeWriter(): Assertion `WroteStrtab' failed.
Expected behavior
No assert should be triggered.
It may be the case that there should be no assert in the LLVM code.
Environment
Please fill in this checklist:
- CompilerGym: https://github.com/sogartar/CompilerGym/tree/boian-cmake-2
- How you installed CompilerGym (conda, pip, source): source
- OS: Ubuntu 20.04
- Python version: 3.8
- Build command you used (if compiling from source): build instructions for CMake from INSTALL.md
- GCC/clang version (if compiling from source): clang-9
- Bazel version (if compiling from source):
- Versions of any other relevant libraries: LLVM in debug
Metadata
Metadata
Assignees
Labels
No labels