Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-SSH2 CPAN distribution.

Report information
The Basics

Nobody in particular
Robert-jean.Denault [...]

(no value)
Broken in:
(no value)
Fixed in:
(no value)

Subject: Segmentation Fault when using debug(1) when releasing SFTP object
Date: Mon, 16 Aug 2010 16:44:11 -0400
To: "''" <>
From: Robert-Jean Denault <>

When creating an sftp object using the with debugging turned on $ssh2->debug(1).  The Perl instance will die with a segment violation when the SFTP object goes out of scope.  The same code run with $ssh2->debug(0), will run successfully.


Result of the Debug session:

libssh2_sftp_init(ss->session) -> 0x1ef11180

hv_from_attrs: attrs->flags = 15

libssh2_sftp_open_ex(sf->sftp, (char*)pv_dir, len_dir, 0 , 0 , 1) -> 0x1ef10200

hv_from_attrs: attrs->flags = 15

hv_from_attrs: attrs->flags = 15

hv_from_attrs: attrs->flags = 15

hv_from_attrs: attrs->flags = 15

hv_from_attrs: attrs->flags = 15

hv_from_attrs: attrs->flags = 15

hv_from_attrs: attrs->flags = 15



Segmentation fault


Distribution Net-SSH2-0.33

Perl version: This is perl 5, version 12, subversion 1 (v5.12.1) built for x86_64-linux-thread-multi

OS Verndor: Linux RHEL-GW-try1 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux


Robert Denault
Programmeur-analyste principal II/ Senior Programmer-Analyst II

TELUS Solutions en santé | avec l’expertise d’Emergis
TELUS Health Solutions | backed by Emergis
T : (450) 928 6000 x 3740
T : 1 (866) 363 7447 x 3740



Le présent courriel et tout document joint sont destinés uniquement à la personne ou à l’entité à qui il est adressé et peut contenir des renseignements confidentiels. Si vous n’êtes pas le destinataire visé, veuillez nous en informer sans délai et détruire le courriel et les documents ainsi que toute copie qui en aurait été faite. Merci

This email, including any attachments, is for the sole use of the intended recipient and may contain confidential information.  If you are not the intended recipient, please notify us immediately and destroy this email and any copies.  Thank you.



Image displayed inline above

This seems fixed in the development branch.

This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with to