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

An infinite loop occurs when boost writes to the log file (Debug Mode, Medium size file) #224

Closed
AntonE1986 opened this issue Nov 20, 2023 · 1 comment

Comments

@AntonE1986
Copy link

Hello!

It seems issue #209 is not fully fixed with Boost compiled in debug mode:

#209 fix resolve the problem in case of previous log file is empty, for instance because it is not properly rotated:
image

Digging deep in to the rotate_file() internals we can find this code, enabled only in debug mode:
image

As result, in case of log file size before try to publish big log entity was less than minimal rotation size, but with new entity it will be larger than m_FileRotationSize, we will go in the same infinity loop as we had with issue #209

@Lastique
Copy link
Member

Lastique commented Nov 21, 2023

PLogTargetCollector on your second screenshot is not part of Boost.Log, I cannot comment on its behavior. Please ask for support from the maintainers of that class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants