Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Nov 2010 13:31:39 +0100 (CET)
From:      Frank Wall <fw@moov.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/151932: [NEW PORT] www/mod_whatkilledus: Logs a report when a child process crashes
Message-ID:  <201011041231.oA4CVdWd095737@boron.inotronic-intern.de>
Resent-Message-ID: <201011041250.oA4Co42W012728@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         151932
>Category:       ports
>Synopsis:       [NEW PORT] www/mod_whatkilledus: Logs a report when a child process crashes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 04 12:50:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Frank Wall
>Release:        FreeBSD 7.1-RELEASE-p11 amd64
>Organization:
>Environment:
System: FreeBSD 7.1-RELEASE-p11 FreeBSD 7.1-RELEASE-p11 #0: Fri Feb 26 19:22:31 UTC 2010
>Description:
mod_whatkilledus is an experimental module for Apache httpd 2.x which
tracks the current request and logs a report of the active request
when a child process crashes.

Requirements: Apache httpd >= 2.0.49 must be built with the 
--enable-exception-hook configure option and mod_so enabled.

Activating mod_whatkilledus:

  1. Load it like any other DSO.
	LoadModule whatkilledus_module modules/mod_whatkilledus.so

  2. Enable exception hooks for modules like mod_whatkilledus:
	EnableExceptionHook On

  3. Choose where the report on current activity should be written. If
     you want it reported to some place other than the error log, use the
     WhatKilledUsLog directive to specify a fully-qualified filename for
     the log.  Note that the web server user id (e.g., "nobody") must
     be able to create or append to this log file, as the log file is
     not opened until a crash occurs.

WWW: http://people.apache.org/~trawick/exception_hook.html

Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:

--- ap22-mod_whatkilledus-2.0.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mod_whatkilledus
#	mod_whatkilledus/Makefile
#	mod_whatkilledus/distinfo
#	mod_whatkilledus/pkg-descr
#
echo c - mod_whatkilledus
mkdir -p mod_whatkilledus > /dev/null 2>&1
echo x - mod_whatkilledus/Makefile
sed 's/^X//' >mod_whatkilledus/Makefile << '4a42bc2a0bd98a948c002a8d69b6563d'
X# New ports collection makefile for:   	mod_whatkilledus
X# Date created:        			Thu Nov  4 10:08:27 CET 2010
X# Whom:                			Frank Wall <fw@moov.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mod_whatkilledus
XPORTVERSION=	2.0
XCATEGORIES=	www
XMASTER_SITES=	http://people.apache.org/~trawick/ \
X		http://dl.moov.de/freebsd/${PORTNAME}/
XDISTFILES=	mod_whatkilledus.c test_char.h
XEXTRACT_ONLY=	# empty
X
XMAINTAINER=	fw@moov.de
XCOMMENT=	Logs a report when a child process crashes
X
XMAKE_JOBS_SAFE=	yes
X
XUSE_APACHE=	20+
XAP_FAST_BUILD=	YES
XAP_GENPLIST=	YES
XSHORTMODNAME=	whatkilledus
X
XWRKSRC=		${WRKDIR}
X
Xdo-extract:
X	${MKDIR} ${WRKSRC}
X	${CP} ${DISTDIR}/mod_whatkilledus.c ${WRKSRC}
X	${CP} ${DISTDIR}/test_char.h ${WRKSRC}
X
Xpre-build:
X	@${ECHO_MSG} "*********************** PLEASE NOTE! ***********************"
X	@${ECHO_MSG} "Apache httpd must be built with the --enable-exception-hook"
X	@${ECHO_MSG} "configure option and mod_so enabled."
X	@${ECHO_MSG} "*********************** PLEASE NOTE! ***********************"
X
X.include <bsd.port.mk>
4a42bc2a0bd98a948c002a8d69b6563d
echo x - mod_whatkilledus/distinfo
sed 's/^X//' >mod_whatkilledus/distinfo << '7c0a7118a7e3940bd64d3c921f532a7d'
XSHA256 (mod_whatkilledus.c) = 28c5c7b2b756513d31a87d707e5878d46795d125e5eb38d913a5d1713d203c90
XSIZE (mod_whatkilledus.c) = 12274
XSHA256 (test_char.h) = 424d330cc397e98cff333f33a3b00ef4abf84e405e26aedd898d293f3d12b590
XSIZE (test_char.h) = 1094
7c0a7118a7e3940bd64d3c921f532a7d
echo x - mod_whatkilledus/pkg-descr
sed 's/^X//' >mod_whatkilledus/pkg-descr << 'd2c7a4b8a763dc5bf63456fdeafac36c'
Xmod_whatkilledus is an experimental module for Apache httpd 2.x which
Xtracks the current request and logs a report of the active request
Xwhen a child process crashes.
X
XRequirements: Apache httpd >= 2.0.49 must be built with the 
X--enable-exception-hook configure option and mod_so enabled.
X
XActivating mod_whatkilledus:
X
X  1. Load it like any other DSO.
X	LoadModule whatkilledus_module modules/mod_whatkilledus.so
X
X  2. Enable exception hooks for modules like mod_whatkilledus:
X	EnableExceptionHook On
X
X  3. Choose where the report on current activity should be written. If
X     you want it reported to some place other than the error log, use the
X     WhatKilledUsLog directive to specify a fully-qualified filename for
X     the log.  Note that the web server user id (e.g., "nobody") must
X     be able to create or append to this log file, as the log file is
X     not opened until a crash occurs.
X
XWWW: http://people.apache.org/~trawick/exception_hook.html
d2c7a4b8a763dc5bf63456fdeafac36c
exit
--- ap22-mod_whatkilledus-2.0.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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