libssh2-php segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php-ssh2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Since the PHP security update on/around Aug 10 (5.5.9+
$host = "...";
$port = 22;
$user = "...";
$pubkeyfile = "...";
$privkeyfile = "...";
$path = "...";
$conn = ssh2_connect($host, $port);
ssh2_auth_
$handle = ssh2_sftp($conn);
scandir("ssh2.sftp://
# lsb_release -rd
Description: Ubuntu 14.04.5 LTS
Release: 14.04
# apt-cache policy libssh2-php
libssh2-php:
Installed: 0.12-1build1
Candidate: 0.12-1build1
Version table:
*** 0.12-1build1 0
500 http://
500 http://
500 http://
100 /var/lib/
# gdb backtrace
Program received signal SIGSEGV, Segmentation fault. [340/2496]
__strstr_
22 ../sysdeps/
(gdb) bt
#0 __strstr_
#1 0x00007fffec0302d8 in php_ssh2_
#2 0x00007fffec0340b2 in ?? () from /usr/lib/
#3 0x000000000069fd62 in _php_stream_opendir ()
#4 0x00000000006a05b4 in _php_stream_scandir ()
#5 0x0000000000612741 in zif_scandir ()
#6 0x00000000006d5c2b in dtrace_
#7 0x0000000000795020 in ?? ()
...
#37 0x0000000000795670 in ?? ()
#38 0x000000000070f958 in execute_ex ()
#39 0x00000000006d5b29 in dtrace_execute_ex ()
#40 0x00000000006e71b0 in zend_execute_
Status changed to 'Confirmed' because the bug affects multiple users.