From: enumag at gmail dot com
Operating system: Ubuntu
PHP version: 7.3.4
Package: Unknown/Other Function
Bug Type: Bug
Bug description:Segmentation fault in PHP 7.3.4 when running phpunit
Description:
------------
Since we upgraded to PHP 7.3 our phpunit tests crash with segfault. It's
not one specific test though, it only happens when running the whole
suite.
I tried to generate the backtrace
(https://bugs.php.net/bugs-generating-backtrace.php) and I'm posting it
below. Hopefully I did it correctly but it's the first time I did
something like that. Let me know if it's not enough.
Actual result:
--------------
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".
PHPUnit 7.5.8 by Sebastian Bergmann and contributors.
............................................................. 61 /
1036 ( 5%)
............................................................. 122 /
1036 ( 11%)
............................................................. 183 /
1036 ( 17%)
............................................................. 244 /
1036 ( 23%)
............................................................. 305 /
1036 ( 29%)
.....
Program received signal SIGSEGV, Segmentation fault.
zend_mm_alloc_small (bin_num=<optimized out>, size=56,
heap=0x7ffff3000040) at ./Zend/zend_alloc.c:1289
1289 ./Zend/zend_alloc.c: No such file or directory.
(gdb) bt
#0 zend_mm_alloc_small (bin_num=<optimized out>, size=56,
heap=0x7ffff3000040) at ./Zend/zend_alloc.c:1289
#1 zend_mm_alloc_heap (size=56, heap=0x7ffff3000040) at
./Zend/zend_alloc.c:1360
#2 _emalloc (size=size@entry=56) at ./Zend/zend_alloc.c:2500
#3 0x00005555557e4445 in zend_string_alloc (persistent=0, len=28) at
./Zend/zend_string.h:133
#4 zend_string_tolower_ex (str=0x7fffe06bb000,
persistent=persistent@entry=0) at ./Zend/zend_operators.c:2677
#5 0x00005555557df85f in zend_lookup_class_ex
(name=name@entry=0x7fffe06bb000, key=key@entry=0x0,
use_autoload=use_autoload@entry=1) at ./Zend/zend_execute_API.c:851
#6 0x00005555557ed333 in zend_is_callable_check_class (name=<optimized
out>, scope=0x7ffff30c3428, fcc=fcc@entry=0x7fffffffa2e0,
strict_class=strict_class@entry=0x7fffffffa2d8, error=error@entry=0x0)
at ./Zend/zend_API.c:2957
#7 0x00005555557f3982 in zend_is_callable_impl (error=0x0,
fcc=0x7fffffffa2e0, check_flags=<optimized out>, object=0x0,
callable=0x7ffff3025c90) at ./Zend/zend_API.c:3406
#8 zend_is_callable_ex (callable=0x7ffff3025c90, object=0x0,
check_flags=<optimized out>, callable_name=0x0, fcc=<optimized out>,
error=0x0) at ./Zend/zend_API.c:3460
#9 0x00005555558793b0 in zend_check_type (is_return_type=<optimized
out>, scope=<optimized out>, default_value=<optimized out>,
cache_slot=<optimized out>, ce=<optimized out>, arg=0x7ffff3000070,
type=<optimized out>) at ./Zend/zend_execute.c:929
#10 zend_verify_arg_type (cache_slot=<optimized out>,
default_value=<optimized out>, arg=<optimized out>, arg_num=<optimized
out>, zf=<optimized out>) at ./Zend/zend_execute.c:958
#11 ZEND_RECV_INIT_SPEC_CONST_HANDLER () at
./Zend/zend_vm_execute.h:2251
#12 execute_ex (ex=0x2c04b90) at ./Zend/zend_vm_execute.h:55601
#13 0x000055555587bcb3 in zend_execute
(op_array=op_array@entry=0x7ffff30822a0, return_value=0x0,
return_value@entry=0x7ffff30b1d20) at ./Zend/zend_vm_execute.h:60881
#14 0x00005555557ece22 in zend_execute_scripts (type=type@entry=8,
retval=0x7ffff30b1d20, retval@entry=0x0, file_count=-217949136,
file_count@entry=3) at ./Zend/zend.c:1568
#15 0x000055555578ce70 in php_execute_script
(primary_file=0x7fffffffc9a0) at ./main/main.c:2630
#16 0x000055555587e18c in do_cli (argc=6, argv=0x555555bfa570) at
./sapi/cli/php_cli.c:997
#17 0x000055555564490b in main (argc=6, argv=0x555555bfa570) at
./sapi/cli/php_cli.c:1389
--
Edit bug report at https://bugs.php.net/bug.php?id=77922&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77922&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77922&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77922&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77922&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77922&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77922&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77922&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77922&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77922&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77922&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77922&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77922&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77922&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77922&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77922&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77922&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77922&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77922&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77922&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77922&r=mysqlcfg