php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66314 segfault on connecting
Submitted: 2013-12-18 00:06 UTC Modified: -
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: yardenack at gmail dot com Assigned:
Status: Open Package: ssh2 (PECL)
PHP Version: 5.5.7 OS: Arch Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-12-18 00:06 UTC] yardenack at gmail dot com
Description:
------------
I've been using php-ssh2 on Arch Linux from within Wordpress, which lets you update over ssh/sftp like this: define('FS_METHOD','ssh2');

The AUR package is here: https://aur.archlinux.org/packages/php-ssh

Version 0.12 of this package does not work at all - it segfaults every time. Reverting the PKGBUILD 0.11.3 and rebuilding against current PHP versions does work.

Doing a git bisect, I've narrowed down the problematic commit to this: https://git.php.net/?p=pecl/networking/ssh2.git;a=commitdiff;h=8d73279c

I'm not a C or PHP expert. I don't know why this commit breaks it, but I do know that reverting it makes master/head work again, as demonstrated here: https://github.com/yardenac/php-ssh2/commit/ddaa6a08

An updated PKGBUILD for Arch also demonstrates this fix: https://github.com/yardenac/pkgbuilds/tree/master/packages/php-ssh-git

I understand 8d73279c was itself a bugfix (to recognize files with "#" in their path), so the best solution will take further examination.


Patches

fix-segfault (last revision 2013-12-18 00:06 UTC by yardenack at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Aug 20 13:01:27 2019 UTC