[hobbit] Xymon 4.3.0-beta1: hobbit-hostgraphs.cgi: core dump

Dominique Frise dominique.frise at unil.ch
Mon Apr 6 11:16:49 CEST 2009


Dominique Frise wrote:
> Hi,
> 
> Running Xymon on Solaris 10 i386.
> We get "Internal Server error" with the Metrics Report.
> 
> 
> 
> Here below the results of debugging:
> 
> [bb at iris etc]$ . 
> /soft/pub/BB/hobbit/server/etc/hobbitcgi.cfg;/soft/pub/BB/hobbit/server/bin/hobbit-hostgraphs.cgi 
> $CGI_HOSTGRAPHS_OPTS --debug
> Content-type: text/html
> 
> 2009-03-31 15:17:15 Trying header/footer file 
> '/soft/pub/BB/hobbit/server/web/hostgraphs_header'
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML>
> <HEAD>
> 
> <TITLE>Xymon - Metrics Report</TITLE>
> ...
> ...
>           <SELECT NAME=hostname MULTIPLE SIZE=15>
>           2009-03-31 15:17:15 Transport setup is:
> 2009-03-31 15:17:15 bbdportnumber = 1984
> 2009-03-31 15:17:15 bbdispproxyhost = NONE
> 2009-03-31 15:17:15 bbdispproxyport = 0
> 2009-03-31 15:17:15 Recipient listed as '130.223.27.150'
> 2009-03-31 15:17:15 Standard BB protocol on port 1984
> 2009-03-31 15:17:15 Will connect to address 130.223.27.150 port 1984
> 2009-03-31 15:17:15 Connect status is 0
> 2009-03-31 15:17:15 Sent 56 bytes
> 2009-03-31 15:17:15 Read 8192 bytes
> 2009-03-31 15:17:15 Read 1287 bytes
> 2009-03-31 15:17:15 Closing connection
> 2009-03-31 15:17:15 Opening file /soft/pub/BB/hobbit/server/etc/bb-hosts
> 2009-03-31 15:17:15 Opening file 
> /soft/pub/BB/hobbit/server/etc//bb-hosts.acadSys
> 2009-03-31 15:17:15 Opening file 
> /soft/pub/BB/hobbit/server/etc//bb-hosts.adminSys
> 2009-03-31 15:17:15 Recipient listed as '130.223.27.150'
> 2009-03-31 15:17:15 Standard BB protocol on port 1984
> 2009-03-31 15:17:15 Will connect to address 130.223.27.150 port 1984
> 2009-03-31 15:17:15 Connect status is 0
> 2009-03-31 15:17:15 Sent 8 bytes
> 2009-03-31 15:17:15 Closing connection
> Segmentation Fault (core dumped)
> 
> 
> [bb at iris etc]$ gdb ../bin/hobbit-hostgraphs.cgi core
> GNU gdb 6.6
> Copyright (C) 2006 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you 
> are
> welcome to change it and/or distribute copies of it under certain 
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-pc-solaris2.8"...
> 
> warning: core file may not match specified executable file.
> Reading symbols from /opt/csw/lib/libpcre.so.0...done.
> Loaded symbols for /opt/csw/lib/libpcre.so.0
> Reading symbols from /usr/lib/libresolv.so.2...done.
> Loaded symbols for /usr/lib/libresolv.so.2
> Reading symbols from /usr/lib/libsocket.so.1...done.
> Loaded symbols for /usr/lib/libsocket.so.1
> Reading symbols from /usr/lib/libnsl.so.1...done.
> Loaded symbols for /usr/lib/libnsl.so.1
> Reading symbols from /usr/lib/librt.so.1...done.
> Loaded symbols for /usr/lib/librt.so.1
> Reading symbols from /usr/lib/libc.so.1...done.
> Loaded symbols for /usr/lib/libc.so.1
> Reading symbols from /opt/csw/lib/libncurses.so.5...done.
> Loaded symbols for /opt/csw/lib/i386/libncurses.so.5
> Reading symbols from /opt/csw/lib/libz.so...done.
> Loaded symbols for /opt/csw/lib/i386/libz.so
> Reading symbols from /opt/csw/lib/libbz2.so.1.0...done.
> Loaded symbols for /opt/csw/lib/i386/libbz2.so.1.0
> Reading symbols from /opt/csw/lib/libreadline.so.5...done.
> Loaded symbols for /opt/csw/lib/i386/libreadline.so.5
> Reading symbols from /lib/libaio.so.1...done.
> Loaded symbols for /lib/libaio.so.1
> Reading symbols from /lib/libmd.so.1...done.
> Loaded symbols for /lib/libmd.so.1
> Reading symbols from /lib/ld.so.1...done.
> Loaded symbols for /lib/ld.so.1
> Core was generated by 
> `/soft/pub/BB/hobbit/server/bin/hobbit-hostgraphs.cgi 
> --env=/soft/pub/BB/hobbit/'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x0805f31a in addtobuffer (buf=0x0, newtext=0x0) at strfunc.c:121
> 121             strbuf_addtobuffer(buf, newtext, strlen(newtext));
> (gdb) bt
> #0  0x0805f31a in addtobuffer (buf=0x0, newtext=0x0) at strfunc.c:121
> #1  0x0805de2b in sendmessage (msg=0x80647a7 "schedule", recipient=0x0,
>     timeout=15, response=0x809cc18) at sendmsg.c:485
> #2  0x0805645d in fetch_board () at headfoot.c:441
> #3  0x0805807c in output_parsed (output=0x8077e68,
>     templatedata=0x8078f36 "\t  </SELECT>\n\n\t  <SELECT NAME=testname 
> MULTIPLE SIZE=15>\n\t  <option value=\"ALL\" SELECTED>ALL</option>\n\t 
> <option value=\"cpu\">CPU load (Windows/Unix)</option>\n\t  <option 
> value=\"la1\">CPU utilization (Un"..., bgcolor=2, 
> selectedtime=1238505435) at headfoot.c:710
> #4  0x08058cd8 in showform (output=0x8077e68,
>     headertemplate=0x8063c6d "hostgraphs",
>     formtemplate=0x8063c78 "hostgraphs_form", color=2, seltime=1238505435,
>     pretext=0x0, posttext=0x0) at headfoot.c:1444
> #5  0x080541c7 in main (argc=0, argv=0x8047900) at hobbit-hostgraphs.c:223
> (gdb)
> 
> 
> 
> Does anyone have an idea of what could be wrong?
> 
> Thanks.
> 
> Dominique
> 

I should have better searched the mailing archive ;-)
The patch described in http://www.xymon.com/hobbiton/2009/02/msg00140.html
solved it.

Thanks Henrik and sorry for the noise.

Dominique



More information about the Xymon mailing list