tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46352] Apache 1.3 crashes inside mod_jk.so with selfsigned SSL cert
Date Fri, 05 Dec 2008 15:55:50 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46352





--- Comment #2 from Patrick Middleton <patrick@onestep.co.uk>  2008-12-05 07:55:49 PST
---
Yes, I built mod_jk.so myself -- Apple doesn't supply this with MacOSX, only
with MacOSX Server, and unlike mod_ssl the source used is not available via
www.opensource.apple.com/darwinsource/ .

The configure command used (mea culpa, should have been in the original
submission) was (ad lib http://developer.apple.com/technotes/tn2005/tn2137.html
) 

env CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch
ppc" \
  LDFLAGS="-arch i386 -arch ppc" \
  ./configure \
  --disable-dependency-tracking \
  --enable-EAPI \
  --with-apxs=/usr/sbin/apxs



Create a coredump on MacOSX for debugging purposes?  Never seen that done. 
Attaching with gdb would work if I could tell which httpd server process was
going to handle the request.  I tried logging with jk_log, but the process was
crashing before the log was flushed.  I added this:

     if (r) {
        int myHandle = open("/tmp/log.txt", O_WRONLY|O_APPEND|O_CREAT, 0666);
        char myBuf[1024];
        sprintf(myBuf, "%s:%d r: 0x%08x r->subprocess_env: 0x%08x\n", __FILE__,
__LINE__, (int)r, (r ? (int)( r->subprocess_env) : 0));
        write(myHandle, myBuf, strlen(myBuf));
        if (r && r->subprocess_env) {
            sprintf(myBuf, "%s:%d r->subprocess_env: %s\n", __FILE__, __LINE__,
ap_array_pstrcat(r->pool, (array_header*) r->subprocess_env, '='));
            write(myHandle, myBuf, strlen(myBuf));
        }
        close(myHandle);
    }

which wrote this for three requests: two over HTTP, the last over HTTPS.
mod_jk.c:663 r: 0x01856238 r->subprocess_env: 0x01856548
mod_jk.c:666 r->subprocess_env: SCRIPT_URL=/services/MyServlet
mod_jk.c:663 r: 0x01856238 r->subprocess_env: 0x01856548
mod_jk.c:666 r->subprocess_env: SCRIPT_URL=/services/MyServlet
mod_jk.c:663 r: 0x01856238 r->subprocess_env: 0x01856548
mod_jk.c:666 r->subprocess_env: SCRIPT_URL=/services/Style.css

Enabling the generation of core dumps for use with gdb is proving awkward.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message