Debian Bug report logs -
#805591
php5: Segmentation fault on new DateTimeZone('leap-seconds.list')
Reported by: Jonathan Champ <royanee@gmail.com>
Date: Thu, 19 Nov 2015 21:18:02 UTC
Severity: normal
Found in versions php5/5.6.15+dfsg-1, php7.0/7.0.11-1
Fixed in version 5.6.26+dfsg-1+rm
Done: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#805591; Package php5-common.
(Thu, 19 Nov 2015 21:18:07 GMT) (full text, mbox, link).
Acknowledgement sent
to Jonathan Champ <royanee@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Thu, 19 Nov 2015 21:18:07 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: php5-common
Version: 5.6.15+dfsg-1
Severity: normal
Dear Maintainer,
I have a script that loops through all of the DateTimeZone identifiers and
creates a DateTimeZone instance of each one for use later in the script.
The Debian package returns an extra timezone identifier "leap-seconds.list"
that causes a segfault when you try to instanciate the object.
Test script:
<?php
foreach (DateTimeZone::listIdentifiers(DateTimeZone::ALL_WITH_BC) as $tz)
{
echo $tz . PHP_EOL;
$dtz = new DateTimeZone($tz);
}
echo 'Success' . PHP_EOL;
Backtrace:
(gdb) bt
#0 __memcpy_sse2_unaligned () at
../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:116
#1 0x000000000048cab6 in memcpy (__len=8148847036, __src=0x7ffff7ff002c,
__dest=0x7ffe08580010) at /usr/include/x86_64-linux-gnu/bits/string3.h:51
#2 read_transistions (tz=0x11c40f0, tzf=0x7fffffffa618) at
/tmp/buildd/php5-5.6.15+dfsg/ext/date/lib/parse_tz.c:138
#3 timelib_parse_tzfile (timezone=timezone@entry=0x11c40d0
"leap-seconds.list", tzdb=tzdb@entry=0x11bd600) at
/tmp/buildd/php5-5.6.15+dfsg/ext/date/lib/parse_tz.c:885
#4 0x00000000004677ab in php_date_parse_tzfile (formal_tzname=0x11c40d0
"leap-seconds.list", tzdb=0x11bd600) at
/tmp/buildd/php5-5.6.15+dfsg/ext/date/php_date.c:926
#5 0x00000000004708bd in timelib_parse_zone (ptr=ptr@entry=0x7fffffffa728,
dst=dst@entry=0x7fffffffa730, t=t@entry=0x7ffff7fc7858,
tz_not_found=tz_not_found@entry=0x7fffffffa734, tzdb=<optimized out>,
tz_wrapper=tz_wrapper@entry=0x467830 <php_date_parse_tzfile_wrapper>)
at /tmp/buildd/php5-5.6.15+dfsg/ext/date/lib/parse_date.c:788
#6 0x000000000046727a in timezone_initialize (tzobj=0x7ffff7fc7638,
tz=0x7ffff7ec5079 "", tz_len=17) at
/tmp/buildd/php5-5.6.15+dfsg/ext/date/php_date.c:3713
#7 0x00000000004673aa in zim_DateTimeZone___construct (ht=1,
return_value=<optimized out>, return_value_ptr=<optimized out>,
this_ptr=0x7ffff7fc5900, return_value_used=<optimized out>) at
/tmp/buildd/php5-5.6.15+dfsg/ext/date/php_date.c:3758
#8 0x00000000006daf2a in dtrace_execute_internal
(execute_data_ptr=<optimized out>, fci=<optimized out>,
return_value_used=<optimized out>) at
/tmp/buildd/php5-5.6.15+dfsg/Zend/zend_dtrace.c:97
#9 0x000000000079a657 in zend_do_fcall_common_helper_SPEC
(execute_data=<optimized out>) at
/tmp/buildd/php5-5.6.15+dfsg/Zend/zend_vm_execute.h:560
#10 0x0000000000729680 in execute_ex
(execute_data=execute_data@entry=0x7ffff7f92190)
at /tmp/buildd/php5-5.6.15+dfsg/Zend/zend_vm_execute.h:363
#11 0x00000000006dadd1 in dtrace_execute_ex (execute_data=0x7ffff7f92190)
at /tmp/buildd/php5-5.6.15+dfsg/Zend/zend_dtrace.c:73
#12 0x00000000006ed8e0 in zend_execute_scripts (type=type@entry=8,
retval=retval@entry=0x0, file_count=file_count@entry=3) at
/tmp/buildd/php5-5.6.15+dfsg/Zend/zend.c:1341
#13 0x00000000006889c0 in php_execute_script
(primary_file=primary_file@entry=0x7fffffffce40) at
/tmp/buildd/php5-5.6.15+dfsg/main/main.c:2597
#14 0x000000000079c5a1 in do_cli (argc=2, argv=0xeb0e70) at
/tmp/buildd/php5-5.6.15+dfsg/sapi/cli/php_cli.c:994
#15 0x000000000046237e in main (argc=2, argv=0xeb0e70) at
/tmp/buildd/php5-5.6.15+dfsg/sapi/cli/php_cli.c:1378
-- Package-specific info:
==== Additional PHP 5 information ====
++++ PHP 5 SAPI (php5query -S): ++++
cli
fpm
++++ PHP 5 Extensions (php5query -M -v): ++++
opcache (Enabled for cli by local administrator)
opcache (Enabled for fpm by local administrator)
mysql (Enabled for cli by maintainer script)
mysql (Enabled for fpm by maintainer script)
xmlrpc (Enabled for cli by maintainer script)
xmlrpc (Enabled for fpm by maintainer script)
mysqli (Enabled for cli by maintainer script)
mysqli (Enabled for fpm by maintainer script)
xsl (Enabled for cli by maintainer script)
xsl (Enabled for fpm by maintainer script)
json (Enabled for cli by maintainer script)
json (Enabled for fpm by maintainer script)
mysqlnd (Enabled for cli by maintainer script)
mysqlnd (Enabled for fpm by maintainer script)
No module matches xdebug
No module matches xdebug
pdo_mysql (Enabled for cli by maintainer script)
pdo_mysql (Enabled for fpm by maintainer script)
memcached (Enabled for cli by local administrator)
memcached (Enabled for fpm by local administrator)
curl (Enabled for cli by maintainer script)
curl (Enabled for fpm by maintainer script)
readline (Enabled for cli by maintainer script)
readline (Enabled for fpm by maintainer script)
pdo (Enabled for cli by maintainer script)
pdo (Enabled for fpm by maintainer script)
++++ Configuration files: ++++
**** /etc/php5/mods-available/pdo.ini ****
extension=pdo.so
**** /etc/php5/mods-available/opcache.ini ****
zend_extension=opcache.so
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500,
'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.2.0-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages php5 depends on:
ii php5-common 5.6.15+dfsg-1
ii php5-fpm 5.6.15+dfsg-1
php5 recommends no packages.
php5 suggests no packages.
Versions of packages php5-common depends on:
ii libc6 2.19-22
ii lsof 4.89+dfsg-0.1
ii psmisc 22.21-2.1
ii sed 4.2.2-6.1
ii ucf 3.0030
Versions of packages php5-common suggests:
pn php5-user-cache <none>
-- no debconf information
[Message part 2 (text/html, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#805591; Package php5-common.
(Wed, 05 Oct 2016 23:00:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Jonathan Champ <royanee@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Wed, 05 Oct 2016 23:00:05 GMT) (full text, mbox, link).
Message #10 received at 805591@bugs.debian.org (full text, mbox, reply):
Followup-For: Bug #805591
Package: php7.0-common
Version: 7.0.11-1
Dear Maintainer,
This is still a problem in php7.0; it appears to be related to Debian
timezone patches.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.7.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages php7.0 depends on:
ii php7.0-common 7.0.11-1
ii php7.0-fpm 7.0.11-1
php7.0 recommends no packages.
php7.0 suggests no packages.
Versions of packages php7.0-common depends on:
ii libc6 2.24-3
ii libssl1.0.2 1.0.2j-1
ii php-common 1:45
ii ucf 3.0036
-- no debconf information
Reply sent
to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility.
(Fri, 13 Jan 2017 13:07:34 GMT) (full text, mbox, link).
Notification sent
to Jonathan Champ <royanee@gmail.com>:
Bug acknowledged by developer.
(Fri, 13 Jan 2017 13:07:34 GMT) (full text, mbox, link).
Message #15 received at 805591-done@bugs.debian.org (full text, mbox, reply):
Version: 5.6.26+dfsg-1+rm
Dear submitter,
as the package php5 has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see https://bugs.debian.org/841781
The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.
Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#805591; Package php5-common.
(Mon, 23 Jan 2017 14:51:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Jonathan Champ <royanee@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Mon, 23 Jan 2017 14:51:02 GMT) (full text, mbox, link).
Message #20 received at 805591@bugs.debian.org (full text, mbox, reply):
This was fixed for php7.0 in 7.0.11-2 (thanks Ondřej!)
On Fri, Jan 13, 2017 at 8:07 AM, Debian Bug Tracking System
<owner@bugs.debian.org> wrote:
> This is an automatic notification regarding your Bug report
> which was filed against the php5-common package:
>
> #805591: php5: Segmentation fault on new DateTimeZone('leap-seconds.list')
>
> It has been closed by Debian FTP Masters <ftpmaster@ftp-master.debian.org>.
>
> Their explanation is attached below along with your original report.
> If this explanation is unsatisfactory and you have not received a
> better one in a separate message then please contact Debian FTP Masters <ftpmaster@ftp-master.debian.org> by
> replying to this email.
>
>
> --
> 805591: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805591
> Debian Bug Tracking System
> Contact owner@bugs.debian.org with problems
>
>
> ---------- Forwarded message ----------
> From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
> To: 413713-done@bugs.debian.org, 440775-done@bugs.debian.org, 447764-done@bugs.debian.org, 500087-done@bugs.debian.org, 618462-done@bugs.debian.org, 628079-done@bugs.debian.org, 639268-done@bugs.debian.org, 643282-done@bugs.debian.org, 697800-done@bugs.debian.org, 715264-done@bugs.debian.org, 727143-done@bugs.debian.org, 730067-done@bugs.debian.org, 731055-done@bugs.debian.org, 752100-done@bugs.debian.org, 759195-done@bugs.debian.org, 760454-done@bugs.debian.org, 774154-done@bugs.debian.org, 774975-done@bugs.debian.org, 776564-done@bugs.debian.org, 778596-done@bugs.debian.org, 782778-done@bugs.debian.org, 783246-done@bugs.debian.org, 788060-done@bugs.debian.org, 789442-done@bugs.debian.org, 789702-done@bugs.debian.org, 790472-done@bugs.debian.org, 790841-done@bugs.debian.org, 792239-done@bugs.debian.org, 795572-done@bugs.debian.org, 797799-done@bugs.debian.org, 799136-done@bugs.debian.org, 799851-done@bugs.debian.org, 800564-done@bugs.debian.org, 801831-done@bugs.debian.org, 803260-done@bugs.debian.org, 803305-done@bugs.debian.org, 805591-done@bugs.debian.org, 810244-done@bugs.debian.org, 811130-done@bugs.debian.org, 814907-done@bugs.debian.org, 815794-done@bugs.debian.org, 815797-done@bugs.debian.org, 817917-done@bugs.debian.org, 819139-done@bugs.debian.org, 827486-done@bugs.debian.org, 828498-done@bugs.debian.org, 833133-done@bugs.debian.org, 833543-done@bugs.debian.org, 834579-done@bugs.debian.org, 841618-done@bugs.debian.org, 845890-done@bugs.debian.org, 846244-done@bugs.debian.org, 848661-done@bugs.debian.org, 849767-done@bugs.debian.org, 664595-done@bugs.debian.org
> Cc: php5@packages.debian.org, php5@packages.qa.debian.org
> Date: Fri, 13 Jan 2017 13:05:30 +0000
> Subject: Bug#841781: Removed package(s) from unstable
> Version: 5.6.26+dfsg-1+rm
>
> Dear submitter,
>
> as the package php5 has just been removed from the Debian archive
> unstable we hereby close the associated bug reports. We are sorry
> that we couldn't deal with your issue properly.
>
> For details on the removal, please see https://bugs.debian.org/841781
>
> The version of this package that was in Debian prior to this removal
> can still be found using http://snapshot.debian.org/.
>
> This message was generated automatically; if you believe that there is
> a problem with it please contact the archive administrators by mailing
> ftpmaster@ftp-master.debian.org.
>
> Debian distribution maintenance software
> pp.
> Scott Kitterman (the ftpmaster behind the curtain)
>
> ---------- Forwarded message ----------
> From: Jonathan Champ <royanee@gmail.com>
> To: submit@bugs.debian.org
> Cc:
> Date: Thu, 19 Nov 2015 16:16:12 -0500
> Subject: php5: Segmentation fault on new DateTimeZone('leap-seconds.list')
> Package: php5-common
> Version: 5.6.15+dfsg-1
> Severity: normal
>
> Dear Maintainer,
>
> I have a script that loops through all of the DateTimeZone identifiers and creates a DateTimeZone instance of each one for use later in the script.
>
> The Debian package returns an extra timezone identifier "leap-seconds.list" that causes a segfault when you try to instanciate the object.
>
> Test script:
>
> <?php
> foreach (DateTimeZone::listIdentifiers(DateTimeZone::ALL_WITH_BC) as $tz) {
> echo $tz . PHP_EOL;
> $dtz = new DateTimeZone($tz);
> }
> echo 'Success' . PHP_EOL;
>
> Backtrace:
>
> (gdb) bt
> #0 __memcpy_sse2_unaligned () at ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:116
> #1 0x000000000048cab6 in memcpy (__len=8148847036, __src=0x7ffff7ff002c, __dest=0x7ffe08580010) at /usr/include/x86_64-linux-gnu/bits/string3.h:51
> #2 read_transistions (tz=0x11c40f0, tzf=0x7fffffffa618) at /tmp/buildd/php5-5.6.15+dfsg/ext/date/lib/parse_tz.c:138
> #3 timelib_parse_tzfile (timezone=timezone@entry=0x11c40d0 "leap-seconds.list", tzdb=tzdb@entry=0x11bd600) at /tmp/buildd/php5-5.6.15+dfsg/ext/date/lib/parse_tz.c:885
> #4 0x00000000004677ab in php_date_parse_tzfile (formal_tzname=0x11c40d0 "leap-seconds.list", tzdb=0x11bd600) at /tmp/buildd/php5-5.6.15+dfsg/ext/date/php_date.c:926
> #5 0x00000000004708bd in timelib_parse_zone (ptr=ptr@entry=0x7fffffffa728, dst=dst@entry=0x7fffffffa730, t=t@entry=0x7ffff7fc7858, tz_not_found=tz_not_found@entry=0x7fffffffa734, tzdb=<optimized out>, tz_wrapper=tz_wrapper@entry=0x467830 <php_date_parse_tzfile_wrapper>)
> at /tmp/buildd/php5-5.6.15+dfsg/ext/date/lib/parse_date.c:788
> #6 0x000000000046727a in timezone_initialize (tzobj=0x7ffff7fc7638, tz=0x7ffff7ec5079 "", tz_len=17) at /tmp/buildd/php5-5.6.15+dfsg/ext/date/php_date.c:3713
> #7 0x00000000004673aa in zim_DateTimeZone___construct (ht=1, return_value=<optimized out>, return_value_ptr=<optimized out>, this_ptr=0x7ffff7fc5900, return_value_used=<optimized out>) at /tmp/buildd/php5-5.6.15+dfsg/ext/date/php_date.c:3758
> #8 0x00000000006daf2a in dtrace_execute_internal (execute_data_ptr=<optimized out>, fci=<optimized out>, return_value_used=<optimized out>) at /tmp/buildd/php5-5.6.15+dfsg/Zend/zend_dtrace.c:97
> #9 0x000000000079a657 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>) at /tmp/buildd/php5-5.6.15+dfsg/Zend/zend_vm_execute.h:560
> #10 0x0000000000729680 in execute_ex (execute_data=execute_data@entry=0x7ffff7f92190) at /tmp/buildd/php5-5.6.15+dfsg/Zend/zend_vm_execute.h:363
> #11 0x00000000006dadd1 in dtrace_execute_ex (execute_data=0x7ffff7f92190) at /tmp/buildd/php5-5.6.15+dfsg/Zend/zend_dtrace.c:73
> #12 0x00000000006ed8e0 in zend_execute_scripts (type=type@entry=8, retval=retval@entry=0x0, file_count=file_count@entry=3) at /tmp/buildd/php5-5.6.15+dfsg/Zend/zend.c:1341
> #13 0x00000000006889c0 in php_execute_script (primary_file=primary_file@entry=0x7fffffffce40) at /tmp/buildd/php5-5.6.15+dfsg/main/main.c:2597
> #14 0x000000000079c5a1 in do_cli (argc=2, argv=0xeb0e70) at /tmp/buildd/php5-5.6.15+dfsg/sapi/cli/php_cli.c:994
> #15 0x000000000046237e in main (argc=2, argv=0xeb0e70) at /tmp/buildd/php5-5.6.15+dfsg/sapi/cli/php_cli.c:1378
>
>
> -- Package-specific info:
> ==== Additional PHP 5 information ====
>
> ++++ PHP 5 SAPI (php5query -S): ++++
> cli
> fpm
>
> ++++ PHP 5 Extensions (php5query -M -v): ++++
> opcache (Enabled for cli by local administrator)
> opcache (Enabled for fpm by local administrator)
> mysql (Enabled for cli by maintainer script)
> mysql (Enabled for fpm by maintainer script)
> xmlrpc (Enabled for cli by maintainer script)
> xmlrpc (Enabled for fpm by maintainer script)
> mysqli (Enabled for cli by maintainer script)
> mysqli (Enabled for fpm by maintainer script)
> xsl (Enabled for cli by maintainer script)
> xsl (Enabled for fpm by maintainer script)
> json (Enabled for cli by maintainer script)
> json (Enabled for fpm by maintainer script)
> mysqlnd (Enabled for cli by maintainer script)
> mysqlnd (Enabled for fpm by maintainer script)
> No module matches xdebug
> No module matches xdebug
> pdo_mysql (Enabled for cli by maintainer script)
> pdo_mysql (Enabled for fpm by maintainer script)
> memcached (Enabled for cli by local administrator)
> memcached (Enabled for fpm by local administrator)
> curl (Enabled for cli by maintainer script)
> curl (Enabled for fpm by maintainer script)
> readline (Enabled for cli by maintainer script)
> readline (Enabled for fpm by maintainer script)
> pdo (Enabled for cli by maintainer script)
> pdo (Enabled for fpm by maintainer script)
>
> ++++ Configuration files: ++++
> **** /etc/php5/mods-available/pdo.ini ****
> extension=pdo.so
>
> **** /etc/php5/mods-available/opcache.ini ****
> zend_extension=opcache.so
>
>
> -- System Information:
> Debian Release: stretch/sid
> APT prefers unstable
> APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
>
> Kernel: Linux 4.2.0-1-amd64 (SMP w/6 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages php5 depends on:
> ii php5-common 5.6.15+dfsg-1
> ii php5-fpm 5.6.15+dfsg-1
>
> php5 recommends no packages.
>
> php5 suggests no packages.
>
> Versions of packages php5-common depends on:
> ii libc6 2.19-22
> ii lsof 4.89+dfsg-0.1
> ii psmisc 22.21-2.1
> ii sed 4.2.2-6.1
> ii ucf 3.0030
>
> Versions of packages php5-common suggests:
> pn php5-user-cache <none>
>
> -- no debconf information
>
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Tue, 21 Feb 2017 07:38:05 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 02:21:56 2023;
Machine Name:
buxtehude
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.