[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#203095: Please compile apache with -pthread



Jeff Bailey <jbailey@nisa.net> writes:

I think this is the same bug as this:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=199001

> http://www.omniorb-support.com/pipermail/omniorb-list/2001-December/019820.html
> pointed me to the solution to a problem I was having:

> mod_python and apache1 seem to interact in a way that makes omniorb
> not work.  Add the -pthread flag to:

> CONFLAGS =      -g -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread

> Seems to solve the problem.  This does not appear to affect the ABI
> (php4 and mod_python still run without recompiling)

> Note that this likely points to a deeper issue.  Without doing this,
> I don't see the hang when running with apache -X, but do in the
> regular mode.  However, when I use apache2 which appears to be
> already compiled with -pthread, I see the same thing (failure in
> regular mode, but not in -X mode)

> I have marked this at important because it causes that child to hang
> even after the server disconnects and could result in lost
> resources.

Does omniorb use threads?  At what point in the Apache lifecycle is it
loaded?

I found the problem to be that libpthread assumes that it is being
loaded in the main program, prior to forks (I forget the details).

-- 
David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/



Reply to: