Bug #70864 [Opn->Csd]: new DateTime in __construct() crashes

From: Date: Fri, 06 Nov 2015 20:50:56 +0000
Subject: Bug #70864 [Opn->Csd]: new DateTime in __construct() crashes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197088@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70864&edit=1

 ID:                 70864
 User updated by:    eric at ericstern dot com
 Reported by:        eric at ericstern dot com
 Summary:            new DateTime in __construct() crashes
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            Reproducible crash
 Operating System:   Centos 7
 PHP Version:        7.0.0RC6
 Block user comment: N
 Private report:     N

 New Comment:

Send the maintainer an email with a bunch of related links. Also confirmed at the command line that
USE_ZEND_ALLOC=0 php crash.php prevents the issue, as the linked bug suggested. Thanks
for the help :)


Previous Comments:
------------------------------------------------------------------------
[2015-11-06 20:37:23] nikic@php.net

This is the same issue as https://bugs.php.net/bug.php?id=70688. It's
not a bug in PHP, it's a bug in a patch used by your package provider. Could you please report
this to Webtatic?

------------------------------------------------------------------------
[2015-11-06 19:50:03] eric at ericstern dot com

Lawrence, here you go:

[root@ansi-test public]# gdb /usr/bin/php /tmp/core-php.26904
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-64.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/php...Reading symbols from /usr/bin/php...(no debugging symbols
found)...done.
(no debugging symbols found)...done.
[New LWP 26904]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `php crash.php'.
Program terminated with signal 11, Segmentation fault.
#0  0x00007fdbfe83ee7a in _efree ()
Missing separate debuginfos, use: debuginfo-install php70w-cli-7.0.0-0.14.RC6.w7.x86_64
(gdb) bt
#0  0x00007fdbfe83ee7a in _efree ()
#1  0x00007fdbfe6cc717 in timelib_tzinfo_dtor ()
#2  0x00007fdbfe872402 in zend_hash_destroy ()
#3  0x00007fdbfe6a1c81 in zm_deactivate_date ()
#4  0x00007fdbfe868094 in zend_deactivate_modules ()
#5  0x00007fdbfe801d8d in php_request_shutdown ()
#6  0x00007fdbfe8e9f68 in do_cli ()
#7  0x00007fdbfe6a1a4a in main ()

Rasmus - I'll look into doing a source build shortly and update this.

------------------------------------------------------------------------
[2015-11-06 19:38:53] rasmus@php.net

Unable to reproduce on Debian plus it is valgrind-clean. It sounds like it is related to the
distro-specific patches that I know RedHat/Centos do to support the system tz lib. You could help us
verify that by building from our source on that box and testing a non-modified build.

------------------------------------------------------------------------
[2015-11-06 08:40:17] laruence@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.



------------------------------------------------------------------------
[2015-11-05 21:56:59] fabian at tag1consulting dot com

Note: I tested it on Ubuntu. I did miss that its only crashing on Centos 7.

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


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=70864


--
Edit this bug report at https://bugs.php.net/bug.php?id=70864&edit=1


Thread (9 messages)

« previous php.bugs (#197088) next »