Skip Menu |

This queue is for tickets about the Net_SSLeay.pm CPAN distribution.

Report information
The Basics
Id: 3287
Status: resolved
Priority: 0/
Queue: Net_SSLeay.pm

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.24
Fixed in: (no value)



Subject: 1.25 fails in tcptest
Hello, In Net::SSLeay 1.25 I'm now seeing a failure when make test is run with tcptest: ok 4 Spawning a TCP test server on port 1211, pid=13601... Out of memory! *** not ok 5tcp Spawning a SSL test server on port 1212, pid=13604... ok 5 This machine is RedHat 9 with 1 Gbyte of memory, so I doubt that memory is a problem. And % cat tcpecho.log Out of memory! tcpecho 13602: Accepting connections on port 1211... 2 connection from 127.0.0.1:39150 I'll help debug if you need any more info. Blair
From: vek [...] pharmapartners.nl
[BZAJAC - Tue Aug 19 14:51:53 2003]: Show quoted text
> Hello, > > In Net::SSLeay 1.25 I'm now seeing a failure when make test is run > with > tcptest: > > ok 4 > Spawning a TCP test server on port 1211, pid=13601... > Out of memory! > *** not ok 5tcp > > Spawning a SSL test server on port 1212, pid=13604... > ok 5 > > This machine is RedHat 9 with 1 Gbyte of memory, so I doubt that > memory > is a problem. > > And > > % cat tcpecho.log > Out of memory! > tcpecho 13602: Accepting connections on port 1211... > 2 connection from 127.0.0.1:39150 > > I'll help debug if you need any more info. > > Blair >
I've seen the same. I've also seen a few occurences of the number 2000000000 assigned to $how_much and $max_length in the SSLeay.pm module. Reducing those numbers by a factor 1000 makes the out of memory go away. Villy
I had the same results here. I have a slightly more descriptive "Out of Memory" warning though. ------------- ok 4 Spawning a TCP test server on port 1211, pid=153... Out of memory during "large" request for -2147479552 bytes at blib/lib/Net/SSLeay.pm (autosplit into blib/lib/auto/Net/SSLeay/tcp_read_all.al) line 1613. *** not ok 5tcp Spawning a SSL test server on port 1212, pid=156... ok 5 ------------ blib/lib/auto/Net/SSLeay/tcp_read_all.al: --------- # NOTE: Derived from blib/lib/Net/SSLeay.pm. # Changes made here will be lost when autosplit again. # See AutoSplit.pm. package Net::SSLeay; #line 1606 "blib/lib/Net/SSLeay.pm (autosplit into blib/lib/auto/Net/SSLeay/tcp_read_all.al)" sub tcp_read_all { my ($how_much) = @_; $how_much = 2000000000 unless $how_much; my ($n, $got, $errs); my $reply = ''; while ($how_much > 0) { $n = sysread(SSLCAT_S,$got,$how_much); warn "Read error: $! ($n,$how_much)" unless defined $n; last if !$n; # EOF $how_much -= $n; debug_read(\$reply, \$got) if $trace>1; $reply .= $got; } return wantarray ? ($reply, $errs) : $reply; } # end of Net::SSLeay::tcp_read_all 1; --------- perl -V Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Platform: osname=solaris, osvers=2.7, archname=sun4-solaris uname='sunos hostname_removed_from_output 5.7 generic_106541-07 sun4u sparc ' hint=recommended, useposix=true, d_sigaction=define usethreads=undef useperlio=undef d_sfio=undef Compiler: cc='cc -B/usr/ccs/bin/ -B/usr/ccs/bin/', optimize='-O', gccversion=egcs-2.91.66 19990314 (egcs-1.1.2 release) cppflags='-I/usr/local/include' ccflags ='-I/usr/local/include' stdchar='char', d_stdstdio=define, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 alignbytes=8, usemymalloc=y, prototype=define Linker and Libraries: ld='cc -B/usr/ccs/bin/ -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib' Characteristics of this binary (from libperl): Built under solaris Compiled at Nov 19 2003 17:07:21 @INC: /usr/local/lib/perl5/5.00503/sun4-solaris /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/sun4-solaris /usr/local/lib/perl5/site_perl/5.005
From: Jay
I Have the same error as BZAJAC. I also get the same Out of Memory message at the TCP test from the command "make test". What can I do? Jay