From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Sep 12 10:50:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B4EF151A for ; Thu, 12 Sep 2013 10:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 95BD52823 for ; Thu, 12 Sep 2013 10:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8CAo0Bi046265 for ; Thu, 12 Sep 2013 10:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8CAo0ja046256; Thu, 12 Sep 2013 10:50:00 GMT (envelope-from gnats) Resent-Date: Thu, 12 Sep 2013 10:50:00 GMT Resent-Message-Id: <201309121050.r8CAo0ja046256@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Trevor Caira Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8FE456A for ; Thu, 12 Sep 2013 10:40:58 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 64AA827A3 for ; Thu, 12 Sep 2013 10:40:58 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8CAewjI068815 for ; Thu, 12 Sep 2013 10:40:58 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8CAewHV068806; Thu, 12 Sep 2013 10:40:58 GMT (envelope-from nobody) Message-Id: <201309121040.r8CAewHV068806@oldred.freebsd.org> Date: Thu, 12 Sep 2013 10:40:58 GMT From: Trevor Caira To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/182030: [patch] mod_wsgi3 segfaults under apache 2.4 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Sep 2013 10:50:00 -0000 >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: