Skip site navigation (1)Skip section navigation (2)
Date:      5 Feb 2003 09:02:13 -0000
From:      Alex Rodioukov <simuran@shaw.ca>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        alane@FreeBSD.org
Subject:   ports/47943: python21 patch to increase the default thread stack size.
Message-ID:  <20030205090213.34406.qmail@gurudom.ramax.com>

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

>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




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