<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [Nagios-devel] Internal server error in 2.3.1 = mmap() problem?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<BR>
<P><FONT SIZE=2>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.<BR>
<BR>
I'll build the CVS vers. this week and try it with the file back on the old filesystem, and post back.<BR>
<BR>
Thanks for your response Ethan.<BR>
<BR>
/eli<BR>
<BR>
-----Original Message-----<BR>
From: nagios-devel-admin@lists.sourceforge.net on behalf of Ethan Galstad<BR>
Sent: Sat 5/20/2006 12:59 PM<BR>
To: Nagios-Devel<BR>
Subject: Re: [Nagios-devel] Internal server error in 2.3.1 = mmap() problem?<BR>
<BR>
Ethan Galstad wrote:<BR>
> Aha!<BR>
><BR>
> I was thinking that the recent patches to CVS might solve this problem,<BR>
> but I doubt they will. A little detective work revealed that a SIGBUS<BR>
> interrupt may occur if the underlying file that is mmap()ed is<BR>
> truncated. Since the status file is updated regularly, its size may be<BR>
> larger or smaller than it was previously, so this could be causing the<BR>
> SIGBUS.<BR>
><BR>
> Therefore I assume that I should *not* be mmap()ing the following files:<BR>
> status, comment, and downtime. Instead, I should be using the standard<BR>
> fgets() calls. Can anyone else chime in and verify my suspicion? It<BR>
> seems strange that more people have not reported errors, but the<BR>
> implementation of mmap() across different systems may prevent this error<BR>
> from occuring for others...<BR>
><BR>
<BR>
I have just committed patches to the 2.x and HEAD branches that remove<BR>
the mmap() functionality for reading the status, comment, and downtime<BR>
files, as I believe this might be the cause of problems.<BR>
<BR>
Alessandro and Eli - Could you test the latest CVS snapshot and see if<BR>
the problem appears to be resolved? You can grab the latest CVS<BR>
snapshot at the following link:<BR>
<BR>
<A HREF="http://nagios.sourceforge.net/download/cvs/nagios-2-x-cvs.tar.gz">http://nagios.sourceforge.net/download/cvs/nagios-2-x-cvs.tar.gz</A><BR>
<BR>
<BR>
Ethan Galstad,<BR>
Nagios Developer<BR>
---<BR>
Email: nagios@nagios.org<BR>
Website: <A HREF="http://www.nagios.org">http://www.nagios.org</A><BR>
<BR>
<BR>
-------------------------------------------------------<BR>
Using Tomcat but need to do more? Need to support web services, security?<BR>
Get stuff done quickly with pre-integrated technology to make your job easier<BR>
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<BR>
<A HREF="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</A><BR>
_______________________________________________<BR>
Nagios-devel mailing list<BR>
Nagios-devel@lists.sourceforge.net<BR>
<A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-devel">https://lists.sourceforge.net/lists/listinfo/nagios-devel</A><BR>
<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>