Re: [Nagios-devel] Nagios3.0b4 : shutdown after a few minutes

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Nagios3.0b4 : shutdown after a few minutes

Post by Guest »

This is a cryptographically signed message in MIME format.

--------------ms010808080305080205000607
Content-Type: multipart/mixed; boundary="------------010105030708040807020605"

This is a multi-part message in MIME format.
--------------010105030708040807020605
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi,

I am able to reproduce this with a clean compile.

Attached: My Debug file with

a) gdb run until GLIBC DETECT
b) a manual 'bt' after it
c) the last 300 lines of the debug file (debug_level=-1)

Hope that helps a bit.

Regards
Hendrik

Ethan Galstad schrieb:
> It looks like the problem is on line 581 of common/macros.c. Most like
> the pointer is getting set to an invalid address at some point.
>
> I've been running the b4 code with the new servicegroup macros for about
> two weeks without problems thus far. I'll try running it under a
> debugger with various service/servicegroup variations to see if I can
> get it to segfault.
>
> Can you run Nagios with the debug log enabled for service checks to find
> out what service is being checked immediately before the segfault? If
> you could send (offline if necessary) the corresponding service
> definition, as well as defs for any servicegroups its a member of, that
> would be helpful as well.
>


--------------010105030708040807020605
Content-Type: text/plain;
name="nagios-cvs-sigabrt.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nagios-cvs-sigabrt.txt"

######
#
# GDB Run
#
######

*** glibc detected *** /usr/local/src/cvs/nagios3cvs-appl-ne/base/nagios: realloc(): invalid next size: 0x082f2d78 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7e44cb1]
/lib/libc.so.6[0xb7e47928]
/lib/libc.so.6(__libc_realloc+0x100)[0xb7e48a40]
/usr/local/src/cvs/nagios3cvs-appl-ne/base/nagios(grab_servicegroup_macros+0x96)[0x8077356]
/usr/local/src/cvs/nagios3cvs-appl-ne/base/nagios(grab_service_macros+0x18d)[0x807768d]
/usr/local/src/cvs/nagios3cvs-appl-ne/base/nagios(run_async_service_check+0x1fc)[0x805c8dc]
/usr/local/src/cvs/nagios3cvs-appl-ne/base/nagios(run_scheduled_service_check+0xb9)[0x805e909]
/usr/local/src/cvs/nagios3cvs-appl-ne/base/nagios(handle_timed_event+0x176)[0x806dd86]
/usr/local/src/cvs/nagios3cvs-appl-ne/base/nagios(event_execution_loop+0x5d4)[0x806e684]
/usr/local/src/cvs/nagios3cvs-appl-ne/base/nagios(main+0x467)[0x8055b17]
/lib/libc.so.6(__libc_start_main+0xdc)[0xb7df687c]
/usr/local/src/cvs/nagios3cvs-appl-ne/base/nagios[0x8055621]
======= Memory map: ========
08048000-080ce000 r-xp 00000000 08:05 181555 /usr/local/src/cvs/nagios3cvs-appl-ne/base/nagios
080ce000-080cf000 rw-p 00086000 08:05 181555 /usr/local/src/cvs/nagios3cvs-appl-ne/base/nagios
080cf000-0861b000 rw-p 080cf000 00:00 0 [heap]
b7400000-b7421000 rw-p b7400000 00:00 0
b7421000-b7500000 ---p b7421000 00:00 0
b7571000-b7572000 ---p b7571000 00:00 0
b7572000-b7d72000 rw-p b7572000 00:00 0
b7d72000-b7da7000 r--s 00000000 08:03 466815 /var/run/nscd/passwd
b7da7000-b7ddc000 r--s 00000000 08:03 466816 /var/run/nscd/group
b7ddc000-b7ddd000 rw-p b7ddc000 00:00 0
b7ddd000-b7ddf000 r-xp 00000000 08:01 692160 /lib/libdl-2.4.so
b7ddf000-b7de1000 rw-p 00001000 08:01 692160 /lib/libdl-2.4.so
b7de1000-b7efc000 r-xp 00000000 08:01 692145 /lib/libc-2.4.so
b7efc000-b7efe000 r--p 0011a000 08:01 692145 /lib/libc-2.4.so
b7efe000-b7f00000 rw-p 0011c000 08:01 692145 /lib/libc-2.4.so
b7f00000-b7f04000 rw-p b7f00000 00:00 0
b7f04000-b7f89000 r-xp 00000000 08:01 549793 /opt/gnome/lib/libglib-2.0.so.0.800.6
b7f89000-b7f8a000 rw-p 00085000 08:01 549793 /opt/gnome/lib/libglib-2.0.so.0.800.6
b7f8a000-b7f8f000 r-xp 00000000 08:05 83787 /usr/lib/libltdl.so.3.1.4
b7f8f000-b7f90000 rw-p 00005000 08:05 83787 /usr/lib/libltdl.so.3.1.4
b7f90000-b7fa1000 r-xp 00000000 08:01 692171 /lib/libpthread-2.4.so
b7fa1000-b7fa3000 rw-p 00010000 08:01 692171 /lib/libpthread-2.4.so
b7fa3000-b7fa5000 rw-p b7fa3000 00:00 0
b7fa5000-b7fc8000 r-xp 00000000 08:01 692164 /lib/libm-2.4.so
b7fc8000-b7fca000 rw-

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked