Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2015 19:43:40 +0000 (UTC)
From:      Lars Engels <lme@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r376495 - in head/net-mgmt/icinga2: . files
Message-ID:  <201501071943.t07Jhe7b071090@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lme
Date: Wed Jan  7 19:43:40 2015
New Revision: 376495
URL: https://svnweb.freebsd.org/changeset/ports/376495
QAT: https://qat.redports.org/buildarchive/r376495/

Log:
  - Fix segfault at startup by hardcoding "--no-stack-rlimit" in lib/base/application.cpp
  - Bump PORTREVISION
  
  Noticed by:	ohauer

Added:
  head/net-mgmt/icinga2/files/patch-lib_base_application.cpp   (contents, props changed)
Modified:
  head/net-mgmt/icinga2/Makefile

Modified: head/net-mgmt/icinga2/Makefile
==============================================================================
--- head/net-mgmt/icinga2/Makefile	Wed Jan  7 19:19:31 2015	(r376494)
+++ head/net-mgmt/icinga2/Makefile	Wed Jan  7 19:43:40 2015	(r376495)
@@ -2,6 +2,7 @@
 
 PORTNAME=	icinga2
 DISTVERSION=	2.2.2
+PORTREVISION=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	http://github.com/Icinga/${PORTNAME}/archive/v${DISTVERSION}.tar.gz?dummy=/
 

Added: head/net-mgmt/icinga2/files/patch-lib_base_application.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/icinga2/files/patch-lib_base_application.cpp	Wed Jan  7 19:43:40 2015	(r376495)
@@ -0,0 +1,14 @@
+--- lib/base/application.cpp.orig	2015-01-07 20:24:52.914349279 +0100
++++ lib/base/application.cpp	2015-01-07 20:28:25.822333330 +0100
+@@ -216,10 +216,7 @@
+ 		rl.rlim_max = RLIM_INFINITY;
+ 	}
+ 
+-	if (set_stack_rlimit)
+-		rl.rlim_cur = 256 * 1024;
+-	else
+-		rl.rlim_cur = rl.rlim_max;
++	rl.rlim_cur = rl.rlim_max;
+ 
+ 	if (setrlimit(RLIMIT_STACK, &rl) < 0)
+ 		Log(LogNotice, "Application", "Could not adjust resource limit for stack size (RLIMIT_STACK)");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501071943.t07Jhe7b071090>