Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2013 10:40:58 GMT
From:      Trevor Caira <trevor@bitba.se>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/182030: [patch] mod_wsgi3 segfaults under apache 2.4
Message-ID:  <201309121040.r8CAewHV068806@oldred.freebsd.org>
Resent-Message-ID: <201309121050.r8CAo0ja046256@freefall.freebsd.org>

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

>Number:         182030
>Category:       ports
>Synopsis:       [patch] mod_wsgi3 segfaults under apache 2.4
>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 Sep 12 10:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Trevor Caira
>Release:        FreeBSD 9.2-RC3
>Organization:
Bitbase LLC
>Environment:
System: FreeBSD tour 9.2-RC3 FreeBSD 9.2-RC3 #0 r254795: Sat Aug 24 20:25:04 UTC 2013 root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Hello world WSGI application segfaults using process groups (WSGIProcessGroup) under apache 2.4.

Documented in https://groups.google.com/forum/#!topic/modwsgi/yNdFjWrqgJw
>How-To-Repeat:

>Fix:
Patch committed upstream. There has not been an official release incorporating this patch, but debian and ubuntu both ship patched version.

I have attached a patch which bumps the PORTREVISION and includes the patch from upstream.

Patch attached with submission follows:

Index: Makefile
===================================================================
--- Makefile	(revision 327052)
+++ Makefile	(working copy)
@@ -2,6 +2,7 @@
 
 PORTNAME=	mod_wsgi
 PORTVERSION=	3.4
+PORTREVISION=	1
 CATEGORIES=	www python
 MASTER_SITES=	GOOGLE_CODE
 PKGNAMEPREFIX=	${APACHE_PKGNAMEPREFIX}
@@ -11,7 +12,6 @@
 
 LICENSE=	AL2
 
-
 #LATEST_LINK=	mod_wsgi
 CONFLICTS=	${PKGNAMEPREFIX}mod_wsgi-2.* mod_wsgi-2.*
 
Index: files/patch-mod__wsgi.c
===================================================================
--- files/patch-mod__wsgi.c	(revision 0)
+++ files/patch-mod__wsgi.c	(working copy)
@@ -0,0 +1,16 @@
+--- mod_wsgi.c.orig	2012-08-22 23:10:44.000000000 -0400
++++ mod_wsgi.c	2013-09-12 06:29:36.718830524 -0400
+@@ -10600,7 +10600,13 @@
+      * will add their own input/output filters to the chain.
+      */
+ 
++#if AP_MODULE_MAGIC_AT_LEAST(20110619,0)
++    /* For 2.4 a NULL sbh pointer should work. */
++    sbh = NULL;
++#else
++    /* For 2.2 a dummy sbh pointer is needed. */
+     ap_create_sb_handle(&sbh, p, -1, 0);
++#endif
+ 
+     c = (conn_rec *)apr_pcalloc(p, sizeof(conn_rec));
+ 

Property changes on: files/patch-mod__wsgi.c
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property


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



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