You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by gerard moisset <ge...@francetelecom.com> on 2001/12/11 11:08:40 UTC

os-sunos/9036: "apache restart or stop" hangs the server if cronolog or rotatelog utils are used: Pid never die, only children are killed, and ipcs is not cleared

>Number:         9036
>Category:       os-sunos
>Synopsis:       "apache restart  or stop" hangs the server if cronolog or rotatelog utils are used: Pid never die, only children are killed, and ipcs is not cleared
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          support
>Submitter-Id:   apache
>Arrival-Date:   Tue Dec 11 02:10:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     gerar.moisset@francetelecom.com
>Release:        1.3.19(+modssl2.8.3)
>Organization:
apache
>Environment:
OS:
SunOS udgiy239 5.8 Generic_108528-10 sun4u sparc SUNW,UltraAX-e2

APACHE:
- Apache: Apache/1.3.19 (Unix) mod_ssl/2.8.3 OpenSSL/0.9.6b (engine),
- Perl5.6.0 full version (SHA), PRNG = "Entropy Gatherin Daemon EGD 0.80"
- Machine: Netra T1
- OS: SunOS udgiy239 5.8 Generic_108528-07 sun4u sparc SUNW,UltraAX-e2
(patch cluster from sunsolve)
- SSL board: CryptoSwift 200 from Rainbow Tech.

GCC:
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs
gcc version 2.95.3 20010315 (release)

compiled with:

export CC=gcc
#Ajout du 2/10/01 pour  MANPATH
export MANPATH=/usr/local/man:/usr/share/man:$MANPATH
#fin  MANPATH
export PATH=/exec/commun/prog/per560/bin:/usr/local/bin:/usr/bin:/usr/ccs/bin:$PATH
export
LD_LIBRARY_PATH=/usr/lib/:/lib:/usr/lib/x11:/usr/local/lib:$LD_LIBRARY_PATH
export EXTRA_CFLAGS="-DUSE_SYSVSEM_SERIALIZED_ACCEPT"
export CFLAGS="-DUSE_SYSVSEM_SERIALIZED_ACCEPT"
export SSL_BASE=/exec/commun/prog/install/openssl-engine-0.9.6b
export EXTRA_LIBS=-ldl

openssl-engine-o096b :

./config no-threads --prefix=/exec/commun/prog/rpa1319/sslen096b \
--openssldir=/exec/commun/prog/rpa1319/sslen096b/openssl

mm-1.1.3 :

 ./configure \
         --prefix=/exec/commun/prog/rpa1319/rpa/mm \
         --disable-shared

modssl-2.8.3-1.3.19 :

./configure \
--with-apache=../apache_1.3.19 \
--with-ssl=../openssl-engine-0.9.6b \
--with-mm=../mm-1.1.3 \
--prefix=/exec/commun/prog/rpa1319/rpa \
--enable-rule=SSL_EXPERIMENTAL \
--target=httpd \
--enable-rule=SHARED_CORE  \
--enable-module=so \
--enable-module=proxy \
--enable-module=ssl \
--enable-module=rewrite \
--enable-module=headers \
--enable-module=usertrack

modified src with sm patch :

cd /exec/commun/prog/install/apache_1.3.19/src/modules/proxy

diff proxy_http.c proxy_http.c.orig

486,487d485
/* Now add out bound headers set by other modules */
resp_hdrs = ap_overlay_tables(r->pool, r->err_headers_out,resp_hdrs);

binary httpd :

# ./httpd -V
Server version: Apache/1.3.19 (Unix)
Server built:   Oct  8 2001 16:25:57
Server's Module Magic Number: 19990320:10
Server compiled with....
 -D EAPI
 -D EAPI_MM
 -D EAPI_MM_CORE_PATH="logs/httpd.mm"
 -D HAVE_MMAP
 -D USE_MMAP_SCOREBOARD
 -D USE_MMAP_FILES
 -D USE_SYSVSEM_SERIALIZED_ACCEPT
 -D SHARED_CORE
 -D HTTPD_ROOT="/exec/commun/prog/rpa1319/rpa"
 -D SUEXEC_BIN="/exec/commun/prog/rpa1319/rpa/bin/suexec"
 -D SHARED_CORE_DIR="/exec/commun/prog/rpa1319/rpa/libexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
 -D DEFAULT_LOCKFILE="logs/httpd.lock"
 -D DEFAULT_XFERLOG="logs/access_log"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
 -D ACCESS_CONFIG_FILE="conf/access.conf"
 -D RESOURCE_CONFIG_FILE="conf/srm.conf"
#ldd httpd
        libdl.so.1 =>    /usr/lib//libdl.so.1
        libsocket.so.1 =>        /usr/lib//libsocket.so.1
        libnsl.so.1 =>   /usr/lib//libnsl.so.1
        libc.so.1 =>     /usr/lib//libc.so.1
        libmp.so.2 =>    /usr/lib//libmp.so.2
        /usr/platform/SUNW,UltraAX-e2/lib/libc_psr.so.1

>Description:
when stop or restart apache only children are killed but never the PID which is still on,

and ipcs is not cleared semaphore from Uid Apache still on
>How-To-Repeat:
very easy:
with this flags from "compiled with", turn on the TransferLog with rotatelogs or cronolog, like
TransferLog "|/path to cronolog --symlink=/path to file/ /path to file%d%m%Y/"
TransferLog "|/path to rotatelogs /path to file/ 28800"
>Fix:
i have no way to avoid to it

very urgent please..
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]