develooper Front page | perl.perl5.porters | Postings from November 2003

[perl #24441] out of memory installing Net::SSLeay 1.25

From:
perlbug-followup
Date:
November 7, 2003 21:27
Subject:
[perl #24441] out of memory installing Net::SSLeay 1.25
Message ID:
rt-24441-67233.18.2360415955517@rt.perl.org
# New Ticket Created by  ric@ms.Telcom.Arizona.EDU 
# Please include the string:  [perl #24441]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24441 >



This is a bug report for perl from ric@ms.telcom.arizona.edu,
generated with the help of perlbug 1.34 running under perl v5.8.1.


-----------------------------------------------------------------
[Please enter your report here]
When running
	cpan -i Net::SSLeay
OR when building the downloaded SSLeay 1.25 manually, the build dies
in the test section with the dreaded "Out of memory!" in
	examples/tcpcat.pl
I've tried turning on SSLeay tracing (Net::SSleay::$trace = 3) in
tcpcat.pl, but that makes the error vanish.  Running
  truss	/usr/local/bin/perl -Iblib/lib -Iblib/arch -I. \
   -I/usr/local/lib/perl5/5.8.1/sun4-solaris \
   -I/usr/local/lib/perl5/5.8.1 \
   -I/usr/local/lib/perl5/site_perl/5.8.1/sun4-solaris \
   -I/usr/local/lib/perl5/site_perl/5.8.1 \
   -I/usr/local/lib/perl5/site_perl -I. examples/tcpcat.pl \
    127.0.0.1 1211 ssleay-tcp-test
shows the following just before the "Out of memory!":
  open64("./blib/lib/auto/Net/SSLeay/tcp_read_all.al", O_RDONLY) = 7
  fstat64(7, 0xFFBECCF0)				= 0
      d=0x00800003 i=1960035 m=0100640 l=1  u=0     g=0     sz=697
  	at = Nov  7 12:41:38 MST 2003  [ 1068234098 ]
  	mt = Nov  7 11:23:03 MST 2003  [ 1068229383 ]
  	ct = Nov  7 11:23:03 MST 2003  [ 1068229383 ]
      bsz=8192  blks=2     fs=ufs
  ioctl(7, TCGETA, 0xFFBECC7C)			Err#25 ENOTTY
  read(7, " #   N O T E :   D e r i".., 8192)	= 697
  read(7, 0x00213D4C, 8192)			= 0
  llseek(7, 0, SEEK_CUR)				= 697
  close(7)					= 0
  brk(0x0021AAA0)					= 0
  brk(0x77574AA0)					Err#11 EAGAIN
  write(2, " O u t   o f   m e m o r".., 15)	= 15

Note the very LARGE value being passed to the last brk()...

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl v5.8.1:

Configured by ric at Wed Nov  5 12:13:34 MST 2003.

Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
  Platform:
    osname=solaris, osvers=2.8, archname=sun4-solaris
    uname='sunos coyote.telcom.arizona.edu 5.8 generic_108528-23 sun4u sparc sunw,ultra-60 '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='3.2.1', gccosandvers='solaris2'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags ='-L/usr/local/lib -R/usr/local/lib '
    libpth=/usr/local/lib /usr/ccs/lib /usr/openwin/lib /usr/dt/lib /usr/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    perllibs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -z ignore -z lazyload -z combreloc'
    cccdlflags='-fPIC', lddlflags=' -G  -z ignore -z lazyload -z combreloc -L/usr/local/lib -R/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.8.1:
    /usr/local/lib/perl5/5.8.1/sun4-solaris
    /usr/local/lib/perl5/5.8.1
    /usr/local/lib/perl5/site_perl/5.8.1/sun4-solaris
    /usr/local/lib/perl5/site_perl/5.8.1
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.8.1:
    HOME=/
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/sbin:/usr/sbin:/usr/local/sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:/usr/local/bin:/usr/proc/bin:/usr/local/ssl/bin
    PERL_BADLANG (unset)
    SHELL=/bin/ksh




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About