Re: [Nagios-devel] 3.0b6 crashes with SIGSEGV

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] 3.0b6 crashes with SIGSEGV

Post by Guest »

=20
> -----Original Message-----
> From: Ethan Galstad [mailto:[email protected]]=20
> Sent: Tuesday, November 06, 2007 10:52 AM
> To: Boeckman, Matthew
> Subject: Re: [Nagios-devel] 3.0b6 crashes with SIGSEGV
>=20
> Boeckman, Matthew wrote:
> [snip]
> >> Can you run the unstripped nagios binary under gdb and do=20
> a backtrace=20
> >> when it segfaults? That will help track down the source of the=20
> >> segfault.
> >>
> >>
> >> cd /base
> >> gdb --args ./nagios /usr/local/nagios/etc/nagios.cfg r
> >>
> >> When it segfaults, do a backtrace...
> >>
> >> bt
> >>
> >> and send the output.
> >>
> >=20
> > Sure can!
> >=20
> > Warning: Host 'xxxxx' has no services associated with it!
> > [New Thread -1208861808 (LWP 3432)]
> >=20
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread -1208858416 (LWP 3429)] 0x08082ddb in=20
> > process_check_result_queue (dirname=3D0x9994090
> > "/usr/local/nagios/var/spool/checkresults")
> > at utils.c:2195
> > 2195 while((dirfile=3Dreaddir(dirp))!=3DNULL){
> > (gdb) bt
> > #0 0x08082ddb in process_check_result_queue (
> > dirname=3D0x9994090 "/usr/local/nagios/var/spool/checkresults") =
at
> > utils.c:2195
> > #1 0x08060670 in reap_check_results () at checks.c:145
> > #2 0x0806e470 in handle_timed_event (event=3D0x99b95a0) at=20
> > events.c:1238
> > #3 0x0806eaf8 in event_execution_loop () at events.c:944
> > #4 0x0805629c in main (argc=3DCannot access memory at address 0x1d8
> > ) at nagios.c:779
> >=20
> >>
>=20
> That's an odd place to have an error. I don't see a problem=20
> with the code, as dirp is being checked for errors (NULLness)=20
> before it is used in readdir().
>=20
> What OS/kernel are you running Nagios under? Has anyone else=20
> run into this?
>=20

This is a stock Centos5 install 5.0.0.el5.centos.2 with 2.6.18-8.el5.
Single processor 2 GB ram dell box.=20

Anything else I can dig into for you? I was thinking of pulling down
3.0b5 and seeing if I have the same issue (if that helps/make sense?).

3.0b6 was configured with:=20

/configure --prefix=3D/usr/local/nagios --with-cgiurl=3D/nagios/cgi-bin
--with-htmurl=3D/nagios -with-command-group=3Dnagcmd
--with-htppd-conf=3D/usr/local/apache2/conf/ --enable-perlcache
--enable-embedded-perl --disable-statusmap





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