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 #209
Comments
Please, provide a minimal compilable code sample that reproduces the problem. |
From your debugging gif, it looks like you have lots of log files in the logging directory, and the backend iterates over them trying to find the log file name that is not yet used. This isn't an infinite loop, unless you have 4 billion log files in the directory. |
I've ran into the same problem. It was introduced by #179
If the log line exceeds the rotation size then we'll be stuck in an infinite loop. This is a possible resolution
Any hints on what sort of solution boost would accept @Lastique ? |
@christapley Thank you for the reproducer, although I'm not sure your case is the same as the OP's. In the original problem description, the log message size is definitely smaller than the In any case, I have committed a fix for your reproducer in b5c4277 and also an additional safeguard in 407260f. I'm not sure it'll fix the OP's problem, but I haven't heard from him, so I'm closing this report. |
* patch to resolve boostorg/log#209
* patch to resolve boostorg/log#209
debugging:
I write the log to the file in this way:
The text was updated successfully, but these errors were encountered: