<p dir="ltr">Hello,<br>
thank you very much for your help.<br>
Guess I will Update my xymon Installation asap :-)</p>
<p dir="ltr">Regards,<br>
Lukas </p>
<div class="gmail_quote">Am 30.08.2014 05:23 schrieb "J.C. Cleaver" <<a href="mailto:cleaver@terabithia.org">cleaver@terabithia.org</a>>:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Ahh, they do now, but they didn't in 4.3.7.<br>
<br>
--> if ((metacount >= 14) && (strncmp(metadata[0], "@@status", 8) == 0)) {<br>
--> else if ((metacount > 5) && (strncmp(metadata[0], "@@data", 6) == 0)) {<br>
<br>
Looks like this was fixed in the 4.3.11 release, so updating to that (if<br>
not the current) is probably your best bet.<br>
<br>
<a href="https://sourceforge.net/p/xymon/code/7178/tree//branches/4.3.11/xymond/xymond_rrd.c?diff=516c17fd34309d2eb14bcb64:7177" target="_blank">https://sourceforge.net/p/xymon/code/7178/tree//branches/4.3.11/xymond/xymond_rrd.c?diff=516c17fd34309d2eb14bcb64:7177</a><br>

<br>
<br>
Regards,<br>
<br>
-jc<br>
<br>
<br>
On Thu, August 28, 2014 5:00 pm, Richard Hamilton wrote:<br>
> In both of those, the msg argument to do_ncv_rrd() or do_memory_rrd() is<br>
> 0x0 (NULL pointer).  Those routines don't check for that before passing it<br>
> to strchr() or strstr(), so they crash on an invalid memory access.<br>
><br>
> In both cases, going one call further back, the msg argument to<br>
> update_rrd() is also 0x0.  I don't see how that's happening - the only<br>
> calls to update_rrd() that I found seem to be within "if" tests that<br>
> include a check that it's NOT null.<br>
><br>
><br>
> On Wed, Aug 27, 2014 at 4:45 AM, Lukas Kohl <<a href="mailto:lukkohl@gmail.com">lukkohl@gmail.com</a>> wrote:<br>
><br>
>> Hello there,<br>
>> I'm running under xymon Version 4.3.7.<br>
>> Since 4 Weeks I am experiencing these chrashes about 5 to 10 times a<br>
>> day.<br>
>><br>
>> These are two example backtracked core dumps:<br>
>><br>
>> #0  0x00007f96a06f2b55 in raise () from /lib64/libc.so.6<br>
>> (gdb) bt<br>
>> #0  0x00007f96a06f2b55 in raise () from /lib64/libc.so.6<br>
>> #1  0x00007f96a06f4131 in abort () from /lib64/libc.so.6<br>
>> #2  0x000000000042cde3 in sigsegv_handler (signum=<optimized out>) at<br>
>> sig.c:57<br>
>> #3  <signal handler called><br>
>> #4  0x00007f96a07d3e18 in __strchr_sse42 () from /lib64/libc.so.6<br>
>> #5  0x00000000004092fa in do_ncv_rrd (hostname=0xserver1 "server1",<br>
>> testname=0x7f96a1240b20 "queued-requests", classname=0x4373cd "",<br>
>> pagepaths=0x4373cd "", msg=0x0, tstamp=<optimized out>) at<br>
>> rrd/do_ncv.c:54<br>
>><br>
>> #6  0x0000000000412b7b in update_rrd (hostname=0xserver1 "server1",<br>
>> testname=0x7f96a1240b20 "queued-requests", msg=0x0, tstamp=1409060041,<br>
>> sender=<optimized out>, ldef=<optimized out>, classname=0x4373cd "",<br>
>>     pagepaths=0x4373cd "") at do_rrd.c:713<br>
>> #7  0x00000000004034e6 in main (argc=<optimized out>,<br>
>> argv=0x7fff97181608)<br>
>> at xymond_rrd.c:351<br>
>> (gdb)<br>
>><br>
>> (gdb) bt<br>
>> #0  0x00007ffce86e0b55 in raise () from /lib64/libc.so.6<br>
>> #1  0x00007ffce86e2131 in abort () from /lib64/libc.so.6<br>
>> #2  0x000000000042cde3 in sigsegv_handler (signum=<optimized out>) at<br>
>> sig.c:57<br>
>> #3  <signal handler called><br>
>> #4  0x00007ffce87c4270 in __strstr_sse42 () from /lib64/libc.so.6<br>
>> #5  0x0000000000410796 in do_memory_rrd (hostname=0xserver2 "server2",<br>
>> testname=0x7ffce92338ee "memory", classname=0x4373cd "",<br>
>>     pagepaths=0x4373cd "", msg=0x0, tstamp=1409115365) at<br>
>> rrd/do_memory.c:96<br>
>> #6  0x0000000000412a3b in update_rrd (hostname=0xserver2 "server2",<br>
>> testname=0x7ffce92338ee "memory", msg=0x0, tstamp=1409115365,<br>
>>     sender=<optimized out>, ldef=<optimized out>, classname=0x4373cd "",<br>
>> pagepaths=0x4373cd "") at do_rrd.c:697<br>
>> #7  0x00000000004034e6 in main (argc=<optimized out>,<br>
>> argv=0x7fff3d717518)<br>
>> at xymond_rrd.c:351<br>
>><br>
>><br>
>> And here is the rrd-status LogFile:<br>
>> 31485 2014-08-26 15:34:01 Want msg 21565, startpos 68046, fillpos 68046,<br>
>> endpos -1, usedbytes=0, bufleft=460337<br>
>> 31485 2014-08-26 15:34:01 Got 568 bytes<br>
>> 31485 2014-08-26 15:34:01 xymond_rrd: Got message 21565<br>
>> @@status#21565/server|1409060041.082009|IP||server|licensed-connections|1409061841|green||green|1408883326|0||0||1408883303||page|0|<br>
>><br>
>> 31485 2014-08-26 15:34:01 startpos 68300, fillpos 68614, endpos 68610<br>
>> 31485 2014-08-26 15:34:01 xymond_rrd: Got message 21566<br>
>> @@status#21566/server2|1409060041.082061|IP||server2|queued-requests|1409383096|blue||blue|1409037496|0||1409383096|Disabled<br>
>> by<br>
>> 31485 2014-08-26 15:34:01 startpos 68614, fillpos 68614, endpos -1<br>
>> 2014-08-26 15:34:01 Peer at <a href="http://0.0.0.0:0" target="_blank">0.0.0.0:0</a> failed: Broken pipe<br>
>> 2014-08-26 15:34:01 Peer not up, flushing message queue<br>
>> 6944 2014-08-26 15:34:01 Opening file<br>
>> /opt/xymon/server/etc/rrddefinitions.cfg<br>
>> 6944 2014-08-26 15:34:01 Want msg 1, startpos 0, fillpos 0, endpos -1,<br>
>> usedbytes=0, bufleft=528383<br>
>> 6944 2014-08-26 15:34:01 Got 245 bytes<br>
>> 6944 2014-08-26 15:34:01 xymond_rrd: Got message 21570<br>
>> @@status#21570/server3|1409060041.134654|IP||server3|queued-requests|1409061841|green||green|1408883326|0||0||1408883303||page|0|<br>
>><br>
>> 6944 2014-08-26 15:34:01 startpos 245, fillpos 245, endpos -1<br>
>> 6944 2014-08-26 15:34:01 Transport setup is:<br>
>> 6944 2014-08-26 15:34:01 xymondportnumber = 1984<br>
>> 6944 2014-08-26 15:34:01 xymonproxyhost = NONE<br>
>> 6944 2014-08-26 15:34:01 xymonproxyport = 0<br>
>> 6944 2014-08-26 15:34:01 Recipient listed as 'IP'<br>
>> 6944 2014-08-26 15:34:01 Standard protocol on port 1984<br>
>> 6944 2014-08-26 15:34:01 Will connect to address IP port 1984<br>
>> 6944 2014-08-26 15:34:01 Connect status is 0<br>
>> 6944 2014-08-26 15:34:01 Sent 16 bytes<br>
>> 6944 2014-08-26 15:34:01 Read 32767 bytes<br>
>> 6944 2014-08-26 15:34:01 Read 32767 bytes<br>
>> 6944 2014-08-26 15:34:01 Read 4287 bytes<br>
>> 6944 2014-08-26 15:34:01 Closing connection<br>
>><br>
>> At the Moment I am not able to debug this Problem any further, and I<br>
>> would<br>
>> be very glad, if you can give me a hint in the right direction.<br>
>><br>
>> Kind regards,<br>
>> Lukas Kohl<br>
>><br>
>> _______________________________________________<br>
>> Xymon mailing list<br>
>> <a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
>> <a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
>><br>
>><br>
> _______________________________________________<br>
> Xymon mailing list<br>
> <a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
> <a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
><br>
<br>
<br>
</blockquote></div>