<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <b>Bug has consequences near line 213</b> do_rrd.c, function
    flush_cached_updates.<br>
    <br>
    extract from rrd-status.log<br>
    <br>
    3451 2011-09-01 15:04:31 Sending from devmon to RRD for temp
    ACpu0Core1: 1314853471:45.0<br>
    3451 2011-09-01 15:04:31 Flushing '/upeterm/temp.ACpu0Core1.rrd'
    with 2 updates pending, template <b>'(null)'</b><br>
    <br>
    2011-09-01 15:04:31 RRD error updating
    /usr/local/xymon/data/rrd/upeterm/temp.ACpu0Core1.rrd from
    127.0.0.1: unknown option <b>'-t'</b><br>
    <br>
    xymond_rrd crashing<br>
    <br>
    <b>gdb report</b><br>
    <br>
    #0  0x00007f7699d33d05 in raise (sig=6) at
    ../nptl/sysdeps/unix/sysv/linux/raise.c:64<br>
    #1  0x00007f7699d37ab6 in abort () at abort.c:92<br>
    #2  0x000000000042dc43 in sigsegv_handler (signum=<value
    optimised out>) at sig.c:51<br>
    #3  <signal handler called><br>
    #4  __strncasecmp_l_ssse3 () at
    ../sysdeps/x86_64/multiarch/../strcmp.S:2113<br>
    #5  0x000000000041fd12 in setup_template (params=<value optimised
    out>) at xymonrrd.c:337<br>
    #6  0x00000000004066cf in create_and_update_rrd (hostname=<value
    optimised out>, testname=<value optimised out>,
    classname=0x7f769a8b226d "services", <br>
        pagepaths=0x7f769a8b2276 "0", creparams=0x7fff9d827cc0,
    template=<value optimised out>) at do_rrd.c:501<br>
    #7  0x0000000000412e4b in do_devmon_rrd (hostname=0x7f769a8b221f
    "upeterm", testname=0x7f769a8b2227 "motherboard",
    classname=0x7f769a8b226d "services", <br>
        pagepaths=0x7f769a8b2276 "0", msg=<value optimised out>,
    tstamp=1314851366) at rrd/do_devmon.c:108<br>
    #8  0x0000000000413dd5 in update_rrd (hostname=0x7f769a8b221f
    "upeterm", testname=0x7f769a8b2227 "motherboard", msg=<value
    optimised out>, tstamp=1314851366, <br>
        sender=<value optimised out>, ldef=<value optimised
    out>, classname=0x7f769a8b226d "services",
    pagepaths=0x7f769a8b2276 "0") at do_rrd.c:760<br>
    #9  0x0000000000403411 in main (argc=<value optimised out>,
    argv=<value optimised out>) at xymond_rrd.c:351<br>
    <br>
    <br>
    <br>
    <b>with xymon compiled with debugging suppor</b>t<br>
    CFLAGS = -g -DDEBUG -Wall -D_REENTRANT $(LFSDEF) $(OSDEF) enabled<br>
    <br>
    no more null template, xymond_rrd not crashing<br>
    <br>
    attached is script that collects the data that triggers the problem<br>
    <br>
    <b>Versions</b><br>
    <br>
    xymon is at 4.3.4<br>
    <br>
    OS<br>
    <br>
    Distributor ID: Ubuntu<br>
    Description:    Ubuntu 11.04<br>
    Release:        11.04<br>
    Codename:       natty<br>
    <br>
    Linux upeterm 2.6.38-11-server #48-Ubuntu SMP Fri Jul 29 19:20:32
    UTC 2011 x86_64 x86_64 x86_64 GNU/Linux<br>
    <br>
    <br>
    suggest you add <br>
    if ( cacheitem->tpl->template != NULL) {<br>
        :<br>
    }<br>
    <br>
    around your code to protect yourself from yourself<br>
    <br>
    <br>
    Peter<br>
    <br>
    <br>
  </body>
</html>