tag:blogger.com,1999:blog-12753102.post6972997101252020070..comments2024-03-28T15:41:37.170-04:00Comments on Ben's Journal: Gotcha of the Day: WordPress 4.6 Crashes with a Segfault when Serving HTTPs ContentBen Simonhttp://www.blogger.com/profile/09833753747177544979noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-12753102.post-89710676665427631072016-10-20T14:33:01.117-04:002016-10-20T14:33:01.117-04:00I am seeing segfaults on WP after upgrade from 4.5...I am seeing segfaults on WP after upgrade from 4.5.2 to 4.6.1, OSSEC began reporting the notices soon after upgrade. I am not seeing many issues on the front end, however. I am not running HTTPS on this server, and am actively working on an nginx implementation.<br /><br />I’ve backtraced the segfault problem via gdb, but there is not much detail to the results. I’ve changed logging to debug, and the lines surrounding the segfault mostly include wordpress’ static file server, ms-files.php.<br /> <br />Not sure what’s up, but I recently upgraded WordPress on that server to 4.6.1, so if this issue just started since last week, it could be something to do with the upgrade.<br /> <br />I did change PHP’s header output buffering to 8192 from 4096, and this seems to make the segfault happen less frequently.<br /><br /> pid 52015<br /> (gdb) backtrace<br /> #0 0x00007ff355a67f00 in ?? () from /etc/httpd/modules/libphp5.so<br />...<br /> #6 0x00007ff355be8ac0 in execute () from /etc/httpd/modules/libphp5.so<br /> #7 0x00007ff355bb93f5 in zend_call_function () from /etc/httpd/modules/libphp5.so<br /> #8 0x00007ff355b10e67 in ?? () from /etc/httpd/modules/libphp5.so<br /> #9 0x00007ff355c11978 in ?? () from /etc/httpd/modules/libphp5.so<br /> #10 0x00007ff355be8ac0 in execute () from /etc/httpd/modules/libphp5.so<br /> #11 0x00007ff355bc2cad in zend_execute_scripts () from /etc/httpd/modules/libphp5.so<br /> #12 0x00007ff355b70c18 in php_execute_script () from /etc/httpd/modules/libphp5.so<br /> #13 0x00007ff355c4c335 in ?? () from /etc/httpd/modules/libphp5.so<br /> #14 0x00007ff360662fa0 in ap_run_handler ()<br /> #15 0x00007ff36066685e in ap_invoke_handler ()<br /> #16 0x00007ff360671dcc in ap_internal_redirect ()<br /> #17 0x00007ff3575a9a15 in ?? () from /etc/httpd/modules/mod_rewrite.so<br /> #18 0x00007ff360662fa0 in ap_run_handler ()<br /> #19 0x00007ff36066685e in ap_invoke_handler ()<br /> #20 0x00007ff360671f90 in ap_process_request ()<br /> #21 0x00007ff36066edd8 in ?? ()<br /> #22 0x00007ff36066aac8 in ap_run_process_connection ()<br /> #23 0x00007ff360676d1d in ?? ()<br /> #24 0x00007ff360677029 in ?? ()<br /> #25 0x00007ff360677cac in ap_mpm_run ()<br /> #26 0x00007ff36064ea80 in main ()<br /> <br /> --<br /> [Wed Oct 19 15:04:44 2016] [debug] mod_headers.c(743): headers: ap_headers_output_filter()<br /> [Wed Oct 19 15:04:44 2016] [debug] mod_deflate.c(687): [client 172.27.72.6] Zlib: Compressed 10233 to 10089 : URL /wp-includes/ms-files.php, referer: http://www.utc.edu/<br /> [Wed Oct 19 15:04:44 2016] [debug] mod_headers.c(743): headers: ap_headers_output_filter()<br /> [Wed Oct 19 15:04:44 2016] [debug] mod_deflate.c(687): [client 172.27.72.6] Zlib: Compressed 18305 to 18153 : URL /wp-includes/ms-files.php, referer: http://www.utc.edu/<br /> [Wed Oct 19 15:04:44 2016] [debug] mod_headers.c(743): headers: ap_headers_output_filter()<br /> [Wed Oct 19 15:04:44 2016] [debug] mod_deflate.c(687): [client 172.27.72.6] Zlib: Compressed 20250 to 20069 : URL /wp-includes/ms-files.php, referer: http://www.utc.edu/<br /> [Wed Oct 19 15:04:44 2016] [debug] mod_headers.c(743): headers: ap_headers_output_filter()<br /> [Wed Oct 19 15:04:44 2016] [debug] mod_deflate.c(687): [client 172.27.72.6] Zlib: Compressed 29124 to 4040 : URL /index.php<br /> [Wed Oct 19 15:04:44 2016] [debug] mod_headers.c(743): headers: ap_headers_output_filter()<br /> [Wed Oct 19 15:04:45 2016] [debug] mod_headers.c(743): headers: ap_headers_output_filter()<br /> [Wed Oct 19 15:04:45 2016] [notice] child pid 52858 exit signal Segmentation fault (11)<br /> [Wed Oct 19 15:04:45 2016] [debug] mod_headers.c(743): headers: ap_headers_output_filter()<br /> [Wed Oct 19 15:04:45 2016] [debug] mod_headers.c(743): headers: ap_headers_output_filter()<br /> [Wed Oct 19 15:04:47 2016] [debug] mod_headers.c(743): headers: ap_headers_output_filter()<br /> [Wed Oct 19 15:04:47 2016] [debug] mod_deflate.c(687): [client 172.27.72.6] Zlib: Compressed 0 to 2 : URL /wp-cron.php, referer: http://blog.utc.edu/business/wp-cron.php?doing_wp_cron=1476903887.2620859146118164062500<br /> [Wed Oct 19 15:04:47 2016] [debug] mod_headers.c(743): headers: ap_headers_output_filter()<br /> --<br /><br />Anonymoushttps://www.blogger.com/profile/09952386802866247483noreply@blogger.comtag:blogger.com,1999:blog-12753102.post-10904484634312643332016-09-23T05:12:31.674-04:002016-09-23T05:12:31.674-04:00Thank you! This error was driving me crazy.
I jus...Thank you! This error was driving me crazy.<br /><br />I just experienced it today - it broke Plugins, Themes, Settings and some other pages in my WP Multisite admin as well as for some of the individual site's admin pages. In Chrome, the error is quite different: ERR_EMPTY_RESPONSE.<br /><br />After finding your post, I checked my apache logs and see the same segfault as you do. It seems to have been triggered after an automatic restart of Apache this morning. I suspect it is related to an unattended upgrade that ran earlier in the morning, upgrading openssl:amd64 from version 1.0.2g-1ubuntu4.1 to 1.0.2g-1ubuntu4.4.<br /><br />I updated Wordpress to 4.6 and 4.6.1 a while ago, so it may be the specific combination of these Wordpress and OpenSSL version that causes problems.<br /><br />I'll try to follow your downgrade instructions and see if that helps.<br /><br />A bit of extra info from anyone else experiencing this:<br /><br />The Apache error log from yesterday starts with<br /><br />[Thu Sep 22 06:25:01.966435 2016] [mpm_prefork:notice] [pid 30521] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g-fips configured -- resuming normal operations<br />[Thu Sep 22 06:25:01.966454 2016] [core:notice] [pid 30521] AH00094: Command line: '/usr/sbin/apache2'<br /><br />The error log from today starts with<br /><br />[Fri Sep 23 06:25:03.260257 2016] [mpm_prefork:notice] [pid 30521] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations<br />[Fri Sep 23 06:25:03.260271 2016] [core:notice] [pid 30521] AH00094: Command line: '/usr/sbin/apache2'<br />[Fri Sep 23 06:25:16.276552 2016] [core:notice] [pid 30521] AH00051: child pid 16323 exit signal Segmentation fault (11), possible coredump in /etc/apache2<br /><br />...and the segfaults just keep on coming.Jonashttps://www.blogger.com/profile/05044979283768727077noreply@blogger.comtag:blogger.com,1999:blog-12753102.post-20136091754071076222016-09-06T22:09:49.918-04:002016-09-06T22:09:49.918-04:00Thanks for sharing my tutorial on downgrading Word...Thanks for sharing my tutorial on downgrading WordPress!Anonymoushttps://www.blogger.com/profile/03644547039848033604noreply@blogger.comtag:blogger.com,1999:blog-12753102.post-20522414359082471252016-08-17T14:08:48.677-04:002016-08-17T14:08:48.677-04:00Having a great rollback story is good approach in ...Having a great rollback story is good approach in software and life.grant rettkehttps://www.blogger.com/profile/09439997834215273665noreply@blogger.com