[rrd-developers] Re: rrd_graph.c: draw_horizontal_grid(), im->maxval=NaN(0xfffffffffffff)
Stanislav Sinyagin
ssinyagin at yahoo.com
Sat Apr 26 19:07:28 MEST 2003
see below some more debug output.
It appeared that static pixie in ytr() has become infinite
on some previous calls. Perhaps the near-zero values with huge
exponent values cause the problem.
I don't have currently the old CVS snapshots, but I can definitely say
that few months ago this didn't happen.
Cheers,
Stan
Starting program: /usr/local/rrdtool-1.1.0/bin/rrdtool graph /tmp/aaaa.png --imgformat=PNG
--width=500 --height=400 DEF:A=/tmp/getdim-23809.rrd:A:AVERAGE LINE1:A#000000
Breakpoint 3, apply_gridfit (im=0xffbec968) at rrd_graph.c:483
483 double ypos1 = ytr(im, im->minval);
(gdb) p *im
$31 = {graphfile = "/tmp/aaaa.png", '\000' <repeats 1010 times>, xsize = 500,
ysize = 400, piesize = 0, graph_col = {4294967295, 4042322175, 3503345919,
2694881535, 2425393407, 3763359999, 255, 255, 4278190335}, text_prop = {{
size = 10,
font = 0xe44d0 "/usr/openwin/lib/X11/fonts/TrueType/Arial.ttf"}, {
size = 12,
font = 0xe44d0 "/usr/openwin/lib/X11/fonts/TrueType/Arial.ttf"}, {
size = 8,
font = 0xe44d0 "/usr/openwin/lib/X11/fonts/TrueType/Arial.ttf"}, {
size = 10,
font = 0xe44d0 "/usr/openwin/lib/X11/fonts/TrueType/Arial.ttf"}, {
size = 10,
font = 0xe44d0 "/usr/openwin/lib/X11/fonts/TrueType/Arial.ttf"}},
ylegend = '\000' <repeats 199 times>,
title = '\000' <repeats 180 times>, "ÿ¾Ð´\000\000\000\004", '\000' <repeats 11 times>,
draw_x_grid = 1, draw_y_grid = 1, grid_dash_on = 1,
grid_dash_off = 1, xlab_user = {minsec = -1, gridtm = TMT_SECOND,
gridst = 0, mgridtm = TMT_SECOND, mgridst = 0, labtm = TMT_SECOND,
labst = 0, precis = 0, stst = 0x0},
xlab_form = '\000' <repeats 199 times>, ygridstep = NaN(0xfffffffffffff),
ylabfact = 0, tabwidth = 0, start = 1051289758, end = 1051376158, step = 0,
minval = 1.9999999999969307e-312, maxval = 2.4999999999986337e-312,
rigid = 0, ygrid_scale = {gridstep = 1.0000000000132873e-313, labfact = 1,
labfmt = '\000' <repeats 63 times>}, gridfit = 1, imginfo = 0x0, lazy = 0,
logarithmic = 0, xorigin = 0, yorigin = 0, pie_x = 0, pie_y = 0, ximg = 0,
yimg = 0, magfact = 9.9999999999846534e-313, base = 1000, symbol = 32 ' ',
unitsexponent = 9999, extra_flags = 0, prt_c = 0, gdes_c = 2,
gdes = 0x11bac0, canvas = 0x11b2c0}
(gdb) s
ytr (im=0xffbec968, value=1.9999999999969307e-312) at rrd_graph.c:137
137 if (isnan(value)){
(gdb) p value
$32 = 1.9999999999969307e-312
(gdb) n
143 } else if(!im->logarithmic) {
(gdb)
144 yval = im->yorigin - pixie * (value - im->minval);
(gdb) p pixie
$33 = Infinity
(gdb)
--
Unsubscribe mailto:rrd-developers-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-developers-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-developers
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-developers
mailing list