Bug #75357 [Opn]: segfault loading WordPress wp-admin

From: Date: Thu, 12 Oct 2017 16:08:18 +0000
Subject: Bug #75357 [Opn]: segfault loading WordPress wp-admin
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211645@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75357&edit=1 ID: 75357 User updated by: justin at serverpilot dot io Reported by: justin at serverpilot dot io Summary: segfault loading WordPress wp-admin Status: Open Type: Bug Package: opcache Operating System: Ubuntu 16.04 x64 PHP Version: 7.2.0RC3 Block user comment: N Private report: N New Comment: I've only tested with the latest WordPress version (4.8.2). It may be only /wp-admin/index.php that triggers the problem. If clicking around in wp-admin's navigation to other pages besides /wp-admin/index.php and /wp-admin/index.php has not been requested since FPM was restarted, the other wp-admin pages don't crash. Trying to narrow down the code where the crash is happening, here is the chain of function calls that, if any of them are not performed, the crash doesn’t happen. In wp-admin/index.php crashes at: <?php wp_dashboard(); ?> Which is in wp-admin/includes/dashboard.php and crashes at: <?php do_meta_boxes( $screen->id, 'side', '' ); ?> Which is in wp-admin/includes/template.php and crashes at: call_user_func($box['callback'], $object, $box); This is the var_dump() output of $box['callback'] when it crashes: string(24) "wp_dashboard_quick_press" That function is in wp-admin/includes/dashboard.php and crashes at: wp_dashboard_recent_drafts(); Which is in wp-admin/includes/dashboard.php and crashes at: $drafts = get_posts( $query_args ); Which is in wp-includes/post.php and crashes at: return $get_posts->query($r); Which is in wp-includes/class-wp-query.php and crashes at: return $this->get_posts(); I’m not sure where in WP_Query::get_posts() it’s crashing. Unfortunately I don’t have time to dig into it right now. I hope that helps. Previous Comments: ------------------------------------------------------------------------ [2017-10-12 08:34:40] laruence@php.net which version of wordpress are you using? ------------------------------------------------------------------------ [2017-10-10 23:56:33] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75357&edit=1

« previous php.bugs (#211645) next »