php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71244 Apache restart on session_start()
Submitted: 2015-12-30 10:38 UTC Modified: 2016-01-24 04:22 UTC
Votes:21
Avg. Score:4.9 ± 0.5
Reproduced:20 of 20 (100.0%)
Same Version:19 (95.0%)
Same OS:8 (40.0%)
From: bugs dot php dot net at hellbringer dot pw Assigned:
Status: No Feedback Package: Session related
PHP Version: 7.0.1 OS: Windows 7 Enterprise 64bit
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bugs dot php dot net at hellbringer dot pw
New email:
PHP Version: OS:

 

 [2015-12-30 10:38 UTC] bugs dot php dot net at hellbringer dot pw
Description:
------------
Apache restarts always when session_start() is called.

"child process 29272 exited with status 3221225477 -- Restarting"

PHP is running as Apache module.

Using standard installation of XAMPP 7.0.0 with PHP 7.0.1 binaries from:

http://windows.php.net/downloads/releases/php-7.0.1-Win32-VC14-x86.zip


Got the same error with PHP 7.0.0



Versions:

Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.1

Microsoft Windows [Version 6.1.7601]


Apache log:

[Wed Dec 30 11:18:30.449512 2015] [mpm_winnt:notice] [pid 25552:tid 300] AH00455: Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.1 configured -- resuming normal operations
[Wed Dec 30 11:18:30.449512 2015] [mpm_winnt:notice] [pid 25552:tid 300] AH00456: Apache Lounge VC14 Server built: Dec  9 2015 10:17:39
[Wed Dec 30 11:18:30.449512 2015] [core:notice] [pid 25552:tid 300] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Dec 30 11:18:30.517015 2015] [mpm_winnt:notice] [pid 25552:tid 300] AH00418: Parent: Created child process 29272
[Wed Dec 30 11:18:31.744568 2015] [mpm_winnt:notice] [pid 29272:tid 312] AH00354: Child: Starting 150 worker threads.
[Wed Dec 30 11:18:45.882692 2015] [mpm_winnt:notice] [pid 25552:tid 300] AH00428: Parent: child process 29272 exited with status 3221225477 -- Restarting.
[Wed Dec 30 11:18:46.707228 2015] [mpm_winnt:notice] [pid 25552:tid 300] AH00455: Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.1 configured -- resuming normal operations
[Wed Dec 30 11:18:46.707228 2015] [mpm_winnt:notice] [pid 25552:tid 300] AH00456: Apache Lounge VC14 Server built: Dec  9 2015 10:17:39
[Wed Dec 30 11:18:46.707228 2015] [core:notice] [pid 25552:tid 300] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Dec 30 11:18:46.770732 2015] [mpm_winnt:notice] [pid 25552:tid 300] AH00418: Parent: Created child process 13940
[Wed Dec 30 11:18:48.026289 2015] [mpm_winnt:notice] [pid 13940:tid 312] AH00354: Child: Starting 150 worker threads.
[Wed Dec 30 11:18:49.269343 2015] [mpm_winnt:notice] [pid 25552:tid 300] AH00428: Parent: child process 13940 exited with status 3221225477 -- Restarting.
[Wed Dec 30 11:18:50.386891 2015] [mpm_winnt:notice] [pid 25552:tid 300] AH00455: Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.1 configured -- resuming normal operations
[Wed Dec 30 11:18:50.386891 2015] [mpm_winnt:notice] [pid 25552:tid 300] AH00456: Apache Lounge VC14 Server built: Dec  9 2015 10:17:39
[Wed Dec 30 11:18:50.386891 2015] [core:notice] [pid 25552:tid 300] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Wed Dec 30 11:18:50.451894 2015] [mpm_winnt:notice] [pid 25552:tid 300] AH00418: Parent: Created child process 13548
[Wed Dec 30 11:18:51.681948 2015] [mpm_winnt:notice] [pid 13548:tid 312] AH00354: Child: Starting 150 worker threads.

Test script:
---------------
<?php session_start();


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-30 13:45 UTC] bugs dot php dot net at hellbringer dot pw
Windows event log:

Faulting application name: httpd.exe, version: 2.4.18.0, time stamp: 0x5667f02e
Faulting module name: php7ts.dll, version: 7.0.1.0, time stamp: 0x5671ed04
Exception code: 0xc0000005
Fault offset: 0x0001ac04
Faulting process id: 0x7258
Faulting application start time: 0x01d142eb6e3a57c2
Faulting application path: C:\xampp\apache\bin\httpd.exe
Faulting module path: C:\xampp\php\php7ts.dll
Report Id: b45419ad-aede-11e5-975c-005056c00008
 [2016-01-04 08:59 UTC] ifihear at gmail dot com
I experience this issue too on the same version with window 8.1 on Xampp
 [2016-01-07 02:59 UTC] yohgaki@php.net
-Status: Open +Status: Feedback
 [2016-01-07 02:59 UTC] yohgaki@php.net
It sounds windows only issue.
What is your save handler? 

It seems you're using ZTS (Threaded version) PHP. 
Do you see this issue on non-ZTS build? 
i.e. Use preform MPM to see the difference.
 [2016-01-07 03:00 UTC] yohgaki@php.net
s/preform/prefork/
 [2016-01-14 08:18 UTC] ab@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

There's no mpm_prefork on Windows, mpm_winnt only. NTS usable with FCGI though.

But with XAMPP - we need a backtrace or a core dump for the further investigation.

Thanks.
 [2016-01-22 18:17 UTC] alec dot carter1 at gmail dot com
Grab the latest version of PHP for Windows (Thread Safe) http://windows.php.net/download#php-7.0
and install it to the /php folder where xampp is located rewriting the previous version.
 [2016-01-24 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2019-10-22 04:41 UTC] raibelbotta at gmail dot com
The problem seems to be from Windows file creation taking too long (session files in this case).

I solved the problem disabling antivirus or excluding xampp directory from automatic files scanning system.
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Jan 31 14:03:57 2023 UTC