Ticket #177 (closed defect: fixed)
Segmentation fault when using VDEF with SHIFTed variables
| Reported by: | human | Owned by: | oetiker |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | rrd_graph | Version: | 1.3dev |
| Keywords: | VDEF SHIFT | Cc: |
Description
Starting with version 1.2.28, using VDEF with SHIFTed variables can lead to segmentation faults:
DEF:lastweek=total.rrd:active:LAST:step=60:end=now-7d:start=end-1d DEF:calls=mach01.rrd:active:LAST SHIFT:lastweek:608400 VDEF:callmax=calls,MAXIMUM VDEF:lastweekmax=lastweek,MAXIMUM
$ /usr/local/rrdtool-1.2.28/bin/rrdcgi -f peak2.cgi DEBUG: start == 1220028960, end == 1220115600, end_orig == 1220115495, 361 steps DEBUG: start == 1220029080, end == 1220115540, end_orig == 1219510695, 71574149 steps Segmentation fault
In rrd_graph.c when vdef_calc() is called, 'end' is calculated according to the shifted time, but 'start' isn't adjusted.


