Bug 18823

Summary: Apache will hang when compiled with -pthread
Product: Base System Reporter: daveg <daveg>
Component: kernAssignee: Jason Evans <jasone>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description daveg 2000-05-26 07:30:02 UTC
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.

Fix: 

Implement posix compliant threading?
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.
Comment 1 Jason Evans freebsd_committer freebsd_triage 2000-05-30 21:18:14 UTC
State Changed
From-To: open->feedback

User is running an old verion of FreeBSD; waiting to see if problems 
still exist on a newer version. 


Comment 2 Jason Evans freebsd_committer freebsd_triage 2000-05-30 21:18:14 UTC
Responsible Changed
From-To: freebsd-bugs->jasone

Over to maintainer. 

Comment 3 Jason Evans 2000-05-30 21:19:16 UTC
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
Comment 4 Jason Evans freebsd_committer freebsd_triage 2000-07-17 19:36:08 UTC
State Changed
From-To: feedback->closed

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.