From nobody@FreeBSD.ORG  Thu May 25 23:28:07 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 2B1A237B542; Thu, 25 May 2000 23:28:07 -0700 (PDT)
Message-Id: <20000526062807.2B1A237B542@hub.freebsd.org>
Date: Thu, 25 May 2000 23:28:07 -0700 (PDT)
From: daveg@rblc.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: Apache will hang when compiled with -pthread
X-Send-Pr-Version: www-1.0

>Number:         18823
>Category:       kern
>Synopsis:       Apache will hang when compiled with -pthread
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    jasone
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 25 23:30:02 PDT 2000
>Closed-Date:    Mon Jul 17 11:36:08 PDT 2000
>Last-Modified:  Mon Jul 17 11:39:54 PDT 2000
>Originator:     DAve goodrich
>Release:        3.2
>Organization:
RBLC
>Environment:
FreeBSD zeus.rblc.com 3.2-RELEASE FreeBSD 3.2-RELEASE #5: Sat May 13 10:27:52 PDT 2000
sysadmin@zeus.rblc.com:/usr/src/sys/compile/ZEUS i386 [11:15:21:/usr/home/sysadmin]$
>Description:
When loading modules into Apache which are compiled with -pthread, and expect to use posix threads,
 Apache will begin to get 'stuck' and refuse to answer requests. This is evedent 
when Pache is compiled with CFLAGS=-pthread. Apache will not load multithreaded 
modules unless first recompiled with CFLAGS=-pthread. Once reompiled it cannot run
properly.
>How-To-Repeat:
Apache 1.3.12 compiled with CFLAGS=-pthread

Openlink Request broker
OpenLink Request Broker Version 2.7B (Release 3.2) as of Mon Dec 27 1999 (cvsid 00050). Compiled for FreeBSD 3.2-RELEASE
(i386-unknown-freebsd3.2) Copyright (C) OpenLink Software. 

PHP-4.0.0
System FreeBSD zeus.rblc.com 3.2-RELEASE FreeBSD 3.2-RELEASE #5: Sat May 13 10:27:52 PDT 2000
sysadmin@zeus.rblc.com:/usr/src/sys/compile/ZEUS i386 Build Date May 23 2000 Configure Command './configure'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-gd=/usr/local/lib/gd1.3' '--with-ttf=/usr/local/lib' '--with-iodbc'
'--with-openlink=/usr/local/openlink' '--enable-debug' Server API Apache

Compile PHP and Openlink as normal, compile Apache with CFLAGS=-pthread.
Connect to apache and begin requesting documents which access ODBC queries,
Apache will stop answering requests after 100 to 1000 connects and require
restarting. This does NOT happen when the same server config is run on Slackware.

I believe this an issue with kernel and posix threads. 
>Fix:
Implement posix compliant threading?

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jasone 
State-Changed-When: Tue May 30 13:18:14 PDT 2000 
State-Changed-Why:  
User is running an old verion of FreeBSD; waiting to see if problems 
still exist on a newer version. 


Responsible-Changed-From-To: freebsd-bugs->jasone 
Responsible-Changed-By: jasone 
Responsible-Changed-When: Tue May 30 13:18:14 PDT 2000 
Responsible-Changed-Why:  
Over to maintainer. 

From: Jason Evans <jasone@canonware.com>
To: daveg@rblc.com
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/18823: Apache will hang when compiled with -pthread
Date: 30 May 2000 13:19:16 -0700

 On Thu, May 25, 2000 at 11:28:07PM -0700, daveg@rblc.com wrote:
 > >Environment:
 > FreeBSD zeus.rblc.com 3.2-RELEASE FreeBSD 3.2-RELEASE #5: Sat May 13 10:27:52 PDT 2000
 > sysadmin@zeus.rblc.com:/usr/src/sys/compile/ZEUS i386 [11:15:21:/usr/home/sysadmin]$
 > >Description:
 > When loading modules into Apache which are compiled with -pthread, and expect to use posix threads,
 >  Apache will begin to get 'stuck' and refuse to answer requests. This is evedent 
 > when Pache is compiled with CFLAGS=-pthread. Apache will not load multithreaded 
 > modules unless first recompiled with CFLAGS=-pthread. Once reompiled it cannot run
 > properly.
 
 A significant number of fixes and performance enhancements have been made
 to libc_r since 3.2-RELEASE.  Please try a newer version of FreeBSD
 (RELENG_3, or preferrably RELENG_4).  Please let me know if you still run
 into problems.
 
 Thanks,
 Jason
 
State-Changed-From-To: feedback->closed 
State-Changed-By: jasone 
State-Changed-When: Mon Jul 17 11:36:08 PDT 2000 
State-Changed-Why:  
There has been no feedback over the past 6 weeks to indicate that this PR 
represents a real problem in RELENG_3 or RELENG_4. 
>Unformatted:
