Bug #64636 [NEW]: Segfault in scan from parse_date.c
| From: | shakaran at gmail dot com | Date: | Thu, 11 Apr 2013 20:36:53 +0000 |
| Subject: | Bug #64636 [NEW]: Segfault in scan from parse_date.c | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-178427@lists.php.net to get a copy of this message | ||
From: shakaran at gmail dot com
Operating system: Centos 5.9
PHP version: 5.3.24
Package: Apache2 related
Bug Type: Bug
Bug description:Segfault in scan from parse_date.c
Description:
------------
I am using cPanel with cpeasyapache and php 5.3.23.
I get a apache core file when parse_date.c: is used in scan.
I start gdb in the core file showing this:
# gdb /usr/local/apache/bin/httpd core.5886
GNU gdb (GDB) CentOS (7.0.1-45.el5.centos)
Copyright (C) 2009 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/local/apache/bin/httpd...(no debugging symbols
found)...done.
[New Thread 5886]
warning: .dynamic section for "/usr/lib64/libldap-2.3.so.0" is not at the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/liblber-2.3.so.0" is not at the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libssl.so.6" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libcrypto.so.6" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libz.so.1" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libdistcache.so.1" is not at the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libnal.so.1" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libnsl.so.1" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libm.so.6" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libexpat.so.0" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libuuid.so.1" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/librt.so.1" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libcrypt.so.1" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libpthread.so.0" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libdl.so.2" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libc.so.6" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libresolv.so.2" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libsasl2.so.2" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libgssapi_krb5.so.2" is not at
the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libkrb5.so.3" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libcom_err.so.2" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libk5crypto.so.3" is not at the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libdb-4.3.so" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/ld-linux-x86-64.so.2" is not at the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libkrb5support.so.0" is not at
the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libkeyutils.so.1" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libselinux.so.1" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libsepol.so.1" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/local/apache/modules/libphp5.so" is not
at
the expected address (wrong library or version mismatch?)
warning: .dynamic section for "/usr/lib64/libaspell.so.15" is not at the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libpspell.so.15" is not at the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libmysqlclient.so.18" is not at
the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libltdl.so.3" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libpam.so.0" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libfreetype.so.6" is not at the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libX11.so.6" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libXpm.so.4" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libpng12.so.0" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libjpeg.so.62" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libenchant.so.1" is not at the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libbz2.so.1" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libidn.so.11" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libicui18n.so.36" is not at the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libicuuc.so.36" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libicudata.so.36" is not at the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libicuio.so.36" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib/libgcc_s.so.1" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libstdc++.so.6" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libaudit.so.0" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libXau.so.6" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/usr/lib64/libXdmcp.so.6" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libgmodule-2.0.so.0" is not at the
expected address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libglib-2.0.so.0" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib/libpython2.7.so.1.0" is not at the
expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
warning: .dynamic section for "/lib64/libutil.so.1" is not at the expected
address
warning: difference appears to be caused by prelink, adjusting
expectations
Reading symbols from /usr/lib64/libldap-2.3.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libldap-2.3.so.0
Reading symbols from /usr/lib64/liblber-2.3.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/liblber-2.3.so.0
Reading symbols from /lib64/libssl.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libssl.so.6
Reading symbols from /lib64/libcrypto.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libcrypto.so.6
Reading symbols from /usr/lib64/libz.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libz.so.1
Reading symbols from /usr/lib64/libdistcache.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libdistcache.so.1
Reading symbols from /usr/lib64/libnal.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libnal.so.1
Reading symbols from /lib64/libnsl.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libnsl.so.1
Reading symbols from /opt/pcre/lib/libpcre.so.0...(no debugging symbols
found)...done.
Loaded symbols for /opt/pcre/lib/libpcre.so.0
Reading symbols from /lib64/libm.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libm.so.6
Reading symbols from /usr/lib64/libaprutil-1.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libaprutil-1.so.0
Reading symbols from /lib64/libexpat.so.0...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libexpat.so.0
Reading symbols from /usr/lib64/libapr-1.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libapr-1.so.0
Reading symbols from /lib64/libuuid.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libuuid.so.1
Reading symbols from /lib64/librt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib64/librt.so.1
Reading symbols from /lib64/libcrypt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libcrypt.so.1
Reading symbols from /lib64/libpthread.so.0...(no debugging symbols
found)...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib64/libpthread.so.0
Reading symbols from /lib64/libdl.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libdl.so.2
Reading symbols from /lib64/libc.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libc.so.6
Reading symbols from /lib64/libresolv.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libresolv.so.2
Reading symbols from /usr/lib64/libsasl2.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libsasl2.so.2
Reading symbols from /usr/lib64/libgssapi_krb5.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libgssapi_krb5.so.2
Reading symbols from /usr/lib64/libkrb5.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libkrb5.so.3
Reading symbols from /lib64/libcom_err.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libcom_err.so.2
Reading symbols from /usr/lib64/libk5crypto.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libk5crypto.so.3
Reading symbols from /usr/lib64/libdb-4.3.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libdb-4.3.so
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /usr/lib64/libkrb5support.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libkrb5support.so.0
Reading symbols from /lib64/libkeyutils.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libkeyutils.so.1
Reading symbols from /lib64/libselinux.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libselinux.so.1
Reading symbols from /lib64/libsepol.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libsepol.so.1
Reading symbols from /lib64/libnss_files.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libnss_files.so.2
Reading symbols from /usr/local/apache/modules/libphp5.so...done.
Loaded symbols for /usr/local/apache/modules/libphp5.so
Reading symbols from /opt/xslt/lib/libexslt.so.0...done.
Loaded symbols for /opt/xslt/lib/libexslt.so.0
Reading symbols from /opt/tidy/lib/libtidy-0.99.so.0...(no debugging
symbols
found)...done.
Loaded symbols for /opt/tidy/lib/libtidy-0.99.so.0
Reading symbols from /usr/lib64/libaspell.so.15...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libaspell.so.15
Reading symbols from /usr/lib64/libpspell.so.15...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libpspell.so.15
Reading symbols from /usr/lib64/libmysqlclient.so.18...(no debugging
symbols
found)...done.
Loaded symbols for /usr/lib64/libmysqlclient.so.18
Reading symbols from /opt/libmcrypt/lib/libmcrypt.so.4...done.
Loaded symbols for /opt/libmcrypt/lib/libmcrypt.so.4
Reading symbols from /usr/lib64/libltdl.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libltdl.so.3
Reading symbols from /lib64/libpam.so.0...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libpam.so.0
Reading symbols from /usr/lib64/libfreetype.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libfreetype.so.6
Reading symbols from /usr/lib64/libX11.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libX11.so.6
Reading symbols from /usr/lib64/libXpm.so.4...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libXpm.so.4
Reading symbols from /usr/lib64/libpng12.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libpng12.so.0
Reading symbols from /usr/lib64/libjpeg.so.62...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libjpeg.so.62
Reading symbols from /usr/lib64/libenchant.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libenchant.so.1
Reading symbols from /usr/lib64/libbz2.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libbz2.so.1
Reading symbols from /opt/curlssl/lib/libcurl.so.4...(no debugging symbols
found)...done.
Loaded symbols for /opt/curlssl/lib/libcurl.so.4
Reading symbols from /usr/lib64/libidn.so.11...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libidn.so.11
Reading symbols from /usr/lib64/libicui18n.so.36...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libicui18n.so.36
Reading symbols from /usr/lib64/libicuuc.so.36...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libicuuc.so.36
Reading symbols from /usr/lib64/libicudata.so.36...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libicudata.so.36
Reading symbols from /usr/lib64/libicuio.so.36...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libicuio.so.36
Reading symbols from /opt/xslt/lib/libxslt.so.1...done.
Loaded symbols for /opt/xslt/lib/libxslt.so.1
Reading symbols from /opt/xml2/lib/libxml2.so.2...done.
Loaded symbols for /opt/xml2/lib/libxml2.so.2
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /usr/lib64/libstdc++.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libstdc++.so.6
Reading symbols from /lib64/libaudit.so.0...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libaudit.so.0
Reading symbols from /usr/lib64/libXau.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libXau.so.6
Reading symbols from /usr/lib64/libXdmcp.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib64/libXdmcp.so.6
Reading symbols from /lib64/libgmodule-2.0.so.0...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libgmodule-2.0.so.0
Reading symbols from /lib64/libglib-2.0.so.0...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libglib-2.0.so.0
Reading symbols from /usr/local/lib/php/extensions/no-debug-non-zts-
20090626/suhosin.so...done.
Loaded symbols for /usr/local/lib/php/extensions/no-debug-non-zts-
20090626/suhosin.so
Reading symbols from /usr/local/apache/modules/mod_wsgi.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/apache/modules/mod_wsgi.so
Reading symbols from /lib/libpython2.7.so.1.0...done.
Loaded symbols for /lib/libpython2.7.so.1.0
Reading symbols from /lib64/libutil.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib64/libutil.so.1
Reading symbols from /usr/local/apache/modules/mod_rpaf-2.0.so...(no
debugging
symbols found)...done.
Loaded symbols for /usr/local/apache/modules/mod_rpaf-2.0.so
Reading symbols from /usr/local/lib/ruby/gems/1.9.1/gems/passenger-
3.0.12/ext/apache2/mod_passenger.so...done.
Loaded symbols for /usr/local/lib/ruby/gems/1.9.1/gems/passenger-
3.0.12/ext/apache2/mod_passenger.so
Reading symbols from /usr/local/apache/modules/mod_qos.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/apache/modules/mod_qos.so
Reading symbols from /usr/local/apache/modules/mod_perl.so...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/apache/modules/mod_perl.so
Reading symbols from
/usr/local/lib/perl5/5.8.8/x86_64-linux/CORE/libperl.so...
(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/perl5/5.8.8/x86_64-linux/CORE/libperl.so
Reading symbols from /usr/local/apache/modules/mod_bw.so...(no debugging
symbols
found)...done.
Loaded symbols for /usr/local/apache/modules/mod_bw.so
Reading symbols from /usr/local/apache/modules/mod_bwlimited.so...(no
debugging
symbols found)...done.
Loaded symbols for /usr/local/apache/modules/mod_bwlimited.so
Reading symbols from /usr/local/apache/modules/mod_suphp.so...done.
Loaded symbols for /usr/local/apache/modules/mod_suphp.so
Reading symbols from /opt/lua/lib/liblua.so...done.
Loaded symbols for /opt/lua/lib/liblua.so
Reading symbols from /usr/local/apache/modules/mod_security2.so...done.
Loaded symbols for /usr/local/apache/modules/mod_security2.so
Reading symbols from /usr/local/IonCube/ioncube_loader_lin_5.3.so...(no
debugging symbols found)...done.
Loaded symbols for /usr/local/IonCube/ioncube_loader_lin_5.3.so
Reading symbols from /usr/local/Zend/lib/Guard-5.5.0/php-
5.3.x/ZendGuardLoader.so...(no debugging symbols found)...done.
Loaded symbols for
/usr/local/Zend/lib/Guard-5.5.0/php-5.3.x/ZendGuardLoader.so
Reading symbols from /usr/local/lib/php/extensions/no-debug-non-zts-
20090626/eaccelerator.so...done.
Loaded symbols for /usr/local/lib/php/extensions/no-debug-non-zts-
20090626/eaccelerator.so
Reading symbols from /usr/local/lib/php/extensions/no-debug-non-zts-
20090626/xcache.so...done.
Loaded symbols for /usr/local/lib/php/extensions/no-debug-non-zts-
20090626/xcache.so
warning: no loadable sections found in added symbol-file system-supplied
DSO at
0x7fff503fd000
Core was generated by `/usr/local/apache/bin/httpd -k graceful -DSSL'.
Program terminated with signal 11, Segmentation fault.
#0 0x00002b41cf4c9073 in scan (s=0x11e9cd20 "`\t\276\021", len=<value
optimized
out>, errors=0x11e9cd20, tzdb=0xd, tz_get_wrapper=0)
at /home/cpeasyapache/src/php-5.3.23/ext/date/lib/parse_date.c:8374
8374 if (yych <= '`') goto yy194;
(gdb) thread apply all bt full
Thread 1 (Thread 0x2b41cf3a9b40 (LWP 5886)):
#0 0x00002b41cf4c9073 in scan (s=0x11e9cd20 "`\t\276\021", len=<value
optimized
out>, errors=0x11e9cd20, tzdb=0xd, tz_get_wrapper=0)
at /home/cpeasyapache/src/php-5.3.23/ext/date/lib/parse_date.c:8374
yych = <value optimized out>
yyaccept = 0
cursor = <value optimized out>
str = 0x11e9cd20 "`\t\276\021"
ptr = 0x11e76d70 ""
yybm = "\000\000\000\000\000\000\000\000\000d", '\000' <repeats 22
times>,
"d\000\000\000\000\000\000\000\000\000\000\200@\240`\000\002\002\002\002\002\002
\002\002\002\002\000\000\000\000\000\000\000", '\b' <repeats 26 times>,
"\000\000\000\000\000\000\030\030\030X\030\030\030X\030\030\030\030\030X\030\030
\030XXX\030\030\030\030\030\030", '\000' <repeats 132 times>
#1 timelib_strtotime (s=0x11e9cd20 "`\t\276\021", len=<value optimized
out>,
errors=0x11e9cd20, tzdb=0xd, tz_get_wrapper=0)
at /home/cpeasyapache/src/php-5.3.23/ext/date/lib/parse_date.c:24730
in = {fd = 0, lim = 0x0, str = 0x11e9cd20 "`\t\276\021", ptr =
0x51661067 <Address 0x51661067 out of bounds>,
cur = 0xd <Address 0xd out of bounds>, tok = 0x2b41cfd1fe1c
"dns_get_record", pos = 0x2b41d00c4320 "", line = 3477903920, len = 11073,
errors = 0x30ed950031, time = 0x7fff50364a10, tzdb = 0x0}
e = <value optimized out>
#2 0x0000000000000000 in ?? ()
No symbol table info available.
Expected result:
----------------
Don't segfault when parse dates.
Actual result:
--------------
Segfault. Related:
(gdb) where
#0 0x00002b41cf4c9073 in scan (s=0x11e9cd20 "`\t\276\021", len=<value
optimized
out>, errors=0x11e9cd20, tzdb=0xd, tz_get_wrapper=0)
at /home/cpeasyapache/src/php-5.3.23/ext/date/lib/parse_date.c:8374
#1 timelib_strtotime (s=0x11e9cd20 "`\t\276\021", len=<value optimized
out>,
errors=0x11e9cd20, tzdb=0xd, tz_get_wrapper=0)
at /home/cpeasyapache/src/php-5.3.23/ext/date/lib/parse_date.c:24730
#2 0x0000000000000000 in ?? ()
--
Edit bug report at https://bugs.php.net/bug.php?id=64636&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64636&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64636&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64636&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64636&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64636&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64636&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64636&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64636&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64636&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64636&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=64636&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=64636&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64636&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64636&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64636&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64636&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64636&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64636&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64636&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64636&r=mysqlcfg