|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-10-10 23:56 UTC] justin at serverpilot dot io
Description:
------------
Loading the WordPress admin interface ("/wp-admin") results in a segfault.
This crash started with RC3 (RC2 worked fine). The problem is still happening with RC4.
Disabling the opcache fixes the problem.
No non-core extensions are loaded.
Only tested with FPM.
I can provide access to a test server, if desired.
Actual result:
--------------
Program received signal SIGSEGV, Segmentation fault.
0x000055ff60010cf0 in ZEND_SUB_LONG_SPEC_TMPVARCV_TMPVARCV_HANDLER () at /opt/sp/packages/php7.2/build/build/php-7.2.0RC4/Zend/zend_vm_execute.h:54366
54366 /opt/sp/packages/php7.2/build/build/php-7.2.0RC4/Zend/zend_vm_execute.h: No such file or directory.
(gdb) bt
#0 0x000055ff60010cf0 in ZEND_SUB_LONG_SPEC_TMPVARCV_TMPVARCV_HANDLER () at /opt/sp/packages/php7.2/build/build/php-7.2.0RC4/Zend/zend_vm_execute.h:54366
#1 execute_ex (ex=0x50) at /opt/sp/packages/php7.2/build/build/php-7.2.0RC4/Zend/zend_vm_execute.h:63628
#2 0x000055ff6001681e in zend_execute (op_array=0x7fa054473000, op_array@entry=0x7fa0428a1278, return_value=0x0, return_value@entry=0x7fa05441ceb0)
at /opt/sp/packages/php7.2/build/build/php-7.2.0RC4/Zend/zend_vm_execute.h:63763
#3 0x000055ff5ff65533 in zend_execute_scripts (type=type@entry=8, retval=0x7fa05441ceb0, retval@entry=0x0, file_count=file_count@entry=3)
at /opt/sp/packages/php7.2/build/build/php-7.2.0RC4/Zend/zend.c:1496
#4 0x000055ff5ff00cb0 in php_execute_script (primary_file=0x7fff91746a50) at /opt/sp/packages/php7.2/build/build/php-7.2.0RC4/main/main.c:2590
#5 0x000055ff5fbbca19 in main (argc=<optimized out>, argv=<optimized out>) at /opt/sp/packages/php7.2/build/build/php-7.2.0RC4/sapi/fpm/fpm/fpm_main.c:1966
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 08:00:02 2025 UTC |
Here's the rest of following the code until where it crashes. In wp-includes/class-wp-query.php crashes at $q['orderby'] = addslashes_gpc( $q['orderby'] ); Which is in wp-includes/formatting.php and crashes when calling: return wp_slash($gpc); Which is in the same file (wp-includes/formatting.php) and crashes at: $value = addslashes( $value ); The var_dump of $value at that time is: string(8) "modified" The entire wp_slash() function is: function wp_slash( $value ) { if ( is_array( $value ) ) { foreach ( $value as $k => $v ) { if ( is_array( $v ) ) { $value[$k] = wp_slash( $v ); } else { $value[$k] = addslashes( $v ); } } } else { $value = addslashes( $value ); } return $value; }