Ticket #894 (closed defect: fixed)

Opened 2 years ago

Last modified 3 months ago

CGI graphing doesn't work with .sum

Reported by: snide Assigned to: nobody
Priority: high Milestone: Munin 2.0
Component: web-interface Version: 1.4.3
Severity: normal Keywords:
Cc:

Description

As noted by Jani N. :

Unfortunately, it looks like this triggered a bug when handling .sum graphs. Regular single graph handling doesnt seem affected.

When a FastCGI process with this change is used to load a .sum graph, it can draw it once and only once successfully. Any further attempts at redrawing will fail with various semi-random rrdtool errors, such as "invalid rpn expression in: acdefz4_1,UN,0,acdefz4_1,IF".

This seems to be caused by the $config being modified when .sum graphs are generated. When the generation is attempted the second time, the graphing fails.

I verified this by modifying the GraphOld.pm to take a clone() of the $config when it is created, and cloning a new instance on every invoke. This is not a good fix though, as it seems to leak memory very quickly.

Change History

(follow-up: ↓ 2 ) 08/28/10 10:32:06 changed by snide

  • status changed from new to closed.
  • resolution set to fixed.

Closing this one, since a standard Storable::dclone() works.

(in reply to: ↑ 1 ) 08/28/10 10:33:21 changed by snide

Replying to snide:

Closing this one, since a standard Storable::dclone() works.

Was commited in r3435