Bug #78198 [NEW]: segmentation fault php build-in server 7.3.2

From: Date: Sat, 22 Jun 2019 21:36:36 +0000
Subject: Bug #78198 [NEW]: segmentation fault php build-in server 7.3.2
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221452@lists.php.net to get a copy of this message
From: oleg at andreyev dot lv Operating system: MacOS PHP version: 7.3Git-2019-06-22 (Git) Package: *Web Server problem Bug Type: Bug Bug description:segmentation fault php build-in server 7.3.2 Description: ------------ Running php 7.3.2 build-in servers and getting segmentation fault lldb ``` ➜ MinkSelenium2Driver lldb -d -p 42319 (lldb) process attach --pid 42319 Process 42319 stopped * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP frame #0: 0x00007fff6be1161a libsystem_kernel.dylib`__select + 10 libsystem_kernel.dylib`__select: -> 0x7fff6be1161a <+10>: jae 0x7fff6be11624 ; <+20> 0x7fff6be1161c <+12>: movq %rax, %rdi 0x7fff6be1161f <+15>: jmp 0x7fff6be0a421 ; cerror 0x7fff6be11624 <+20>: retq Target 0: (php) stopped. Executable module set to "/Users/oandreyev/.phpenv/versions/7.3.2/bin/php". Architecture set to: x86_64h-apple-macosx-. (lldb) continue Process 42319 resuming Process 42319 stopped * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x196e33e88) frame #0: 0x0000000105ac34ed php`timelib_get_time_zone_info + 221 php`timelib_get_time_zone_info: -> 0x105ac34ed <+221>: cmpq %rbx, (%rsi,%rax) 0x105ac34f1 <+225>: jge 0x105ac34e0 ; <+208> 0x105ac34f3 <+227>: xorl %ecx, %ecx 0x105ac34f5 <+229>: subl 0x8(%rsi,%rax), %ecx Target 0: (php) stopped. (lldb) bt * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x196e33e88) * frame #0: 0x0000000105ac34ed php`timelib_get_time_zone_info + 221 frame #1: 0x0000000105a9e015 php`date_format + 389 frame #2: 0x0000000105a9de68 php`php_format_date + 200 frame #3: 0x000000010609dc9b php`append_essential_headers + 347 frame #4: 0x000000010609e9d8 php`php_cli_server_recv_event_read_request + 1560 frame #5: 0x000000010609f19e php`php_cli_server_do_event_for_each_fd_callback + 158 frame #6: 0x000000010609d24e php`do_cli_server + 2254 frame #7: 0x0000000106097882 php`main + 1122 frame #8: 0x00007fff6bcd53d5 libdyld.dylib`start + 1 frame #9: 0x00007fff6bcd53d5 libdyld.dylib`start + 1 (lldb) BB ``` Test script: --------------- https://gist.github.com/oleg-andreyev/8d809dea15dcb7becdc3a45cff2c3841 Expected result: ---------------- build-in server should not fail with segmentation fault -- Edit bug report at https://bugs.php.net/bug.php?id=78198&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78198&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78198&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78198&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78198&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78198&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78198&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78198&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78198&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78198&r=support Expected behavior: https://bugs.php.net/fix.php?id=78198&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78198&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78198&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78198&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78198&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78198&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78198&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78198&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78198&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78198&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78198&r=mysqlcfg

« previous php.bugs (#221452) next »