Bug #74833 [Asn->Csd]: Random crashes, seemingly related to DateTimeImmutable and mod_php

From: Date: Wed, 26 Jul 2017 11:22:37 +0000
Subject: Bug #74833 [Asn->Csd]: Random crashes, seemingly related to DateTimeImmutable and mod_php
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210352@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
 Updated by:         ab@php.net
 Reported by:        mike dot fellows at shaw dot ca
 Summary:            Random crashes, seemingly related to
                     DateTimeImmutable and mod_php
-Status:             Assigned
+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:

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


Previous Comments:
------------------------------------------------------------------------
[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.

------------------------------------------------------------------------
[2017-07-17 17:54:31] ab@php.net

Thanks for staying on this. Nope, bugs.php.net doesn't have this facilities. But a couple of
days ago I've seen people sharing files through https://www.transfernow.net/en/ , any other service like
that will suffice. The full dump were of course great. Please ensure before, that it doesn't
contain any sensitive data.

So basically it's get_defined_constants() that has some issues. It would still make sense to
check a reproduce possibility. As it might be something simple, or something that depends on the app
code or the extensions constellation, etc. Anyway, a dump is a good start already.

Thanks.

------------------------------------------------------------------------
[2017-07-17 17:49:45] mike dot fellows at shaw dot ca

I also have just the mini-dump.  It is about 1 MByte in size.

------------------------------------------------------------------------


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


Thread (31 messages)

« previous php.bugs (#210352) next »