<br><font size=2 face="sans-serif">Hi list,</font>
<br>
<br><font size=2 face="sans-serif">nagios dumps core with SIGSEV on Solaris
10 when a plugin does not print any output.</font>
<br><font size=2 face="sans-serif">Using gdb I found it happening in line
803 of base/checks.c, where checkresult_dbuf.buf is 0x0 on empty plugin
output.</font>
<br>
<br><font size=2 face="sans-serif">Versions:</font>
<br><font size=2 face="sans-serif">- nagios-3.0.3 and nagios-cvs (as of
24. Sept 2008)</font>
<br><font size=2 face="sans-serif">- Solaris 10 x86</font>
<br><font size=2 face="sans-serif">- both Sun Studio 11 and gcc</font>
<br>
<br><font size=2 face="sans-serif">I tried a fix just in place by inserting
a NULL pointer check just before the fprintf in line 803 ... maybe there
is a more elegant solution.</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif">On linux, glibc seems to handel this
problem in printf("output=%s", NULL) by returning the string
"(null)".</font>
<br>
<br>
<br><font size=2 face="sans-serif">Regards,</font>
<br><font size=2 face="sans-serif">Torsten</font>
<br><font size=2 face="sans-serif">===</font>
<br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">_________________________________________________________________</span><br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Sachsen DV Betriebs- und Servicegesellschaft mbH</span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Täubchenweg 26</span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">04317 Leipzig</span><br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Amtsgericht Leipzig, HRB 18545</span><br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Geschäftsführer: Herbert Roller Brandão, Dr. Jean-Michael Pfitzner</span><br>
<br>
<span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000">Aufsichtsratsvorsitzender: Andreas Benninger</span><br>