Skip to content

Instantly share code, notes, and snippets.

@jbq
Last active October 23, 2017 17:31
Show Gist options
  • Save jbq/9ebfc714f879cd81cce4ec0d3c4b0749 to your computer and use it in GitHub Desktop.
Save jbq/9ebfc714f879cd81cce4ec0d3c4b0749 to your computer and use it in GitHub Desktop.
PHP crash in zend_hash_find_bucket()
(gdb) run bin/console my:program
Starting program: /usr/bin/php bin/console my:program
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Checking notifications
Program received signal SIGSEGV, Segmentation fault.
zend_hash_find_bucket (ht=0x0, ht@entry=0x80000031101ac290, ht=0x0, ht@entry=0x80000031101ac290, key=0x7fffe34328e0, key@entry=0x0) at ./Zend/zend_hash.c:479
479 ./Zend/zend_hash.c: No such file or directory.
(gdb) bt
#0 zend_hash_find_bucket (ht=0x0, ht@entry=0x80000031101ac290, ht=0x0, ht@entry=0x80000031101ac290, key=0x7fffe34328e0, key@entry=0x0) at ./Zend/zend_hash.c:479
#1 zend_hash_find (ht=ht@entry=0x0, key=key@entry=0x7fffe34328e0) at ./Zend/zend_hash.c:1958
#2 0x0000000000501bfb in zend_hash_exists_ind (key=0x7fffe34328e0, ht=0x0) at ./Zend/zend_hash.h:315
#3 zend_symtable_exists_ind (key=0x7fffe34328e0, ht=0x0) at ./Zend/zend_hash.h:446
#4 zif_array_key_exists (execute_data=<optimized out>, return_value=0x7ffff5e16c20) at ./ext/standard/array.c:5484
#5 0x0000000000627fc6 in ZEND_DO_ICALL_SPEC_RETVAL_USED_HANDLER () at ./Zend/zend_vm_execute.h:675
#6 0x00000000006169eb in execute_ex (ex=<optimized out>) at ./Zend/zend_vm_execute.h:429
#7 0x0000000000672ea0 in zend_execute (op_array=0x7ffff5e7f000, op_array@entry=0x7fffe23dd960, return_value=return_value@entry=0x7ffff5e165e0) at ./Zend/zend_vm_execute.h:474
#8 0x00000000005cd483 in zend_execute_scripts (type=type@entry=8, retval=0x7ffff5e165e0, retval@entry=0x0, file_count=file_count@entry=3) at ./Zend/zend.c:1480
#9 0x00000000005693b0 in php_execute_script (primary_file=0x7fffffffc820) at ./main/main.c:2552
#10 0x000000000067511a in do_cli (argc=0, argv=0x7fffe34328e0) at ./sapi/cli/php_cli.c:993
#11 0x0000000000444b62 in main (argc=0, argv=0x7fffe34328e0) at ./sapi/cli/php_cli.c:1381
(gdb) quit
A debugging session is active.
Inferior 1 [process 586] will be killed.
Quit anyway? (y or n) y
root@9609603f4bfa:/pimcore# php -v
PHP 7.1.10-1+0~20170929170631.9+jessie~1.gbp501135 (cli) (built: Sep 29 2017 17:33:58) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.10-1+0~20170929170631.9+jessie~1.gbp501135, Copyright (c) 1999-2017, by Zend Technologies
root@9609603f4bfa:/pimcore#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment