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
 [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)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2023-07-22 05:35 UTC] yourhealthcarenews at gmail dot com
Your healthcare News are sharing latest news about fitness, asthma, haire care, eyes, health, treatment, weight loss etc. More info to visit: 
{https://yourhealthcarenews.com}github.com



























]








]
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 07:01:28 2024 UTC