Archived
This forum has been archived. Please start a new discussion on GitHub.
Ice crashes when log file exceeds 2Gb
in Bug Reports
Hi
Ice logging crashes (tested on Linux) when log files grow over 2Gb:
Program terminated with signal 25, File size limit exceeded.
strace:
open("/opt/prog/log/ice.stdout", O_WRONLY|O_APPEND|O_CREAT, 0666) = 1
open("/opt/prog/log/ice.stderr", O_WRONLY|O_APPEND|O_CREAT, 0666) = 2
Adding O_LARGEFILE to open would solve the problem.
Best regards,
Rain
Ice logging crashes (tested on Linux) when log files grow over 2Gb:
Program terminated with signal 25, File size limit exceeded.
strace:
open("/opt/prog/log/ice.stdout", O_WRONLY|O_APPEND|O_CREAT, 0666) = 1
open("/opt/prog/log/ice.stderr", O_WRONLY|O_APPEND|O_CREAT, 0666) = 2
Adding O_LARGEFILE to open would solve the problem.
Best regards,
Rain
0
Comments
-
Hi Rain,
Thanks for the report, we'll look into this!
Cheers,
Benoit.0 -
Hi Rain,
Compiling Ice with -D_FILE_OFFSET_BITS=64 also fixes the issue and doesn't require modifying the source code. You can add this compiler option to the following line in the Ice-3.2.0/config/Make.rules.Linux file (line 86) from your Ice source distribution:
CXXFLAGS = $(CXXARCHFLAGS) -ftemplate-depth-128 -Wall -D_REENTRANT -D_FILE_OFFSET_BITS=64
Let me know if this doesn't work for you!
Cheers,
Benoit.0 -
Sorry, I just noticed this reply. We actually implemented our own logger on top of Ice interface and got rid of the problem already, so I haven't tried your suggestion (but I guess it should fix the limit). Thanks.
BR,
Rain0