ParallelSSH / ssh2-python

Python bindings for libssh2 C library.
https://parallel-ssh.org
GNU Lesser General Public License v2.1
228 stars 70 forks source link

Core dump when calling session.methods() #203

Open fcaspar-weefin opened 6 months ago

fcaspar-weefin commented 6 months ago

Bug reports

Hello, I'm getting a core dump when calling the methods() method of a session object.

Steps to reproduce:

  1. Example code that produces error.
from ssh2 import session as session_lib
session = session_lib.Session()
print(session.methods(session_lib.LIBSSH2_METHOD_HOSTKEY))
  1. Stack trace or error messages.

Expected behaviour: [What was expected to happen.]

Display the list of methods.

Actual behaviour: [What actually happened.]

Segmentation fault (core dumped)

Additional info: [Include version of libssh2 and any other relevant information.]