Page 1 of 1

Re: [Nagios-devel] Internal server error in 2.3.1 =3D mmap() =

Posted: Sat May 20, 2006 4:59 pm
by Guest
This is a multi-part message in MIME format.

------_=_NextPart_001_01C67C71.C1C2D1D3
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



After Alessandro's post last week, I confirmed my issue was due to =
glomming the tmpfile onto a tmpfs space with all my other high-IO RRD's, =
etc. To confirm his posts, moving the file back to the same local FS =
fixed the symptoms.

I'll build the CVS vers. this week and try it with the file back on the =
old filesystem, and post back.

Thanks for your response Ethan.

/eli

-----Original Message-----
From: [email protected] on behalf of Ethan =
Galstad
Sent: Sat 5/20/2006 12:59 PM
To: Nagios-Devel
Subject: Re: [Nagios-devel] Internal server error in 2.3.1 =3D mmap() =
problem?
=20
Ethan Galstad wrote:
> Aha!
>=20
> I was thinking that the recent patches to CVS might solve this =
problem,=20
> but I doubt they will. A little detective work revealed that a SIGBUS =

> interrupt may occur if the underlying file that is mmap()ed is=20
> truncated. Since the status file is updated regularly, its size may =
be=20
> larger or smaller than it was previously, so this could be causing the =

> SIGBUS.
>=20
> Therefore I assume that I should *not* be mmap()ing the following =
files:=20
> status, comment, and downtime. Instead, I should be using the =
standard=20
> fgets() calls. Can anyone else chime in and verify my suspicion? It=20
> seems strange that more people have not reported errors, but the=20
> implementation of mmap() across different systems may prevent this =
error=20
> from occuring for others...
>=20

I have just committed patches to the 2.x and HEAD branches that remove=20
the mmap() functionality for reading the status, comment, and downtime=20
files, as I believe this might be the cause of problems.

Alessandro and Eli - Could you test the latest CVS snapshot and see if=20
the problem appears to be resolved? You can grab the latest CVS=20
snapshot at the following link:

http://nagios.sourceforge.net/download/ ... cvs.tar.gz


Ethan Galstad,
Nagios Developer
---
Email: [email protected]
Website: http://www.nagios.org


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, =
security?
Get stuff done quickly with pre-integrated technology to make your job =
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache =
Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dl ... 57&dat=3D=
121642
_______________________________________________
Nagios-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/lis ... gios-devel




------_=_NextPart_001_01C67C71.C1C2D1D3
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable






RE: [Nagios-devel] Internal server error in 2.3.1 =3D mmap() =
problem?






After Alessandro's post last week, I confirmed my =
issue was due to glomming the tmpfile onto a tmpfs space with all my =
other high-IO RRD's, etc.  To confirm his posts, moving the file =
back to the same local FS fixed the symptoms.

I'll build the CVS vers. this week and try it with the file back on the =
old filesystem, and post back.

Thanks for your response Ethan.

/eli

-----Original Message-----
From: [email protected] on behalf of Ethan =
Galstad
Sent: Sat 5/20/2006 12:59 PM
To: Nagios-Devel
Subject: Re: [Nagios-devel] Internal server error in 2.3.1 =3D mmap() =
problem?

Ethan Galstad wrote:
> Aha!
>
> I was thinking that the recent patches to CVS might solve this =
problem,
> but I doubt they will.  A l

...[email truncated]...


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