[rrd-users] Re: RRDTool with Darwin 10.4

Tobias Oetiker oetiker at ee.ethz.ch
Mon Sep 19 09:41:53 MEST 2005


Hi Evan,

it seems that I am trying to hard to clean up here ... rrd_free
does it all ... so try this patch ...

Index: rrd_restore.c
===================================================================
--- rrd_restore.c       (revision 671)
+++ rrd_restore.c       (working copy)
@@ -132,13 +132,11 @@
   {
     rrd_set_error("Incompatible file version, detected version %s is bigger than supported version %s\n",
                  rrd -> stat_head -> version, RRD_VERSION );
-    free(rrd -> stat_head);
     return -1;
   }
   if (atoi(rrd -> stat_head -> version) < 2)
   {
     rrd_set_error("Can only restore version >= 2 (Not %s). Dump your old rrd using a current rrdtool dump.",  rrd -> stat_head -> version );
-    free(rrd -> stat_head);
     return -1;
   }
   rrd->stat_head->float_cookie = FLOAT_COOKIE;


cheers
tobi


>
> On Sep 16, 2005, at 02:34 AM, Evan Platt wrote:
>
> > Finally upgraded to OS X 10.4 on a G4 533 with 512 mb sdram.
> >
> > Enabling LogFormat: rrdtool, I get:
> >
> > rrdtool(15818) malloc: *** error for object 0x4001e0: double free
> > rrdtool(15818) malloc: *** set a breakpoint in szone_error to debug
> > ERROR: Can only restore version >= 2 (Not 0001). Dump your old rrd
> > using a current rrdtool dump.
> > ERROR: Cannot update
> > /Library/WebServer/Documents/mrtg/192.168.1.2_65542.rrd with
> > '1126852133:324661:333194' opening
> > '/Library/WebServer/Documents/mrtg/192.168.1.2_65542.rrd': No such
> > file or directory
> >
> > I googled the errors to no avail.
> >
> > I posted this a while back, but my mac crashed, and things were put
> > on hold, and now I've got a G4, so I'm back in the game, so to
> > speak. :)
> >
> > Thanks.
> >
> > Evan
>
> unfortunately your lack of information will prevent anyone from
> assisting you.
>
> Examine:
> http://www.daleenterprise.com/info.php
> http://www.daleenterprise.com/amavis-stats
>
> I'm running 10.4 and have no issued with rrdtool.
>
> -- Dale
>
> --
> Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
> Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
> Archive     http://lists.ee.ethz.ch/rrd-users
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
>

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker @ ISG.EE, ETL F24.2, ETH, CH-8092 Zurich
 / // _ \/ _ \/ /  System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/oetiker +41(0)44-632-5286

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list