You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2016/07/05 03:17:05 UTC

[Bug 59798] New: Apache crashes with child process exited with status 3221226356

https://bz.apache.org/bugzilla/show_bug.cgi?id=59798

            Bug ID: 59798
           Summary: Apache crashes with child process exited with status
                    3221226356
           Product: Apache httpd-2
           Version: 2.4.20
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_ssl
          Assignee: bugs@httpd.apache.org
          Reporter: oldbucsfan@hotmail.com

Apache crashes and I get the following error in the apache log:
AH00428: Parent: child process 780 exited with status 3221226356 -- Restarting.

Backtrace:
***********************
*  EXCEPTION DETAILS  *
***********************

DetailID = 1
    Count:    2
    Exception #:  0XC0000008
    Stack:        
        ntdll!KiRaiseUserExceptionDispatcher+0x3a
        KERNELBASE!CloseHandle+0x1b
        libapr_1!apr_shm_size_get+0x27d
        libapr_1!apr_shm_destroy+0x12
        mod_socache_shmcb+0x161c
        mod_ssl!ssl_run_proxy_post_handshake+0x8d12
        mod_ssl!ssl_run_pre_handshake+0x3d97
        libapr_1!apr_pool_clear+0x6e
        httpd!OPENSSL_Applink+0xcef
        httpd!OPENSSL_Applink+0x1f98
        KERNEL32!BaseThreadInitThunk+0x22
        ntdll!RtlUserThreadStart+0x34

Any ideas? Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59798] Apache crashes with child process exited with status 3221226356

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59798

--- Comment #5 from Chuck Hunley <ch...@sas.com> ---
I've seen crash/exception as well.  Although I see it when the httpd.exe
process is being shutdown.  The exception is due to CloseHandle() being called
twice with the same handle to file mapping. 
https://github.com/apache/httpd/blob/trunk/modules/cache/mod_socache_shmcb.c
creates a file memory mapping and
https://github.com/apache/apr/blob/trunk/shmem/win32/shm.c actually creates the
physical mapping with the OS and registers a cleanup handler.  When the mapping
is to be cleaned up both mod_socache_shmcb.c(socache_shmcb_destroy) and
shm.c(shm_cleanup via apr_pool_clear) attempt to close the same handle. I've
attached a simple fix based on the "trunk" branch to shm.c/shm_cleanup to NULL
the handles after they have been closed.  This seems to have eliminated the
crash I've been seeing and is based on similar cleanup handling in
mmap/win32/mmap.c. However, I would think some coordination between
mod_socache_shmcb.c and apr_pools.c would be necessary as well.

A might be more appropriate to redirect this to Product: APR or Product:
Apache-httpd-2 with Component: mod_socache_(dbm|dc|memcache|shmcb)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59798] Apache crashes with child process exited with status 3221226356

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59798

--- Comment #3 from Techiq <Ba...@gmail.com> ---
Apache crashes and I get the following error in the apache log:
AH00428: Parent: child process 780 exited with status 3221226356 -- Restarting.

Backtrace:
***********************
*  EXCEPTION DETAILS  *
***********************

DetailID = 1
        Count:    2
        Exception #:  0XC0000008
        Stack:        
                ntdll!KiRaiseUserExceptionDispatcher+0x3a
                KERNELBASE!CloseHandle+0x1b
                libapr_1!apr_shm_size_get+0x27d
                libapr_1!apr_shm_destroy+0x12
                mod_socache_shmcb+0x161c
                mod_ssl!ssl_run_proxy_post_handshake+0x8d12
                mod_ssl!ssl_run_pre_handshake+0x3d97
                libapr_1!apr_pool_clear+0x6e
                httpd!OPENSSL_Applink+0xcef
                httpd!OPENSSL_Applink+0x1f98
                KERNEL32!BaseThreadInitThunk+0x22
                ntdll!RtlUserThreadStart+0x34

Any ideas? Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59798] Apache crashes with child process exited with status 3221226356

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59798

Yann Ylavic <yl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

--- Comment #8 from Yann Ylavic <yl...@gmail.com> ---
Fix in r1888266 that does not need an APR change.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59798] Apache crashes with child process exited with status 3221226356

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59798

Yann Ylavic <yl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #9 from Yann Ylavic <yl...@gmail.com> ---
Backported to 2.4.x (r1889798), will be in 2.4.48.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59798] Apache crashes with child process exited with status 3221226356

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59798

--- Comment #6 from Michael Schlenker <ms...@contact.de> ---
The root cause for this might be a duplicate to
https://bz.apache.org/bugzilla/show_bug.cgi?id=41847.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59798] Apache crashes with child process exited with status 3221226356

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59798

Szőgyényi Gábor <sz...@freemail.hu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |szg0000@freemail.hu
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59798] Apache crashes with child process exited with status 3221226356

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59798

--- Comment #4 from Chuck Hunley <ch...@sas.com> ---
Created attachment 36022
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36022&action=edit
Fix crash when shm_cleanup() called twice with same handles

shm_cleanup() can be called twice with same handle.  The second call to
CloseHandle() causes a crash.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59798] Apache crashes with child process exited with status 3221226356

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59798

oldbucsfan@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.4.20                      |2.4.23
           Severity|major                       |critical
                 OS|                            |Windows Server 2012

--- Comment #1 from oldbucsfan@hotmail.com ---
I tried again with php7 and continued to get the error when hitting https. Used
abs.exe to test it and almost always get the error within 3 tests of 1000
requests. Usually get it in the first few hundred when hitting a wordpress site
over SSL. Get it when all plugins are disabled. Get it hitting a website not
using wordpress at all. Tried it with all extensions disabled except mysqli
(needed to load the website). In other words, I can't seem to use Apache 2.4
with SSL and PHP 7. Tried basically totally simplifying the config files to the
simplest form. Tried totally replacing the installs. The only thing that solves
the error is using PHP 5.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59798] Apache crashes with child process exited with status 3221226356

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59798

--- Comment #7 from Michael Schlenker <ms...@contact.de> ---
See https://bz.apache.org/bugzilla/show_bug.cgi?id=63271 for a patch to apr
that might help too.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 59798] Apache crashes with child process exited with status 3221226356

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59798

oldbucsfan@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|All                         |Windows Server 2012
            Version|2.4.23                      |2.4.25

--- Comment #2 from oldbucsfan@hotmail.com ---
This test script will cause an error after 1000s of tries via abs.exe, but will
not cause the same error when attempted via ab.exe.

-----------------------
$wrappers = stream_get_wrappers();
print_r($wrappers);
$wrappers_re = '(' . join('|', $wrappers) . ')';
print($wrappers_re);
-----------------------

In other words, this appears to be an issue involving one of the extensions in
Apache that handles the https protocol.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org