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
Id:
34018
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
r.liebig [...] telenet-ag.de
Cc:
AdminCc:

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



Subject: Bus Error(coredump) after DESTROY
Date: Wed, 12 Mar 2008 13:22:55 +0100
To: bug-Net-SSH2@rt.cpan.org
From: r.liebig@telenet-ag.de
Using Net::SSH2 Version 0.18 following program aborts with a "Bus Error" on a Solaris 10 system: ------------------------------------------------------------------------------------------------------------ use Net::SSH2; $host="testhost"; $user="testuser"; for(my $i=0; $i < 10; ++$i){ my $ssh2 = Net::SSH2->new; my $rc=$ssh2->connect($host); print "rc=$rc\n"; $ssh2->poll(250); my $a = $ssh2->auth_list($user); print "Authlist: $a\n"; my $type=$ssh2->auth(username => $user, publickey => "/tmp/testuser.pub", privatekey => "/tmp/testuser"); my $chan = $ssh2->channel(); $chan->blocking(0); $chan->shell(); print $chan 'hostname'."\n"; print <$chan>; $ssh2->disconnect; $ssh2 = undef; sleep 5 } -------------------------------------------------------------------------------------------------------------- pstack reports an error on a free-Statement. My tests seem to show, that this error only occurs, if the methods "auth_list" and "channel" are both called. The loop is required to ensure the garbage collection takes place. Kind regards Rainer Liebig Dr. Rainer Liebig Telenet AG Rhein-Main Frankfurter Straße 129 B 64293 Darmstadt Tel: +49 / 6151 / 733-357 Fax: +49 / 6151 / 733-325 Mobil: +49 / 175 / 18 60 943 Email: r.liebig@telenet-ag.de Web: www.telenet-ag.de Vorstand: Michael Vester Aufsichtsratsvorsitzender: Horst Benz Sitz: Darmstadt o Amtsgericht Darmstadt o HRB: 8223 ****************************************************************************** Bitte beachten: Seit dem 1.3.2008 haben wir eine neue Adresse. ******************************************************************************
This looks already fixed on the development version.


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.