Subject: | Segmentation Fault when using debug(1) when releasing SFTP object |
Date: | Mon, 16 Aug 2010 16:44:11 -0400 |
To: | "'bug-Net-SSH2 [...] rt.cpan.org'" <bug-Net-SSH2 [...] rt.cpan.org> |
From: | Robert-Jean Denault <Robert-jean.Denault [...] telus.com> |
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
Net::SSH2::Dir::DESTROY
Net::SSH2::SFTP::DESTROY
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
robert.denault@telus.com
telussante.com telushealth.com
[cid:image001.gif@01CB3D5F.CD5E06F0]
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.
.