Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oleg-andreyev/8d809dea15dcb7becdc3a45cff2c3841 to your computer and use it in GitHub Desktop.
Save oleg-andreyev/8d809dea15dcb7becdc3a45cff2c3841 to your computer and use it in GitHub Desktop.
macOS-php-732-bug-timelib_get_time_zone_info
curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-installer | bash
PHP_BUILD_EXTRA_MAKE_ARGUMENTS="-j$(nproc)" phpenv install 7.3.2
git clone https://github.com/oleg-andreyev/MinkSelenium2Driver -b fix-master-build
cd MinkSelenium2Driver
composer install
docker run -p 4444:4444 -v /dev/shm:/dev/shm --shm-size 2g selenium/standalone-firefox:2.53.1
php -dmemory_limit=3G -S localhost:8002 -t ./vendor/mink/driver-testsuite/web-fixtures
phpenv local 7.3.2
php ./vendor/bin/simple-phpunit --bootstrap ./vendor/autoload.php --configuration ./phpunit.xml.dist
###########################
➜ 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment