You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behaviour
When the exact same program is built in Release mode, it executes happily. I would have expected this behaviour to be the same for both build modes.
Additional context
I dug around with the VS Code debugger for a bit, and I believe the issue lies in include/quill/backend/BackendWorker.h.
When I build the example program with Debug build type and use VS Code debugger, the violated assertion is at BackendWorker.h:538, which seems to be a section only executed in debug builds.
The argument ts_now is set to 18446744073709551615, which causes the assertion to be violated. ts_now is set in BackendWorker.h:391. ts_now is set to the maximum value when the BackendOptions log_timestamp_ordering_grace_period is set to 0. Was this the intention, or is the assert statement maybe wrong somehow?
The text was updated successfully, but these errors were encountered:
Describe the bug
Setting BackendOptions
log_timestamp_ordering_grace_period
to 0 milliseconds causes an assertion error when built with Debug.To Reproduce
Clone Quill with tag
v7.3.0
from githubAdd the following program to the example executables (based on the minimal example in the README):
Add the new example to
examples/CMakeLists.txt
Build the project with build type Debug
cmake -S . -B build -DQUILL_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Debug cmake --build build
Run the new program
The following result is obtained:
Expected Behaviour
When the exact same program is built in
Release
mode, it executes happily. I would have expected this behaviour to be the same for both build modes.cmake -S . -B build -DQUILL_BUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=Release cmake --build build ./build/examples/quill_example_bug_log_timestamp_ordering_grace_period
Result:
Environment
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Additional context
I dug around with the VS Code debugger for a bit, and I believe the issue lies in
include/quill/backend/BackendWorker.h
.When I build the example program with
Debug
build type and use VS Code debugger, the violated assertion is atBackendWorker.h:538
, which seems to be a section only executed in debug builds.The argument
ts_now
is set to18446744073709551615
, which causes the assertion to be violated.ts_now
is set inBackendWorker.h:391
.ts_now
is set to the maximum value when the BackendOptionslog_timestamp_ordering_grace_period
is set to 0. Was this the intention, or is theassert
statement maybe wrong somehow?The text was updated successfully, but these errors were encountered: