__Unofficial__ patch for embedded Perl Interpeter support in Nagios 1.1 (fixes SEGV on start-up with thread

Ethan Galstad nagios at nagios.org
Mon Jun 23 07:24:16 CEST 2003


Thanks for the patches!  I've applied these to CVS (both 1.x and HEAD 
branches).


On 21 Jun 2003 at 16:14, Stanley Hopcroft wrote:

> Dear Ladies and Gentlemen,
> 
> The Nagios kibutzers take great pleasure in announcing an _unofficial_
> patch for embedded Perl support in Nagios 1.1.
> 
> The patch, while not extensively tested, _should_ fix the SEGV on
> starting up (for any args, -h -m or -v) of a Nagios 1.1 configured
> with an embedded Perl interpreter (for greater efficiency in executing
> Perl plugins).
> 
> Details below.
> 
> Status
> 
> 	Unofficial, unsactioned, and unsupported (vi) patch for SEGVs on
> start-up of Nagios built with an embedded Perl interpreter.
> 
> 	The SEGV occurs right at start-up and is associated with
> libperl.so (it may occur at the first printf in the main program). It
> only occurs with threaded Perls that are typically shipped with systems
> having good pthread OS support.
> 
> 	Affected systems include
> 
> 	RH 8 and 9
> 	Mandrake 9 ( 2.4.19-16mdk )
> 	Suse     8
> 	Debian   ?
> 
> 	Unaffected systems include
> 	
> 	FreeBSD RELENG_4 (v4 Release and Stable branches)
> 
> 	If you have a Linux or Solaris system with a Perl greater than 5.6.1 and
> you want an embedded Perl Nag, you need this patch.
> 
> Credits
> 
> 	Ethan Galstad
> 	Reuben Farrelly
> 
> 	I believe the patch was originally the work of Mr Reuben
> Farrelly from Suse (the Suse 8 Nag 'package' has this problem fixed).
> 
> Feedback
> 
> 	S Hopcroft
> 
> Flames
> 	S Hopcroft
> 
> Testing
> 	compiled and run on Mandrake 9/Perl 5.8.0
> 	compiled         on FreeBSD 4.8/Perl 5.8.0 {unthreaded]
>         compiled and run on FreeBSD 4.7/Perl 5.005 [unthreaded]
> 
> Notes
> 
> 	Should apply to Nag 1.0 but unchecked.
> 
> Patch
> 	attached.
> 
> Yours sincerely.
> 
> 
> 
>  -- 
> ------------------------------------------------------------------------
> Stanley Hopcroft
> ------------------------------------------------------------------------
> 
> '...No man is an island, entire of itself; every man is a piece of the
> continent, a part of the main. If a clod be washed away by the sea,
> Europe is the less, as well as if a promontory were, as well as if a
> manor of thy friend's or of thine own were. Any man's death diminishes
> me, because I am involved in mankind; and therefore never send to know
> for whom the bell tolls; it tolls for thee...'
> 
> from Meditation 17, J Donne.
> 



Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list