bitcoin: test: 32-bit Clang `ipc_test` failure at `-O0`
Noticed as part of this branch #29796, however it can also be reproduced with master (8fa10edcd1706a1f0dc9d8c3adbc8efa3c7755bf) by reproducing the equivalent CI & setting C(XX)FLAGS to -O0:
make -C depends/ MULTIPROCESS=1 NO_QT=1 NO_WALLET=1 NO_ZMQ=1 NO_USDT=1 CFLAGS="-O0" CXXFLAGS="-O0" DEBUG=1 -j19 HOST=i686-pc-linux-gnu
cmake -B build --toolchain /root/ci_scratch/depends/i686-pc-linux-gnu/toolchain.cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER='clang;-m32' -DCMAKE_CXX_COMPILER='clang++;-m32'
cmake --build build -j18
./build/src/test/test_bitcoin --run_test=ipc*
Running 2 test cases...
terminate called after throwing an instance of 'kj::ExceptionImpl'
what(): /root/ci_scratch/depends/i686-pc-linux-gnu/include/kj/common.h:1797: failed: expected start <= end && end <= size_; Out-of-bounds ArrayPtr::slice().
stack: 5ca0dd6d 5c78b5db 5c8cc599 5ca0adc9 5c94fb37 5c950070 5c9cd709 5c9cf58a 5c9d72fd 5c9d025e 5c776f11 5bf6351d 5bf6347d 5bf633cd 5bf6337b 5bf6331d 5bf63194 f7afa4b0 f773dff6 f77d55b7
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
??:0: returning here
unknown location(0): fatal error: in "ipc_tests/ipc_tests": signal: SIGABRT (application abort requested)
test/ipc_tests.cpp(12): last checkpoint: "ipc_tests" test entry
test_bitcoin: common/args.cpp:578: void ArgsManager::AddArg(const std::string &, const std::string &, unsigned int, const OptionsCategory &): Assertion `ret.second' failed.
unknown location(0): fatal error: in "ipc_tests/parse_address_test": signal: SIGABRT (application abort requested)
test/ipc_tests.cpp(20): last checkpoint: "parse_address_test" fixture ctor
*** 2 failures are detected in the test module "Bitcoin Core Test Suite"
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (19 by maintainers)
Commits related to this issue
- depends: patch around placement new issue in capnp See #31772 and https://github.com/capnproto/capnproto/pull/2235. — committed to fanquake/bitcoin by fanquake 2 years ago
- depends: patch around PlacementNew issue in capnp See #31772 and https://github.com/capnproto/capnproto/pull/2235. — committed to fanquake/bitcoin by fanquake 2 years ago
- depends: patch around PlacementNew issue in capnp See #31772 and https://github.com/capnproto/capnproto/pull/2235. — committed to fanquake/bitcoin by fanquake 2 years ago
- depends: patch around PlacementNew issue in capnp See #31772 and https://github.com/capnproto/capnproto/pull/2235. — committed to fanquake/bitcoin by fanquake 2 years ago
- depends: patch around PlacementNew issue in capnp See #31772 and https://github.com/capnproto/capnproto/pull/2235. — committed to fanquake/bitcoin by fanquake 2 years ago
- depends: patch around PlacementNew issue in capnp See #31772 and https://github.com/capnproto/capnproto/pull/2235. — committed to fanquake/bitcoin by fanquake 2 years ago
- depends: patch around PlacementNew issue in capnp See #31772 and https://github.com/capnproto/capnproto/pull/2235. — committed to fanquake/bitcoin by fanquake 2 years ago
- depends: patch around PlacementNew issue in capnp See #31772 and https://github.com/capnproto/capnproto/pull/2235. — committed to fanquake/bitcoin by fanquake 2 years ago
- depends: patch around PlacementNew issue in capnp See #31772 and https://github.com/capnproto/capnproto/pull/2235. — committed to fanquake/bitcoin by fanquake 2 years ago
- depends: patch around PlacementNew issue in capnp See #31772 and https://github.com/capnproto/capnproto/pull/2235. — committed to fanquake/bitcoin by fanquake 2 years ago
- Merge bitcoin/bitcoin#31998: depends: patch around PlacementNew issue in capnp 1ef22ce3351708bdd294d675f818880b7c93fffc depends: patch around PlacementNew issue in capnp (fanquake) Pull request desc... — committed to fanquake/bitcoin by fanquake 2 years ago
- depends: patch around PlacementNew issue in capnp See #31772 and https://github.com/capnproto/capnproto/pull/2235. — committed to Christewart/bitcoin by fanquake 2 years ago
Submitted patch in https://github.com/capnproto/capnproto/pull/2235
Interesting that this did not result in a compile or link failure instead.
I switched to clang in commit fad0f21c3caba129106799fe6c14aff323ef99f2 to avoid OOM with g++, (which was before switching to 32-bit in commit fae0295a799499268caca9c385ac4d7061543980), but now that the CI machines have more memory, it should be fine if this CI task takes more memory and time.
Happy to review a pull, if someone submits one.
Running
time env -i HOME="$HOME" PATH="$PATH" USER="$USER" bash -c 'FILE_ENV="./ci/test/00_setup_env_i686_multiprocess.sh" ./ci/test_run_all.sh'with the branch from #29796.https://github.com/bitcoin/bitcoin/pull/29796/checks?check_run_id=36485685971