Re: [Nagios-devel] Internal server error in 2.3.1 = mmap()
Posted: Mon May 22, 2006 5:05 am
This is a multi-part message in MIME format.
--------------090601010708010406070909
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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: [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 = 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.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=lnk ... dat=121642
>
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>
>
>
--
--------------090601010708010406070909
Content-Type: multipart/related;
boundary="------------080100080004060705030905"
--------------080100080004060705030905
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
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:
RE: [Nagios-devel] Internal server error in 2.3.1 = mmap()
problem?
[email protected] on behalf of Etha
--------------090601010708010406070909
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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: [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 = 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.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=lnk ... dat=121642
>
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>
>
>
--
--------------090601010708010406070909
Content-Type: multipart/related;
boundary="------------080100080004060705030905"
--------------080100080004060705030905
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
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:
RE: [Nagios-devel] Internal server error in 2.3.1 = mmap()
problem?
[email protected] on behalf of Etha