Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-2010, 06:43 AM
Senior Member
 
Posts: 73
Default [SOLVED] "Use of uninitialized value in subtraction (-) ...&quot

Hi

My Zimbra Version:
zcs-6.0.3_GA_1915.UBUNTU8_64.20091118125312

I get the following warning in the "/opt/zimbra/zmstat/zmstat.out" file very often.
Code:
Use of uninitialized value in subtraction (-) at /opt/zimbra/libexec/zmstat-allprocs line 118.
With this warning the file grows ~10MB per hour!

Is there a way to avoid this warning?

Yogg
__________________
Release 7.1.2_GA_3268.UBUNTU8_64 UBUNTU8_64 NETWORK edition.
Reply With Quote
  #2 (permalink)  
Old 02-23-2010, 08:03 AM
Moderator
 
Posts: 7,928
Default

Did you try searching the forums ? many many error logs in /opt/zimbra/zmstat/zmstat.out
__________________
Reply With Quote
  #3 (permalink)  
Old 02-24-2010, 01:16 AM
Senior Member
 
Posts: 73
Default

Yea i have search for this and found the Bug report and there is only a solution for the 48h statistic Bug.

The only thing that says something to avoid the warnings was this:
Code:
By putting an if around the variable the warnings seem to be stopped.  I'm
really not sure if this is in any way correct but FYI, this is how I modified
my zmstat_allproc delta_stat function:

sub delta_stat($$$$) {
    my $prev_stats = shift;
    my $curr_stats = shift;
    my $pid  = shift;
    my $stat = shift;

    if($prev_stats->{$pid}->{$stat}) {
        $curr_stats->{$pid}->{$stat} - $prev_stats->{$pid}->{$stat};
    } else {
        0;
    }
}
The author says he has no idea if this is correct. Maybe this self made patch is in some way or in some environments harmful and i get other problems. There are also no comments about it if this is a good or bad solution.

The only thing that i can say is that i have no idea about the Zimbra code and i don't would test such patches (where the author is not sure about it) on working environments.

Can someone say something about this patch?

I have also found out that this problem only comes up in 64 bit environments. I have some 32 bit Zimbra servers with the same version where i don't get this warnings.
By the side the "sub delta_stat($$$$)" functions in "/opt/zimbra/libexec/zmstat-allprocs" are on 64 and 32 bit identically (line 111 - 119).
It seems for me that the above posted patch only avoid the warning and does not solve the problem itself.
How can it be that "$prev_stats->{$pid}->{$stat}" is uninitialized?

And sorry i have to say that but i think the only one who should mark my posts as solved was me

Yogg

Edit:
Is there a way to fix the tile of the post?
__________________
Release 7.1.2_GA_3268.UBUNTU8_64 UBUNTU8_64 NETWORK edition.
Reply With Quote
  #4 (permalink)  
Old 02-24-2010, 01:29 AM
Moderator
 
Posts: 7,928
Default

Quote:
Originally Posted by yogg1 View Post
And sorry i have to say that but i think the only one who should mark my posts as solved was me
Nope; I am marking as solved as a bug has been filed and the officially supported fix will be shown there when the Zimbra team resolve it.
__________________
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.