WordPress 4.1 causes segfault in php-ssh2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-ssh2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Upstream php5 bug: https:/
Bug description:
- I installed vanilla WordPress 4.1 (from wordpress.org, not the Ubuntu repos)
- Several of the configuration pages, in particular wp-admin/
- The apache error log showed that apache2 was SEGFAULTing
- The log also showed that a coredump was being dropped in /etc/apache2
- I started gdb with /usr/sbin/apache2 and loaded the core file. The backtrace is below; the core file is also attached.
- The backtrace showed that the last non-library frame was php_ssh2_
- A quick Google search turned up the PHP5 bug above
- I rebuilt php-ssh2 with the patch from the upstream bug (reproduced below) and it solves the problem.
Relevant package versions:
- Up-to-date 14.04 install (as of 3 January 2015)
- libssh-php 0.12-1
- php5 5.5.9+dfsg-1ubuntu4
- apache2 2.4.7-1ubuntu4
- openssh 1:6.6p1-2ubuntu1
Backtrace and coredump
#0 strlen () at ../sysdeps/ x86_64/ strlen. S:106 apache2/ modules/ libphp5. so fopen_wraper_ parse_path () php5/20121212/ ssh2.so php5/20121212/ ssh2.so stat_path () apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so execute_ internal () apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so scripts () apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so apache2/ modules/ libphp5. so async_request () process_ connection () apache2/ modules/ mod_mpm_ prefork. so apache2/ modules/ mod_mpm_ prefork. so
#1 0x00007fcf8ea76f90 in _estrdup () from /usr/lib/
#2 0x00007fcf839ab2e0 in php_ssh2_
from /usr/lib/
#3 0x00007fcf839af25c in ?? () from /usr/lib/
#4 0x00007fcf8ea55457 in _php_stream_
from /usr/lib/
#5 0x00007fcf8e9d1ed5 in ?? () from /usr/lib/
#6 0x00007fcf8e9d40db in zif_is_file () from /usr/lib/
#7 0x00007fcf8e908681 in ?? () from /usr/lib/
#8 0x00007fcf8ea8bc6b in dtrace_
from /usr/lib/
#9 0x00007fcf8eb4bcc5 in ?? () from /usr/lib/
#10 0x00007fcf8eac59f8 in execute_ex () from /usr/lib/
#11 0x00007fcf8ea8bb69 in dtrace_execute_ex () from /usr/lib/
#12 0x00007fcf8eb4c310 in ?? () from /usr/lib/
#13 0x00007fcf8eac59f8 in execute_ex () from /usr/lib/
#14 0x00007fcf8ea8bb69 in dtrace_execute_ex () from /usr/lib/
#15 0x00007fcf8eb4c310 in ?? () from /usr/lib/
#16 0x00007fcf8eac59f8 in execute_ex () from /usr/lib/
#17 0x00007fcf8ea8bb69 in dtrace_execute_ex () from /usr/lib/
#18 0x00007fcf8eb4c310 in ?? () from /usr/lib/
#19 0x00007fcf8eac59f8 in execute_ex () from /usr/lib/
#20 0x00007fcf8ea8bb69 in dtrace_execute_ex () from /usr/lib/
#21 0x00007fcf8eb4c310 in ?? () from /usr/lib/
#22 0x00007fcf8eac59f8 in execute_ex () from /usr/lib/
#23 0x00007fcf8ea8bb69 in dtrace_execute_ex () from /usr/lib/
#24 0x00007fcf8eb4c310 in ?? () from /usr/lib/
---Type <return> to continue, or q <return> to quit---
#25 0x00007fcf8eac59f8 in execute_ex () from /usr/lib/
#26 0x00007fcf8ea8bb69 in dtrace_execute_ex () from /usr/lib/
#27 0x00007fcf8eb4c310 in ?? () from /usr/lib/
#28 0x00007fcf8eac59f8 in execute_ex () from /usr/lib/
#29 0x00007fcf8ea8bb69 in dtrace_execute_ex () from /usr/lib/
#30 0x00007fcf8ea9d5f0 in zend_execute_
from /usr/lib/
#31 0x00007fcf8ea3d4d5 in php_execute_script ()
from /usr/lib/
#32 0x00007fcf8eb4d94a in ?? () from /usr/lib/
#33 0x00007fcf92c2c680 in ap_run_handler ()
#34 0x00007fcf92c2cbc9 in ap_invoke_handler ()
#35 0x00007fcf92c4216a in ap_process_
#36 0x00007fcf92c42444 in ap_process_request ()
#37 0x00007fcf92c3ef02 in ?? ()
#38 0x00007fcf92c35cc0 in ap_run_
#39 0x00007fcf8f46d767 in ?? () from /usr/lib/
#40 0x00007fcf8f46d9a6 in ?? () from /usr/lib/
#41 0x0000...