From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bill Antoniadis Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Tru64 5.1A and Apache 1.3.28 with new OpenSSL Date: Wed, 08 Oct 2003 14:52:37 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3F845CF5.4020105@brisnet.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1065639204 3205 80.91.224.253 (8 Oct 2003 18:53:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2003 18:53:24 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Oct 08 20:53:22 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1A7JR4-0005pp-00 for ; Wed, 08 Oct 2003 20:53:22 +0200 Original-Received: (qmail 9576 invoked by uid 5); 8 Oct 2003 18:53:09 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 9555 invoked by uid 49493); 8 Oct 2003 18:53:08 -0000 Original-Received: from sysadmin@horseracinginfo.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-5.1/5.0):. Processed in 0.743828 secs); 08 Oct 2003 18:53:08 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 8 Oct 2003 18:53:07 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HMG00DPCCGGNZ@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 08 Oct 2003 14:53:05 -0400 (EDT) Original-Received: from asl.horseracinginfo.com (asl.horseracinginfo.com [65.169.168.130]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HMG00F27CFZQU@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 08 Oct 2003 14:52:47 -0400 (EDT) Original-Received: from [192.168.51.6] (helo=mail.horseracinginfo.com) by asl.horseracinginfo.com with esmtp (Exim 4.22) id 1A7JUy-0002cJ-9Z for tru64-unix-managers@ornl.gov; Wed, 08 Oct 2003 14:57:24 -0400 Original-Received: from brisnet.com (billy.horseracinginfo.com [192.168.51.72]) by mail.horseracinginfo.com (8.11.6/8.11.6) with ESMTP id h98Iqcl23713 for ; Wed, 08 Oct 2003 14:52:38 -0400 Original-To: tru64-unix-managers@ornl.gov X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Scan-Signature: 5c6b75bb83975d62190c5372632d2a39 Xref: main.gmane.org gmane.os.tru64.managers:5532 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5532 Hello, It appears that my woes were caused by an Apache bug. Following is my original question and the helpful response (solution) which I received from Richard Jackson (whom I extend my gratitude): Regards, Bill Antoniadis >Bill Antoniadis writes: > > >>> >>> Hello, >>> >>> Has anyone else experienced problems with OpenSSL 0.9.7c, Apache 1.3.28 >>> and modSSL 2.8.15? I have installed the aforementioned on three Tru64 >>> 5.1A (patch kit 5) boxes and I see Apache create a lot of defunct >>> processes. Eventually, Apache can no longer spawn any processes as the >>> zombies exceed "max_proc_per_user". I am trying to track down if this >>> is an O/S related issue or OpenSSL-Apache-modSSL issue. >>> >>> Regards, >>> Bill Antoniadis >>> >>> >>> >> >> > >Yes, there is a bug in the apache code. This is a known issue but when >I was investigating this issue in September 2003 the Apache developers >were still trying to develop a fix. These are my notes... > >fix Apache 1.3.28 + modSSL due to CGI defunct processes >The change tracker application is leaving behind defunct >processes and it is assumed due to a bug introduced in Apache 1.3.28 >http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21737. Note this >patch, id=21737, did not stop the defunct processes. Instead, I >used the solutions suggested by Ralf Engelschall, >http://marc.theaimsgroup.com/?l=apache-httpd-dev&m=105952652425849&w=2 >. cd /usr/local/src/apache_1.3.28 >. cp -p src/main/alloc.c src/main/alloc.c.20030904 >. modify src/main/alloc.c >. make >& make.log2 & >. strip src/httpd >. cp -p src/httpd /usr/local/apache/bin/httpd.new >. cd /usr/local/apache/bin >. (mv httpd httpd.20030904;mv httpd.new httpd) >. /sbin/init.d/https-apache stop >. /sbin/init.d/https-apache start >. cd /usr/local/src/apache_1.3.28/src/main >. diff -c alloc.c.20030904 alloc.c >--------------------------------------------- >*** alloc.c.20030904 Thu Sep 4 12:10:42 2003 >--- alloc.c Thu Sep 4 14:22:35 2003 >*************** >*** 3096,3107 **** > if ((p->kill_how == kill_after_timeout) > || (p->kill_how == kill_only_once)) { > /* Subprocess may be dead already. Only need the timeout if not. */ >! if (ap_os_kill(p->pid, SIGTERM) == -1) { >! p->kill_how = kill_never; >! } >! else { >! need_timeout = 1; >! } > } > else if (p->kill_how == kill_always) { > kill(p->pid, SIGKILL); >--- 3096,3103 ---- > if ((p->kill_how == kill_after_timeout) > || (p->kill_how == kill_only_once)) { > /* Subprocess may be dead already. Only need the timeout if not. */ >! ap_os_kill(p->pid, SIGTERM); >! need_timeout = 1; > } > else if (p->kill_how == kill_always) { > kill(p->pid, SIGKILL); >--------------------------------------------- > > > -- Regards, /~\ The ASCII Richard Jackson \ / Ribbon Campaign Computer > Systems Engineer, X Against HTML Information Technology Unit, > Technology Systems Division / \ Email! Enterprise Servers and > Operations Department George Mason University, Fairfax, Virginia >