Skip Menu |

This queue is for tickets about the Net-LDAP-Server-Test CPAN distribution.

Report information
The Basics
Id: 68682
Status: resolved
Priority: 0/
Queue: Net-LDAP-Server-Test

People
Owner: karman [...] cpan.org
Requestors: gsollazz [...] sgul.ac.uk
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.11
Fixed in: (no value)



Subject: Test fails as creating two listening ports
Hi, I think I might have a possible bug unless I've missed something very basic. I'm trying to install Net::LDAP::Server::Test from cpan on a CentOs 5.5. What I get is the following output, highlighting a socket issue: Removing previously used /root/.cpan/build/Net-LDAP-Server-Test-0.11 [...] CPAN.pm: Going to build K/KA/KARMAN/Net-LDAP-Server-Test-0.11.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Net::LDAP::Server::Test cp lib/Net/LDAP/Server/Test.pm blib/lib/Net/LDAP/Server/Test.pm Manifying blib/man3/Net::LDAP::Server::Test.3pm /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.t ....... 1/1 # Testing Net::LDAP::Server::Test 0.11, Perl 5.008008, /usr/bin/perl t/00-load.t ....... ok t/01-ldap.t ....... 1/12 Creating new LDAP server on port 10636 ... Accepted connection from: 127.0.0.1 Creating new LDAP server on port 10636 ... Unable to listen on port 10636: Address already in use at /root/.cpan/build/Net-LDAP-Server-Test- 0.11/blib/lib/Net/LDAP/Server/Test.pm line 852. ... shutting down server And there it stays frozen. It seems it tries to create the server twice (Test.pm:852). I've tried disabling iptables, no change.
From: gsollazz [...] sgul.ac.uk
Just to add... the same happens compiling from source (0.11) when running make test. On Tue Jun 07 09:06:03 2011, gsollazz wrote: Show quoted text
> Hi, > I think I might have a possible bug unless I've missed something very > basic. > > I'm trying to install Net::LDAP::Server::Test from cpan on a CentOs
5.5. Show quoted text
> What I get is the following output, highlighting a socket issue: > > > Removing previously used /root/.cpan/build/Net-LDAP-Server-Test-0.11 > > [...] > CPAN.pm: Going to build K/KA/KARMAN/Net-LDAP-Server-Test-0.11.tar.gz > > Checking if your kit is complete... > Looks good > Writing Makefile for Net::LDAP::Server::Test > cp lib/Net/LDAP/Server/Test.pm blib/lib/Net/LDAP/Server/Test.pm > Manifying blib/man3/Net::LDAP::Server::Test.3pm > /usr/bin/make -- OK > Running make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/00-load.t ....... 1/1 # Testing Net::LDAP::Server::Test 0.11, Perl > 5.008008, /usr/bin/perl > t/00-load.t ....... ok > t/01-ldap.t ....... 1/12 Creating new LDAP server on port 10636 ... > Accepted connection from: 127.0.0.1 > Creating new LDAP server on port 10636 ... > Unable to listen on port 10636: Address already in use at > /root/.cpan/build/Net-LDAP-Server-Test- > 0.11/blib/lib/Net/LDAP/Server/Test.pm line 852. > ... shutting down server > > > And there it stays frozen. It seems it tries to create the server
twice Show quoted text
> (Test.pm:852). > > I've tried disabling iptables, no change.
I can't seem to duplicate on my CentOS 5.6 box with Perl 5.8.9 or 5.10.0. The socket should be freed whenever the $server object is DESTROY'd -- can you edit the lib/Net/LDAP/Server/Test.pm file and comment-in the debugging lines in the sub DESTROY method? Then run each test individually: % perl -Ilib t/01-ldap.t and see what's happening.
From: gsollazz [...] sgul.ac.uk
Hi Karman thanks for the advice. I managed to work out what was going on: iptables wasn't working properly, and was affecting the socket. So apologies about this - not a bug. Can be rejected. Best regards. On Tue Jun 07 10:12:42 2011, KARMAN wrote: Show quoted text
> I can't seem to duplicate on my CentOS 5.6 box with Perl 5.8.9 or
5.10.0. Show quoted text
> > The socket should be freed whenever the $server object is DESTROY'd -- > can you edit the lib/Net/LDAP/Server/Test.pm file and comment-in the > debugging lines in the sub DESTROY method? Then run each test > individually: > > % perl -Ilib t/01-ldap.t > > and see what's happening.