Internal Server Error with Nagios 3.0.3

Kulcsar, Stefan Stefan.Kulcsar at Marquardt.de
Tue Aug 12 17:21:16 CEST 2008


Hi,

we get an Internal Server Error with Nagios Version 3.0.3 on CentOS 5.2

glibc-2.5-24
gd-2.0.33-9.4.el5_1.1
gcc-4.1.2-42.el5
glibc-common-2.5-24
gd-devel-2.0.33-9.4.el5_1.1
httpd-2.2.3-11.el5_1.centos.3

In sourcecode directory we executed the folowing commands:

export REQUEST_METHOD=GET
export REMOTE_USER=nagiosadmin

$ ./status.cgi
*** glibc detected *** ./status.cgi: free(): invalid next size (normal): 0x0859a578 ***
======= Backtrace: =========
/lib/libc.so.6[0x679b16]
/lib/libc.so.6(cfree+0x90)[0x67d070]
./status.cgi[0x80719c1]
./status.cgi[0x8057c2e]
./status.cgi[0x8054017]
/lib/libc.so.6(__libc_start_main+0xdc)[0x626dec]
./status.cgi[0x8048e91]
======= Memory map: ========
005f3000-0060d000 r-xp 00000000 fd:00 12484646   /lib/ld-2.5.so
0060d000-0060e000 r--p 00019000 fd:00 12484646   /lib/ld-2.5.so
0060e000-0060f000 rw-p 0001a000 fd:00 12484646   /lib/ld-2.5.so
00611000-0074e000 r-xp 00000000 fd:00 12484647   /lib/libc-2.5.so
0074e000-00750000 r--p 0013c000 fd:00 12484647   /lib/libc-2.5.so
00750000-00751000 rw-p 0013e000 fd:00 12484647   /lib/libc-2.5.so
00751000-00754000 rw-p 00751000 00:00 0
00876000-00881000 r-xp 00000000 fd:00 12484649   /lib/libgcc_s-4.1.2-20080102.so.1
00881000-00882000 rw-p 0000a000 fd:00 12484649   /lib/libgcc_s-4.1.2-20080102.so.1
009ea000-009eb000 r-xp 009ea000 00:00 0          [vdso]
08048000-08080000 r-xp 00000000 fd:00 5607117    /usr/local/src/nagios-3.0.3/cgi/status.cgi
08080000-08081000 rw-p 00038000 fd:00 5607117    /usr/local/src/nagios-3.0.3/cgi/status.cgi
08081000-08084000 rw-p 08081000 00:00 0
0852b000-08ab6000 rw-p 0852b000 00:00 0
b7800000-b7821000 rw-p b7800000 00:00 0
b7821000-b7900000 ---p b7821000 00:00 0
b7906000-b7f50000 r--p 00000000 fd:00 5342465    /usr/local/nagios/var/status.dat
b7f50000-b7f52000 rw-p b7f50000 00:00 0
bfeb1000-bfec6000 rw-p bfeb1000 00:00 0          [stack]
Aborted


the same command with gdb

$ gdb ./status.cgi
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)
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-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/local/src/nagios-3.0.3/cgi/status.cgi
*** glibc detected *** /usr/local/src/nagios-3.0.3/cgi/status.cgi: free(): invalid next size (fast): 0x09a17470 ***
======= Backtrace: =========
/lib/libc.so.6[0x679b16]
/lib/libc.so.6(cfree+0x90)[0x67d070]
/usr/local/src/nagios-3.0.3/cgi/status.cgi[0x80719c1]
/usr/local/src/nagios-3.0.3/cgi/status.cgi[0x8057c2e]
/usr/local/src/nagios-3.0.3/cgi/status.cgi[0x8054017]
/lib/libc.so.6(__libc_start_main+0xdc)[0x626dec]
/usr/local/src/nagios-3.0.3/cgi/status.cgi[0x8048e91]
======= Memory map: ========
005f3000-0060d000 r-xp 00000000 fd:00 12484646   /lib/ld-2.5.so
0060d000-0060e000 r--p 00019000 fd:00 12484646   /lib/ld-2.5.so
0060e000-0060f000 rw-p 0001a000 fd:00 12484646   /lib/ld-2.5.so
00611000-0074e000 r-xp 00000000 fd:00 12484647   /lib/libc-2.5.so
0074e000-00750000 r--p 0013c000 fd:00 12484647   /lib/libc-2.5.so
00750000-00751000 rw-p 0013e000 fd:00 12484647   /lib/libc-2.5.so
00751000-00754000 rw-p 00751000 00:00 0
00876000-00881000 r-xp 00000000 fd:00 12484649   /lib/libgcc_s-4.1.2-20080102.so.1
00881000-00882000 rw-p 0000a000 fd:00 12484649   /lib/libgcc_s-4.1.2-20080102.so.1
00914000-00915000 r-xp 00914000 00:00 0          [vdso]
08048000-08080000 r-xp 00000000 fd:00 5607117    /usr/local/src/nagios-3.0.3/cgi/status.cgi
08080000-08081000 rw-p 00038000 fd:00 5607117    /usr/local/src/nagios-3.0.3/cgi/status.cgi
08081000-08084000 rw-p 08081000 00:00 0
099a8000-09f33000 rw-p 099a8000 00:00 0
b7800000-b7821000 rw-p b7800000 00:00 0
b7821000-b7900000 ---p b7821000 00:00 0
b7989000-b7fd3000 r--p 00000000 fd:00 5342648    /usr/local/nagios/var/status.dat
b7fd3000-b7fd5000 rw-p b7fd3000 00:00 0
bfb83000-bfb99000 rw-p bfb83000 00:00 0          [stack]

Program received signal SIGABRT, Aborted.
0x00914410 in __kernel_vsyscall ()
(gdb) backtrace
#0  0x00914410 in __kernel_vsyscall ()
#1  0x00639d20 in raise () from /lib/libc.so.6
#2  0x0063b631 in abort () from /lib/libc.so.6
#3  0x00671e6b in __libc_message () from /lib/libc.so.6
#4  0x00679b16 in _int_free () from /lib/libc.so.6
#5  0x0067d070 in free () from /lib/libc.so.6
#6  0x080719c1 in xsddefault_read_status_data (config_file=0x807b58a "/usr/local/nagios/etc/cgi.cfg", options=15) at ../xdata/xsddefault.c:776
#7  0x08057c2e in read_all_status_data (config_file=0x807b58a "/usr/local/nagios/etc/cgi.cfg", options=15) at cgiutils.c:549
#8  0x08054017 in main () at status.c:226
(gdb)

We dont know where to search for a solution ... any answers that might help to solve the problem are welcome

-- 
Stefan




-- 
Mit freundlichen Grüßen / Best regards

MARQUARDT GmbH
Informationssysteme und Organisation / Information Systems and Organization

i. A. Stefan Kulcsar

Tel.: +49 (0) 74 24 - 99 16 39
Fax: +49 (0) 74 24 - 99 21 00 

mailto:stefan.kulcsar at marquardt.de
http://www.marquardt.de

Marquardt GmbH • Schloss-Str. 16 • 78604 Rietheim-Weilheim • Germany
Geschäftsführung: Dr. Harald Marquardt (Sprecher) • Ernst Kellermann • Matthias Marquardt
Vorsitzender des Aufsichtsrats: Dr. Ing. Hans-Jochem Steim • Amtsgericht Stuttgart HRB 450295
---------------------------------------------------------------------------------------------
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese E-Mail. Vielen Dank.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

This e-mail contains confidential and/or privileged information. 
If you are not the intended recipient (or have received this e-mail in error) 
please notify the sender and delete this message. Thank you.
Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list