Bug #75395 [Com]: Core dump in in timelib_get_time_zone_info

From: Date: Wed, 27 Mar 2019 13:38:51 +0000
Subject: Bug #75395 [Com]: Core dump in in timelib_get_time_zone_info
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-220227@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75395&edit=1 ID: 75395 Comment by: reiter dot christoph at gmail dot com Reported by: phil at jankaritech dot com Summary: Core dump in in timelib_get_time_zone_info Status: No Feedback Type: Bug Package: Reproducible crash Operating System: Ubuntu 16.04 PHP Version: 7.1.10 Block user comment: N Private report: N New Comment: I just got a similar crash with Debian (PHP 7.3.3-1 (cli) (built: Mar 7 2019 19:43:34) ( NTS )) #0 __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:120 #1 0x00005555557d7c8e in _estrdup (s=0x8000ea006368 <error: Cannot access memory at address 0x8000ea006368>) at ./Zend/zend_alloc.c:2591 #2 0x000055555568da05 in timelib_get_time_zone_info (ts=1553693364, tz=0x7ffff5003140) at ./ext/date/lib/parse_tz.c:1247 #3 0x0000555555662918 in date_format (format=format@entry=0x5555558eb49c "r", format_len=format_len@entry=1, t=t@entry=0x7ffff5001000, localtime=localtime@entry=1) at ./ext/date/php_date.c:1162 #4 0x000055555566a55d in php_format_date (format=format@entry=0x5555558eb49c "r", format_len=format_len@entry=1, ts=1553693364, localtime=localtime@entry=1) at ./ext/date/php_date.c:1327 #5 0x00005555558889b0 in append_essential_headers (buffer=buffer@entry=0x7fffffffc990, client=client@entry=0x555555d0fd10, persistent=persistent@entry=1) at ./sapi/cli/php_cli_server.c:357 #6 0x000055555588b973 in php_cli_server_begin_send_static (client=0x555555d0fd10, server=0x5555559f7000 <server>) at ./sapi/cli/php_cli_server.c:2041 #7 php_cli_server_dispatch (client=0x555555d0fd10, server=0x5555559f7000 <server>) at ./sapi/cli/php_cli_server.c:2184 #8 php_cli_server_recv_event_read_request (server=0x5555559f7000 <server>, client=0x555555d0fd10) at ./sapi/cli/php_cli_server.c:2379 #9 0x000055555588bf70 in php_cli_server_do_event_for_each_fd_callback (_params=_params@entry=0x7fffffffcae0, fd=fd@entry=6, event=event@entry=1) at ./sapi/cli/php_cli_server.c:2462 #10 0x000055555588cc7b in php_cli_server_poller_iter_on_active (poller=0x5555559f7008 <server+8>, callback=0x55555588bf20 <php_cli_server_do_event_for_each_fd_callback>, opaque=0x7fffffffcae0) at ./sapi/cli/php_cli_server.c:844 #11 php_cli_server_do_event_for_each_fd (whandler=0x555555889f80 <php_cli_server_send_event>, rhandler=0x55555588b680 <php_cli_server_recv_event_read_request>, server=0x5555559f7000 <server>) at ./sapi/cli/php_cli_server.c:2480 #12 php_cli_server_do_event_loop (server=0x5555559f7000 <server>) at ./sapi/cli/php_cli_server.c:2490 #13 do_cli_server (argc=<optimized out>, argv=<optimized out>) at ./sapi/cli/php_cli_server.c:2612 #14 0x00005555556617c3 in main (argc=3, argv=0x555555a123f0) at ./sapi/cli/php_cli.c:1392 Previous Comments: ------------------------------------------------------------------------ [2017-11-05 04:23:01] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ [2017-10-17 11:55:18] derick@php.net 1. There should be a php-7.1-dbgsym package, at least in Ondrej's PPA 2. I had a look around, but can't find a link. You can do "apt source php7.1" though, and have a look at debian/patches/0013-Add-support-for-use-of-the-system-timezone-database.patch - the name might be slightly off, as this is with the Debian package I have locally 3. Maybe at https://deb.sury.org/#bug-reporting ------------------------------------------------------------------------ [2017-10-17 11:25:22] phil at jankaritech dot com The backtrace on Ubuntu 17.10 is just the same as I posted. If you can point to any of the following I am happy to do more: 1) a package that will give symbols for gdb to report 2) where I find the Ubuntu patching of PHP stuff, to look at the diffs 3) if I should report this somewhere to Ubuntu? 4) whatever else... ------------------------------------------------------------------------ [2017-10-17 10:38:42] phil at jankaritech dot com On Ubuntu 16.04 I get alternate PHP versions using: sudo add-apt-repository ppa:ondrej/php But the problem happens also in Ubuntu 17.10, which comes with PHP 7.1 by default. This is where I first noticed the problem. The mention of Ubuntu 16.04 was just to demonstrate that I was able to use "the same" PHP on a different version of Ubuntu and reproduce the problem. So I will reproduce again on Ubuntu 17.10 and see if the backtrace has more information. ------------------------------------------------------------------------ [2017-10-17 09:30:23] derick@php.net This backtrace isn't particularly useful, as it does not have any symbols. Right now, I am also not convinced this is a bug *in* PHP. Ubuntu patches PHP's date/time support and that sometimes has bugs too. A backtrace with debugging symbols is needed for this, but I can't find a package for Ubuntu 16.04 that does this. Curiously, 16.04 also doesn't have a php7.1 package, so I am not sure where you got that from. ------------------------------------------------------------------------ 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=75395 -- Edit this bug report at https://bugs.php.net/bug.php?id=75395&edit=1

« previous php.bugs (#220227) next »