ssh2-python icon indicating copy to clipboard operation
ssh2-python copied to clipboard

Core dump when calling session.methods()

Open fcaspar-weefin opened this issue 1 year ago • 0 comments

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.]

  • ubuntu 22.04
  • python 3.10.12
  • ssh2-python 1.0.0

fcaspar-weefin avatar Jan 08 '24 10:01 fcaspar-weefin