Some errors with SIGSEGV

Herbert Straub herbert at linuxhacker.at
Sat Mar 24 23:51:53 CET 2007


Ethan Galstad wrote:
> Hendrik Bäcker wrote:
>   
>> It is not only on SLES. I am able to reproduce it even on OpenSuSE
>> 10.x, Ubuntu 6.10 (edgy) and 6.07 (dapper).
>>
>> And yes it is only when using the default "minimal" config. After get
>> rid of the -O2 Flag it runs without any problems. A few months ago I
>> thought it could something have to do with a gcc version 4.x instead
>> of 3.x.... but this is just a thought.
>>
>> I think the list elements where deleted before they are read if there
>> is only one host (or just a few [<3] hosts).
>>     
> This is odd indeed.  I've been running Nagios 3.a1 on Ubuntu 6.10 (edgy) 
> and gcc 4.1.2 under Parallels on my MBP without problems for the last 
> day or so.  Haven't tried Nagios 2.x yet though.  I'm downloading the 
> Ubuntu fiesty beta to give a try and will see if I come across any 
> problems with Nagios 3a1 or 2.8.
>
> Anyone using Nagios on these distros without problems?  Strange that 
> more people haven't reported problems given that there are packages for 
> Nagios on Ubuntu, etc.
>
>   
I see no problems with Nagios 3.0a1 on Ubuntu Feisty Test1?( with 
updates) and on Fedora 7Test2?(with updates), both on amd64 machines 
(with one and two CPUs). I do the following:

./configure
make all
su -c "make install install-config"
# copy the check plugins from the package installation directory to 
/usr/local/nagios/libexec/
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
--> No error
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
--> No error
Makefile containing: Makefile:CFLAGS=-g -O2 -DHAVE_CONFIG_H

The configuration file nagios.cfg only enables:
cfg_file=/usr/local/nagios/etc/commands.cfg
cfg_file=/usr/local/nagios/etc/localhost.cfg

Should the error happens immediately or after some time?

A Debian package for Nagios 3.0a1 is not available, also a RPM - or I'm 
wrong?

Best Regards
Herbert Straub

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV




More information about the Developers mailing list