Mantis - nagios
Viewing Issue Advanced Details
4378 regular use crash always 2010-03-26 21:46 2011-09-18 21:23
ois_unix  
ja  
normal  
closed  
fixed  
none    
none  
0004378: Perl 5.10 (csw) package breaks Nagios
When updating perl to 5.10, Nagios starts to throw "segmentation violations" and crashes. However, the SMF on Solaris continues to restart the process unsuccessfully.
Downgrading the Perl package to 5.8.8 solves the problem.
Issue History
2010-03-26 21:46 ois_unix New Issue
2010-03-28 14:08 ja Status new => assigned
2010-03-28 14:08 ja Assigned To => ja
2010-03-28 14:10 ja Note Added: 0007771
2010-03-28 14:10 ja Status assigned => feedback
2010-03-29 14:42 ois_unix Note Added: 0007778
2010-04-11 22:05 ja Note Added: 0007852
2010-04-18 21:26 waynehendricks Note Added: 0007884
2010-06-28 03:59 phalenor Note Added: 0008069
2010-06-28 09:49 dam Note Added: 0008070
2010-09-06 09:50 dm26 Issue Monitored: dm26
2011-03-11 12:00 wimvandijck Note Added: 0008887
2011-09-18 21:22 ja Note Added: 0009273
2011-09-18 21:23 ja Note Added: 0009274
2011-09-18 21:23 ja Status feedback => closed
2011-09-18 21:23 ja Resolution open => fixed

Notes
(0007771)
ja   
2010-03-28 14:10   
I checked it on Solaris 10 x86 and everything was fine with Nagios and Perl 5.10. Are you using Sparc?

Meanwhile I'll try to build a new package with the current Nagios version. It might take some time.
(0007778)
ois_unix   
2010-03-29 14:42   
After we updated all packages with the pkg-get -u command, Nagios started failing on our Solaris 10x86-64 platform. We then tried it on a SPARC Solaris 10 machine, but the behavior was the same. When we downgraded Perl Nagios started working again. Thanks.
(0007852)
ja   
2010-04-11 22:05   
Please check the Nagios package in experimental:

http://mirror.opencsw.org/experimental.html#ja [^]

Be aware, that the config files moved to /etc/opt/csw/nagios - take a lookt at
http://wiki.opencsw.org/nagios [^]
for further instructions. You need to move your configs manually and change the path names in your config files to the new location.
(0007884)
waynehendricks   
2010-04-18 21:26   
Confirmed this behavior on Solaris 10 Sparc T2000:

$ pstack core | more
core 'core' of 17227: /opt/csw/nagios/bin/nagios /opt/csw/nagios/etc/nagios.cfg
----------------- lwp# 1 / thread# 1 --------------------
 0004aa3c process_check_result_queue (0, fec30400, baba8, 1d3378, 8000, f000) + 8c
 0002176c reap_check_results (b5000, 0, 93470, 0, 8a800, 8a800) + 44
 00038f50 handle_timed_event (1d3378, 1, 8, 1d3378, 5, 93000) + 3a0
 00038660 event_execution_loop (b5400, 1d2d20, b5400, 4bcb53f9, 8, 92c00) + 248
 0001f244 main (b5000, b52e8, ffbffba0, b5508, b5458, b5000) + 9f4
 0001e430 _start (0, 0, 0, 0, 0, 0) + 108
----------------- lwp# 2 / thread# 2 --------------------
 ff04c2f0 __pollsys (fe97bf84, 1, fe979f10, 0, 0, 0) + 8
 fefe2c24 poll (fe97bf84, 1, 1f4, 10624c00, 773594, 1dcd6500) + 7c
 0004ce94 command_file_worker_thread (0, fe97c000, 1, 0, b9400, 3d000) + 74
 ff048a20 _lwp_start (0, 0, 0, 0, 0, 0)

$ pflags core
core 'core' of 17227: /opt/csw/nagios/bin/nagios /opt/csw/nagios/etc/nagios.cfg
        data model = _ILP32 flags = MSACCT|MSFORK
 /1: flags = 0
        sigmask = 0xffffbefc,0x0000ffff cursig = SIGSEGV
 /2: flags = STOPPED pollsys(0x4,0x1,0xfe979f10,0x0)
        why = PR_SUSPENDED
        sigmask = 0xffbffeff,0x0000fff7
(0008069)
phalenor   
2010-06-28 03:59   
Just confirmed that the 3.2.1 package in experimental fixes the incompatibility with the new perl 5.10 on Solaris 10 SPARC.
(0008070)
dam   
2010-06-28 09:49   
Ok, Jürgen, would you please rebuild the Nagios packages to depend on pm_rrd and put it in /home/experimental/rrdtool so we can release everything at once?
(0008887)
wimvandijck   
2011-03-11 12:00   
What's the status on this? Are we going to see a recent Nagios version in the stable branch soon? We've been running 3.2.1 from the (then) experimental build, for almost a year now without any problems. However, updating the other Opencsw packages has become almost impossible, as the system tries to downgrade nagios as it upgrades the other packages... :)
(0009273)
ja   
2011-09-18 21:22   
Nagios 3.2.3 is published in the unstable branch. It was built against perl 5.10 and there should no problem with crashing.

When installing the new package, please follow the messages and the end of the install process. The config files will be moved to a new location, so please make a backup before you upgrade.
(0009274)
ja   
2011-09-18 21:23   
A new package is available in "unstable", built against perl 5.10