Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-20-2007
rain rain is offline
Registered User
 
Name: Rain Johanson
Organization: Skype
Project: Skype components intercommunication
 
Join Date: Jun 2007
Posts: 2
Ice crashes when log file exceeds 2Gb

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
Reply With Quote
  #2 (permalink)  
Old 06-20-2007
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,535
Hi Rain,

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

Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 06-21-2007
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,535
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.
Reply With Quote
  #4 (permalink)  
Old 11-12-2007
rain rain is offline
Registered User
 
Name: Rain Johanson
Organization: Skype
Project: Skype components intercommunication
 
Join Date: Jun 2007
Posts: 2
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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Log File Size error xdm Help Center 3 02-27-2007 05:58 AM
is there any example for transmitting a file using ICE nyingchi Help Center 1 09-15-2006 04:43 AM
log.0000000001 problem! ewiniar Help Center 5 05-31-2006 05:27 AM
Equivalent to Telecom Log Service for Ice? Paul Drummond Help Center 4 04-19-2006 01:42 PM
server CORBA and ICE in a same file vydge Help Center 7 06-08-2005 08:39 AM


All times are GMT -4. The time now is 08:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.