empiredan opened a new issue, #2355:
URL: https://github.com/apache/incubator-pegasus/issues/2355
When the project is built in **debug** mode (`./run.sh build --test -t debug
-j $(nproc)`), the `dsn.replica.test` unit tests (by `./run.sh test -m
dsn.replica.test`) crash during execution due to an assertion failure, with the
error shown below:
```
[ RUN ] mutation_log_test.replay_single_file_1000/0
dsn.replica.test: /root/apache/pegasus/src/utils/binary_writer.h:57: void
dsn::binary_writer::write(const T&) [with T = const char*]: Assertion `false'
failed.
./run.sh: line 52: 84654 Aborted (core dumped)
GTEST_OUTPUT="xml:${output_xml}" ./dsn.replica.test
```
The reason this does not happen in the GitHub CI workflows is that, to
reduce the size of binaries and libraries (and thus reduce disk usage on GitHub
runners to avoid running out of disk space during tests), the CI workflows
build the project in **release** mode (`./run.sh build -j $(nproc)`), where
`assert` does nothing because the `NDEBUG` macro is defined.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]