Bug #74833 [Com]: Random crashes, seemingly related to DateTimeImmutable and mod_php

From: Date: Fri, 11 Aug 2017 16:04:13 +0000
Subject: Bug #74833 [Com]: Random crashes, seemingly related to DateTimeImmutable and mod_php
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210615@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74833&edit=1 ID: 74833 Comment by: mike dot fellows at shaw dot ca Reported by: mike dot fellows at shaw dot ca Summary: Random crashes, seemingly related to DateTimeImmutable and mod_php Status: Closed Type: Bug Package: Apache2 related Operating System: Windows 7 64 bit, MacOs, Linux PHP Version: 7.0.1 to 7.1.6 Assigned To: ab Block user comment: N Private report: N New Comment: @ab - just a final follow up. I have been using 7.2 beta2 for the last week. I have not seen the session related crash once. With alpha3, I was seeing it 3 or 4 times a week. So from my point of view the issue is fixed. Also, I've seen no occurences of the original persistent string corruption issue. As was the case with alpha2/3 of course. Thanks to all for sorting these issues out. Previous Comments: ------------------------------------------------------------------------ [2017-07-26 17:27:04] mike dot fellows at shaw dot ca I've inspected my code and am only finding calls to session_start(), no session_regenerate_id(). I'll continue to test with the newer releases of PHP7.2 and report back if the issue re-occurs. Glad to hear the second set of crashes are not due to the string interning problem. Thanks for looking into all of this @ab. ------------------------------------------------------------------------ [2017-07-26 11:22:33] ab@php.net Automatic comment on behalf of ab Revision: http://git.php.net/?p=php-src.git;a=commit;h=bd00fe81cc4525b7d8e5c36a3844ee2254e5f69c Log: Fixed bug #74833, SID constant created with wrong module number ------------------------------------------------------------------------ [2017-07-26 10:58:59] ab@php.net Finally i got to the point on this. After the investigation, I don't see any issues with the string interning. I'm going to push a patch soon. Otherwise, you might have luck with reproducing on alpha3 with the code like this session_start(); session_regenerate_id(); session_regenerate_id(); get_defined_constants(true); I'm pretty sure the issue lays on the SID constant handling, but i don't reproduce it on my environment. I guess it depends very much on your application logic and ini, maybe some system specific factor, too. So you might luck reproducing it either by stress testing the snippet above or even better by analyzing your application and paying attention to the parts where session_regenerate_id() is used. Thanks. ------------------------------------------------------------------------ [2017-07-19 20:29:56] ab@php.net @mike thanks for the crash dump. I'll get back to you with some findings after investigating on it. Thanks. ------------------------------------------------------------------------ [2017-07-17 19:12:39] mike dot fellows at shaw dot ca @ab, I have emailed you a link to the minidump with heap. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=74833 -- Edit this bug report at https://bugs.php.net/bug.php?id=74833&edit=1

« previous php.bugs (#210615) next »