Internal server error in 2.3.1 = mmap() problem?

Alessandro Ren alessandro.ren at opservices.com.br
Mon May 22 15:05:08 CEST 2006


    I am also using tmpfs  to put some files, but just nagios files, 
like objects cache and status.log.
    I will try the new CVS and let you know what happens.

    []s.

Eli Stair wrote:
>
>
> 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: nagios-devel-admin at lists.sourceforge.net 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 = 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 little detective work revealed that a SIGBUS
> > interrupt may occur if the underlying file that is mmap()ed is
> > truncated.  Since the status file is updated regularly, its size may be
> > larger or smaller than it was previously, so this could be causing the
> > SIGBUS.
> >
> > Therefore I assume that I should *not* be mmap()ing the following files:
> > status, comment, and downtime.  Instead, I should be using the standard
> > fgets() calls.  Can anyone else chime in and verify my suspicion?  It
> > seems strange that more people have not reported errors, but the
> > implementation of mmap() across different systems may prevent this error
> > from occuring for others...
> >
>
> I have just committed patches to the 2.x and HEAD branches that remove
> the mmap() functionality for reading the status, comment, and downtime
> files, as I believe this might be the cause of problems.
>
> Alessandro and Eli - Could you test the latest CVS snapshot and see if
> the problem appears to be resolved?  You can grab the latest CVS
> snapshot at the following link:
>
> http://nagios.sourceforge.net/download/cvs/nagios-2-x-cvs.tar.gz
>
>
> Ethan Galstad,
> Nagios Developer
> ---
> Email: nagios at nagios.org
> 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=lnk&kid=120709&bid=263057&dat=121642 
> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
>
>

-- 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20060522/4f4a806b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: assinatura-email-alessandro.jpg
Type: image/jpeg
Size: 12140 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20060522/4f4a806b/attachment.jpg>


More information about the Developers mailing list