php / pecl-networking-ssh2

Bindings for the libssh2 library
http://pecl.php.net/package/ssh2
Other
51 stars 58 forks source link

Segmentation fault libssh2 in SLES 15.5 #77

Open m0rt opened 3 months ago

m0rt commented 3 months ago

I've been testing with the libssh2 library in SLES 15.5.

But I have not been successful, as it sends me errors :

=> Segmentation fault (core dumped)

NAME="SLES"
VERSION="15-SP5"
VERSION_ID="15.5"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP5"
ID="sles"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:15:sp5"
DOCUMENTATION_URL="https://documentation.suse.com/"

PHP 8.0.30 (cli) (built: Aug 23 2023 12:00:00) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.30, Copyright (c) Zend Technologies

Command : php --ri ssh2

ssh2

SSH2 support => enabled
extension version => 1.3.1
libssh2 version => 1.9.0
banner => SSH-2.0-libssh2_1.9.0

Error : 2024-05-08T14:03:09.800215-06:00 testingssh kernel: [1716756.802772][T121893] traps: php[121893] general protection fault ip:7fcb6d077130 sp:7fff58adf368 error:0 in [libssh2.so](https://libssh2.so/).1.0.1[7fcb6d05b000+3e000]


NAME="SLES"
VERSION="15-SP5"
VERSION_ID="15.5"
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP5"
ID="sles"
ID_LIKE="suse"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:15:sp5"
DOCUMENTATION_URL="https://documentation.suse.com/"
PHP 8.1.28 (cli) (built: Apr 16 2024 12:00:00) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.28, Copyright (c) Zend Technologies

Command : php -m | grep ssh ssh2

php --ri ssh2


ssh2

SSH2 support => enabled
extension version => 1.4.1
libssh2 version => 1.11.0
banner => SSH-2.0-libssh2_1.11.0

Error : 2024-05-07T14:55:44.028103-06:00 testingssh2 kernel: [2155543.676531][T109564] traps: php[109564] general protection fault ip:7f08a9fe4130 sp:7fff217ba948 error:0 in [libssh2.so](https://libssh2.so/).1.0.1[7f08a9fc8000+3e000]

langemeijer commented 3 months ago

I'm puzzled. Does SLES 15.5 still provide PHP 8.0 and 8.1? Where did you get the ssh2 extension from? Did you build it yourself? Could it be that you or someone else built the extension against another PHP version and try to load it in 8.0 and 8.1?

m0rt commented 3 months ago

There are 2 different servers and if the php version was downloaded directly with the SLES package manager (zypper), in one the extension version was compiled, the other one is provided by SLES.