[ID 20000518.009] Bug/Inconsistency in POP3.pm (libnet) with perl5.6.0

Hi,

I have spent a couple of hours tearing my hair out over this, and found an
easy work-around... this happened since grabbing perl5.6 and libnet1.0703.

The problem: perl code using Net::POP3.pm was failing to connect to the
localhost.  Examining the logs showed it never tried - running with debug
showed the constructor always returned undef.  Grabbing the smtp port works
fine, as does sunrpc and a couple of other ports.  It turns out that the POP3
module attempts to get the port for "pop3" service, where this basically
standard Linux 2.2.13 (Redhat 6.1 with a kernel upgrade) has "pop-3" entries
in the /etc/services file instead.  Somehow perl 5.005 worked as it was. 
ARRRGGGH!!!

AFTER the light-bulb appeared over my head, I put pop3 entries in the services
file and all is well.  Is it possible to get libnet to check for alternatives
like this?  Or is this really a bug in perl's getservbyname?

Keep up the excellent work guys,
- Mitchell Brandsma (mitchell@pienetworks.com)
E-mail service provided by pieLINK (/)
0
Richard
6/7/2000 1:52:49 PM
perl.perl5.porters 47902 articles. 1 followers. Follow

1 Replies
295 Views

Similar Articles

[PageSpeed] 39

On Wed, 07 Jun 2000 15:52:49 +0200, Richard Foley wrote:
>I have spent a couple of hours tearing my hair out over this, and found an
>easy work-around... this happened since grabbing perl5.6 and libnet1.0703.
>
>The problem: perl code using Net::POP3.pm was failing to connect to the
>localhost.  Examining the logs showed it never tried - running with debug
>showed the constructor always returned undef.  Grabbing the smtp port works
>fine, as does sunrpc and a couple of other ports.  It turns out that the POP3
>module attempts to get the port for "pop3" service, where this basically
>standard Linux 2.2.13 (Redhat 6.1 with a kernel upgrade) has "pop-3" entries
>in the /etc/services file instead.  Somehow perl 5.005 worked as it was. 
>ARRRGGGH!!!
>
>AFTER the light-bulb appeared over my head, I put pop3 entries in the services
>file and all is well.  Is it possible to get libnet to check for alternatives
>like this?  Or is this really a bug in perl's getservbyname?

Yes, it is a bug in the new IO::Socket.

Thanks for reporting it.  You'll find a patch in the perl5-porters archives.
(See perlhack.pod for where that is.)


Sarathy
gsar@ActiveState.com
0
gsar
6/7/2000 5:33:33 PM
Reply:

Similar Artilces:

[ID 20000522.003] perl5.6.0 Sys::Syslog.pm setlogsock/_PATH_LOG/connect bug
This is a bug report for perl from rtm@cert.org, generated with the help of perlbug 1.28 running under perl v5.6.0. ----------------------------------------------------------------- [Please enter your report here] The Sys::Syslog::setlogsock uses "defined(&_PATH_LOG)" to determine whether a call with the argument 'unix' is acceptable. Unfortunately, &_PATH_LOG is unconditionally defined in Syslog.xs, so the argument 'unix' will always be accepted (and setlogsock will return success), even on systems where it won't work. Solaris 2.6 is suc...

BUG: "sub PKG::my_method" confuses caller() [perl5.8.0 and perl5.6.0]
Hello friends, i found a fishy behaviour of caller(). It <wrongly> discrimites=20 { package Perl; sub rules { } } from=20 sub Perl::rules { } EXAMPLE=20 The code below produces this output: Under perl5.8.0: Correct, bugsim.pl, 12 main, bugsim.pl, 18 Under perl5.6.0: Correct, C:\temp\MuratToolsCD\programming\perl\perl-5.8.0\bugsim.pl, 12 main, C:\temp\MuratToolsCD\programming\perl\perl-5.8.0\bugsim.pl, 18 #!/usr/bin/perl sub info { print join( ', ', caller ), "\n"; } { package Correct; sub mymethod { ::info...

[ID 20001107.006] Problems installing perl5.6.0, perl5.00405 on AIX
Hiya. I'm attempting to install both Perl 5.6 and/or Perl 5.4.5 on an AIX box running AIX 4.1.2. They both compile with no problems: they fail a few tests, but those still result in 99% functionality. What blows up is the install. Perl 5.4.5 reports an out of memory error upon installation, like so: root@appf ***** /netadmin/temp/perl5.004_05 28 % ./perl installperl -n cp perl /usr/local/bin/perl5.00405 chmod 755 /usr/local/bin/perl5.00405 Out of memory! ('top' shows 1400MB free virtual memory, 124MB free real memory, etc.)...

[ID 20010208.001] Net::POP3 problem with perl5.6.0
This is a bug report for perl from systemgroup@telenet-ops.be, generated with the help of perlbug 1.28 running under perl v5.6.0. ----------------------------------------------------------------- [Please enter your report here] when using perl 5.003 (and higher) the module Net::POP3 can be used as follow: #!/opt/perl/bin/perl use Net::POP3; if ($pop = Net::POP3->new($server) { #connection established } else { print "no connection\n"; } Now in perl 5.6.0, I have to type: if ($pop = Net::POP3->new($server, Port=>110)) { If I don't spe...

[ID 20010410.009] Bug installation Perl5 (Solaris 7)
------_=_NextPart_000_01C0C1DD.FD300610 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <<configure.txt>>=20 Help me please! Henrique Carvalho henrique.carvalho@tjdf.gov.br Analista de Suporte Tribunal de Justi=E7a do Distrito Federal - TJDF ------_=_NextPart_000_01C0C1DD.FD300610 Content-Type: text/plain; name="configure.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="configure.txt" =20 Beginning of configuration questions for perl5. ...

[ID 20010728.007] bug in perl5.6 regular expressions on solaris sun4
This is a bug report for perl from ravi@cshl.org, generated with the help of perlbug 1.20 running under perl 5.00404. ��va;perlbug.tar�[m�G��ם_Q������6�ƹH�L���� �55-z�g��1����_��<Q�=�1�uLwUVfdd�Gd�e;�<[v{�}�k�x�Ν;�{�`�D߷�ۯ�������r�pxr�����Dʯ墯�e�y�b�K����Vqt�E~X$?�u)��/��I�ۿ�?������ttxt����~�w��|pL^s�?�N9��R�1d����X>˕�:<�~�O�>eD�x�1�UZc����@Y[(o `�u}�5��5�m�}�t]m����5M��}�ۛ�<��Fg��u�7h�B�{�@֧) 0�:���2 �7�A���@֘7���������b��x�v徱�����å�6���Xf�b�7�~����ճ�i= �0z�]A����i��`��k�l�'�oB߼'�aT���m��e������X�-��ں7�...

[ID 20010122.153] [Fwd: bug whith perl5.6 on tru64 unix]
--------------19842CB0D01E60DAB79ECFC5 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: bug whith perl5.6 on tru64 unix Date: Mon, 22 Jan 2001 18:08:15 +0100 From: Sa�d El Mamouni <said.elmamouni@math.univ-nantes.fr> To: richard@perl.org Dear I've installed perl 5.6 on my dec Alpha Server under digital unix tru64 4.0F to use the Sympa software and when i execute it it tells me : Your vendor has not defined the Sys::Syslog macro _PATH_LOG at /usr/local/lib/perl5/5.6....

[ID 20000905.005] perl5.6.0, -d switch, and File::Glob causes breakage
This is a bug report for perl from djerius@cfa.harvard.edu, generated with the help of perlbug 1.28 running under perl v5.6.0. ----------------------------------------------------------------- One cannot use "perl -d" if the glob() function is used: pelf% perl -d -e 'print glob("*.pl"), "\n"' Default die handler restored. Loading DB routines from perl5db.pl version 1.07 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. "globally" is not defined in %File::Glob::EXPORT_TAGS at /p...

undef error
I get -undef error - Connection refused at /usr/lib/perl5/5.8.6/CGI/Carp.pm line 314. when creating/changing a bug- I file this at https://bugzilla.mozilla.org/show_bug.cgi?id=310999 But I guess, like an insurance claim processor, it's automatically reject as not 'really' a bug but I insist it is. I'm running Bugzilla Version 2.20rc2 on a Linux machine using a PostgreSQL db. This install was working just fine until one day I tried to commit bug #11 and everything blew up and now I get the following error message on bug 11 and all bugs one tries to commit after...

6.0 bug ... solved in 6.0.2 ?
We found an upsetting bug in 6.0 has does not affect our current 5.5.04 set-up. Datetime and date columns would not come up properly thru odbc : - the time portion of datetimes would be truncated, - dates would show up as datetimes with no time precision - not as proper dates.... An odbc pb that can replicated in both MS Access and MS VFP6. Tough! Before downloading the 30Mb .0.2 upgrade, i should like to know whether the odbc driver has been fixed in .0.1, 0.2. By the way is there a way to catch the FULL list of corrected bugs? Would definitely be great. Kind regards to a...

Perl5 Bug Summary #6
[ OSCON Edition! Schwern was right, we're under 1500! Let the heavy drinking ensue! If the format of this is screwy, sorry, travel mailer. -R ] Perl5 Bug Summary http://rt.perl.org/rt3/NoAuth/perl5/Overview.html Generated at Mon Aug 1 13:00:03 2005 GMT ------------------------------------------------------------------------------- * Total Issues * New Issues * Overview of Open Issues * Ticket Status By Version * Requestors with most open tickets ------------------------------------------------------------------------------- Total Issues ...

[ID 20000725.004] srand() test fails for both drand48 and random in perl5.6/solaris5.6/gcc2.8.1
platform: SunOS gulliver 5.6 Generic_105181-16 sun4u sparc SUNW,Ultra-2 compiler: gulliver% gcc -v Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/specs gcc version 2.8.1 issue: selecting drand48 or random both result in a perl build with a single test failure at test 7 of op/ran.t ( calling srand with no arg ) # Hints for TEST 7 # # This checks that srand without arguments gives # different sequences each time. Note: You shouldn't # be calling srand more than once unless you know # what you're doing! But if this fails on your # system, run perlbu...

[ID 20010427.002] Problem with "each %"-construct (BUG) 5.005, 5.6.0, 5.6.1
This is a bug report for perl from obh@nextra.com, generated with the help of perlbug 1.33 running under perl v5.6.1. ----------------------------------------------------------------- I believe there is an bug in the "each %{...}" construct and I have enclosed a program that exposes this bug. The bug exist in perl 5.003, 5.004, 5.005, 5.6.0, 5.6.1. #!/local/net/perl/bin/perl $NAME{all}->{1} = A; $NAME{all}->{2} = B; $NAME{all}->{3} = C; $NAME{all}->{4} = D; $NAME{all}->{5} = E; $NAME{all}->{6} = F; $NAME{all}->{7} = G; foreach (1, ...

Can't store GLOB items at blib/lib/Storable.pm at /usr/local/lib/perl5/site_perl/5.10.0/POE/Filter/Reference.pm line 208
--0016e6dab052985724047b57e13d Content-Type: text/plain; charset=ISO-8859-1 My application using Poe::Wheel::RunPoCo::TCP::Server (and Client) and Poe::Component::Generic is crashing with the following stack trace. Most notably: pid 855 STDERR: 27:ERR: Can't store GLOB items at blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/_freeze.al) line 339, at /usr/local/lib/perl5/site_perl/5.10.0/POE/Filter/Reference.pm line 208 I was just wondering if anyone had seen this error before or could guide me in the best way to attack debugging it. (Trace) pid 855 STDERR: 2...

Web resources about - [ID 20000518.009] Bug/Inconsistency in POP3.pm (libnet) with perl5.6.0 - perl.perl5.porters

Dynamic inconsistency - Wikipedia, the free encyclopedia
In economics , dynamic inconsistency , or time inconsistency , describes the situation: A decision-maker's preferences change over time , in ...

'I felt I had been abandoned': inconsistency and fear surrounds late-term abortion
... couple who fought to have their pregnancy terminated at 28 weeks after discovering the foetus had a physical abnormality has revealed the inconsistency ...

Don't blame Ricky Stuart for inconsistency, says Canberra Raiders chairman Allan Hawke
Canberra Raiders chairman Allan Hawke says it is too early to judge the performance of coach Ricky Stuart.

Mark Thompson frustrated with Essendon’s inconsistency following loss to Richmond at MCG
ANGERED Essendon coach Mark Thompson publicly baked his players for playing inconsistent footy after suffering an 18-point loss to Richmond in ...

Cheeky Tsonga ponders inconsistency in the women's game
Cheeky Frenchman blames emotional instability for the lack of a consistently dominant group in women's tennis.

Referees’ inconsistency taints rugby championship heroics
IF there is one theme rugby critics, and indeed rugby&#8217;s critics, consistently harp on about, it&#8217;s consistency.

Bailey puzzled by Demons' inconsistency
Even coach Dean Bailey is unsure which Melbourne will show up for Saturday's crucial match with Richmond at the MCG.

J-Links: Quebecor’s ‘inconsistency’; Who’s censoring Ezra Levant?; High-profile Chinese journalist resigns ...
J-Links: Quebecor’s ‘inconsistency’; Who’s censoring Ezra Levant?; High-profile Chinese journalist resigns In Canadian media: Opposing Bell-Astral ...

Cameron on Tennis: Inconsistency in the WTA - Sportsnet.ca
Men's tennis has worldwide popularity thanks to the likes of Roger Federer and Rafael Nadal and now it's time for the women to do the same.


Resources last updated: 1/11/2016 6:20:30 PM