Ice crashes when log file exceeds 2Gb

rainrain Rain JohansonOrganization: SkypeProject: Skype components intercommunicationMember
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

Comments

  • benoitbenoit Rennes, FranceBenoit FoucherOrganization: ZeroC, Inc.Project: IceAdministrators, ZeroC Staff ZeroC Staff
    Hi Rain,

    Thanks for the report, we'll look into this!

    Cheers,
    Benoit.
  • benoitbenoit Rennes, FranceBenoit FoucherOrganization: ZeroC, Inc.Project: IceAdministrators, ZeroC Staff ZeroC Staff
    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.
  • rainrain Rain JohansonOrganization: SkypeProject: Skype components intercommunicationMember
    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,
    Rain
Sign In or Register to comment.