Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 May 2000 23:28:07 -0700 (PDT)
From:      daveg@rblc.com
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/18823: Apache will hang when compiled with -pthread
Message-ID:  <20000526062807.2B1A237B542@hub.freebsd.org>

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

>Number:         18823
>Category:       kern
>Synopsis:       Apache will hang when compiled with -pthread
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 25 23:30:02 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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