<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello Xymon team,<br>
    <br>
             I discovered a bug in xymond_rrd module present in release
    4.3.7 and after.<br>
             Some times function update_rrd in do_rrd.c msg <span
      id="ctl00_cC_ucResPM_rE_ctl01_lblTarget" class="ellipsis_text"
      direction="target" keywords="pointeur,pointeur" lang="1033">pointer
      (*msg) can be null. That </span><span
      id="ctl00_cC_ucResPM_rE_ctl00_lblTarget" class="ellipsis_text"
      direction="target" keywords="provoquer,provoquer" lang="1033">cause
      an segfault at </span>strchr call.<br>
    <br>
    Following the coredump analyse<br>
    <br>
    <tt>#0 0xb775e424 in __kernel_vsyscall ()
    </tt><tt><br>
    </tt><tt>
      #1 0xb741e781 in raise () from /lib/i686/cmov/libc.so.6
    </tt><tt><br>
    </tt><tt>
      #2 0xb7421bb2 in abort () from /lib/i686/cmov/libc.so.6
    </tt><tt><br>
    </tt><tt>
      #3 0x08070723 in sigsegv_handler (signum=11) at sig.c:57
    </tt><tt><br>
    </tt><tt>
      #4 <signal handler called>
    </tt><tt><br>
    </tt><tt>
      #5 0xb7466a83 in strchr () from /lib/i686/cmov/libc.so.6
    </tt><tt><br>
    </tt><tt>
      #6 0x08050b80 in do_ncv_rrd (hostname=0xb6c847af
      "lvmpitg-sql02o.lvm93.cvf", </tt><tt><br>
    </tt><tt>
          testname=0xb6c847c8 "mbs_oracle1", classname=0x807fc0d "", </tt><tt><br>
    </tt><tt>
          pagepaths=0x807fc0d "", msg=0x0, tstamp=1359477166) at
      rrd/do_ncv.c:54
    </tt><tt><br>
    </tt><tt>
      #7 0x0805a45f in update_rrd (hostname=0xb6c847af
      "lvmpitg-sql02o.lvm93.cvf", </tt><tt><br>
    </tt><tt>
          testname=0xb6c847c8 "mbs_oracle1", msg=0x0, tstamp=1359477166,
    </tt><tt><br>
    </tt><tt>
          sender=0xb6c847a1 "10.193.26.14", ldef=0x9f5d608,
      classname=0x807fc0d "", </tt><tt><br>
    </tt><tt>
          pagepaths=0x807fc0d "") at do_rrd.c:712
    </tt><tt><br>
    </tt><tt>
      #8 0x0804a90f in main (argc=3, argv=0xbfadf744) at
      xymond_rrd.c:369
    </tt><tt><br>
    </tt><br>
       <br>
    I have modified source code to control msg content.<br>
    See the attachement.<br>
    <br>
    I suppose that isn't the best way to procede but that work better
    now.<br>
    <br>
    <div class="moz-signature"><br>
      <font color="#000000">    Best regards,</font><br>
      <br>
      <div>
        <p style="font-family: Arial, sans-serif; margin-top: 0pt;
          margin-bottom: 0pt; font-size: 10pt; color:#000000;"> <b>Nicolas
            LOYAU</b> <br>
          <br>
        </p>
      </div>
    </div>
  <PRE>_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified.
Thank you.
</PRE></body>
</html>