Re: Apache2 in threaded mode for FreeBSD ...
Hi Daniel, Port is /usr/ports/www/apache2, compiled with: make WITH_MPM=perchild FORCE_THREADING_MPM=yes install Note that this problem happens with ALL threaded MPM's. bash-2.05a# ps -aux | grep httpd root 96690 0.0 0.4 5800 3944 ?? Ss2:13PM 0:00.01 httpd www96691 0.0 0.4 5800 3980 ?? S 2:13PM 0:00.00 httpd bash-2.05a# telnet localhost 80 Trying ::1... Connected to localhost. Escape character is '^]'. GET / HTTP/1.0 and there it hangs. Gdb only shows: PID 96690 #0 0x282b2808 in _thread_sys_poll () from /usr/lib/libc_r.so.4 #1 0x282b177e in thread_kern_poll (wait_reqd=2) at /usr/src/lib/libc_r/uthread/uthread_kern.c:829 #2 0x282b0dea in _thread_kern_scheduler () at /usr/src/lib/libc_r/uthread/uthread_kern.c:482 #3 0x0 in ?? () PID 96691 #0 0x282b2808 in _thread_sys_poll () from /usr/lib/libc_r.so.4 #1 0x282b177e in thread_kern_poll (wait_reqd=2) at /usr/src/lib/libc_r/uthread/uthread_kern.c:829 #2 0x282b0dea in _thread_kern_scheduler () at /usr/src/lib/libc_r/uthread/uthread_kern.c:482 #3 0x0 in ?? () Martin PS: I seem to get the same deadlock if in OpenOffice if I open a website and try to edit it ... Martin Martin Blapp, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> -- ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH Phone: +41 061 826 93 00: +41 61 826 93 01 PGP: PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E -- To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Apache2 in threaded mode for FreeBSD ...
On Fri, Jun 21, 2002 at 02:25:18PM +0200, Martin Blapp wrote: > > Hi Daniel, > > Port is /usr/ports/www/apache2, compiled with: > > make WITH_MPM=perchild FORCE_THREADING_MPM=yes install > > Note that this problem happens with ALL threaded MPM's. > > bash-2.05a# ps -aux | grep httpd > root 96690 0.0 0.4 5800 3944 ?? Ss2:13PM 0:00.01 httpd > www96691 0.0 0.4 5800 3980 ?? S 2:13PM 0:00.00 httpd > > bash-2.05a# telnet localhost 80 > Trying ::1... > Connected to localhost. > Escape character is '^]'. > GET / HTTP/1.0 > > and there it hangs. > > Gdb only shows: > > PID 96690 > > #0 0x282b2808 in _thread_sys_poll () from /usr/lib/libc_r.so.4 > #1 0x282b177e in thread_kern_poll (wait_reqd=2) > at /usr/src/lib/libc_r/uthread/uthread_kern.c:829 > #2 0x282b0dea in _thread_kern_scheduler () > at /usr/src/lib/libc_r/uthread/uthread_kern.c:482 > #3 0x0 in ?? () That's the normal condition if it beleaves no thread is runnable. The question is which of the following aply: 1. an event to a a thread into running state was missed. 2. apache2 deadlocked itself because it makes wrong assumptions about timing, ... 3. something else. If the apache team could exclude case 2 for shure they should be able to tell what went wrong with FreeBSDs implementation. At the beginning of the year I had an apache2 with mod_php4 running on a 4.5-RC1 alpha, but it wasted CPU cycles because one thread was continuously runnable so I had to revert back to apache1. -- B.Walter COSMO-Project http://www.cosmo-project.de [EMAIL PROTECTED] Usergroup [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: Apache2 in threaded mode for FreeBSD ...
On Fri, 21 Jun 2002, Martin Blapp wrote: > > Hi Daniel, > > Port is /usr/ports/www/apache2, compiled with: > > make WITH_MPM=perchild FORCE_THREADING_MPM=yes install > > Note that this problem happens with ALL threaded MPM's. This doesn't help me. I don't have the time to wade through Apache source and figure out what it's trying to do. -- Dan Eischen To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message