From owner-freebsd-ports-bugs Wed Feb 5 1:10:16 2003 Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0730D37B401 for ; Wed, 5 Feb 2003 01:10:14 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6493843E4A for ; Wed, 5 Feb 2003 01:10:12 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h159ACNS021749 for ; Wed, 5 Feb 2003 01:10:12 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h159ACwL021748; Wed, 5 Feb 2003 01:10:12 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B2B537B401 for ; Wed, 5 Feb 2003 01:02:16 -0800 (PST) Received: from gurudom.ramax.com (h68-145-192-28.cg.shawcable.net [68.145.192.28]) by mx1.FreeBSD.org (Postfix) with SMTP id A44A343F93 for ; Wed, 5 Feb 2003 01:02:14 -0800 (PST) (envelope-from alex@gurudom.ramax.com) Received: (qmail 34407 invoked by uid 1000); 5 Feb 2003 09:02:13 -0000 Message-Id: <20030205090213.34406.qmail@gurudom.ramax.com> Date: 5 Feb 2003 09:02:13 -0000 From: Alex Rodioukov To: FreeBSD-gnats-submit@FreeBSD.org Cc: alane@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/47943: python21 patch to increase the default thread stack size. Sender: owner-freebsd-ports-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 47943 >Category: ports >Synopsis: python21 patch to increase the default thread stack size. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 05 01:10:11 PST 2003 >Closed-Date: >Last-Modified: >Originator: Alex Rodioukov >Release: FreeBSD 4.5-RELEASE i386 >Organization: >Environment: System: FreeBSD netopia.io.sys 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Feb 4 13:21:59 MST 2002 root@bismark.io.sys:/usr/obj/usr/src/sys/NETOPIA i386 >Description: Included patch written by PieterB fixes an issue with Zope/ZWiki often crashing with SIGBUS/SIGSEGV. I've tested it myself on 4-stable and it seems to fix the problem. Following URLs include more information: http://collector.zope.org/Zope/560 http://zwiki.org/IssueNo0226 >How-To-Repeat: >Fix: diff -ruN Python/thread_pthread.h.orig Python/thread_pthread.h --- Python/thread_pthread.h.orig Wed Feb 5 01:26:59 2003 +++ Python/thread_pthread.h Wed Feb 5 01:28:32 2003 @@ -128,6 +128,10 @@ { pthread_t th; int success; + pthread_attr_t pta; + pthread_attr_init(&pta); + pthread_attr_setstacksize(&pta, (1<<17)); + #ifdef PTHREAD_SYSTEM_SCHED_SUPPORTED pthread_attr_t attrs; #endif @@ -156,7 +160,7 @@ #ifdef PTHREAD_SYSTEM_SCHED_SUPPORTED &attrs, #else - (pthread_attr_t*)NULL, + (pthread_attr_t*)&pta, #endif (void* (*)(void *))func, (void *)arg >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message