This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems with Perl LWP and CYGSSL.DLL


I'm having problems using LWP.pm (libwww extension for Perl) with my cygwin Perl
binary.  Errors are generated each time I try to run Perl code which uses the
LWP library to make a GET or POST request for an https (SSL) web location. The
errors appear to complain that there is a Win32 error with Perl or CYGSSL.DLL
(or both?)

The errors aren't fatal, but they constitute the entirety of the output
generated by the script.  Unless I kill it, the executing process just keeps
chugging along, consuming 100% CPU and sending a new error message to STDERR
about every 5 seconds.  The same code runs flawlessly for non-SSL requests.

How do I go about fixing this?

Attachments:

    File:  cygcheck-August-28-2002-12.24.44-PM.out
    Desc:  output from the command 'cygcheck -cs' when run earlier today
    Size:  14 kb
    MIME:  text/plain (LF)

    File:  cygssl_errors.txt
    Desc:  text file containing errors from the execution of... (see next item)
    Size:  3 kb
    MIME:  text/plain (LF)

    File:  example_perl_script.pl
    Desc:  simple Perl script that shows how to produce the error on my system
    Size:  2 kb
    MIME:  text/plain (LF)

    File:  perl_bin_details.txt.gz
    Desc:  gzip'ed text file
    Size:  13 kb
    MIME:  application/x-gzip
      |
      + EXTRACTS TO:
          File:  perl_bin_details.txt
          Desc:  details regarding my Perl binary and installed Perl modules
          Size:  114 kb
          MIME:  text/plain (LF)


Thank you for any help.

--

     -Tommy Butler
      see if I'm online »http://ooopps.sourceforge.net/online

      Tommy Butler <tommy@atrixnet.com>
      phone: (817)-468-7716
      6711 Forest Park Dr
      Arlington, TX
           76001-8403

      Download my résumé in PDF, MS Word, HTML, text
      http://www.atrixnet.com/

      the ooOPps Code Library
      http://ooopps.sourceforge.net/pub/




>C:\cygwin\bin\perl -w testLWPcookies.pl
C:\CYGWIN\BIN\PERL.EXE: *** couldn't allocate memory 0x10000(4128768) for 'C:\CYGWIN\BIN\CYGSSL.DLL' alignment, Win32 error 8

    290 [main] perl 1804607 sync_with_child: child -1760391(0xE4) died before initialization with status code 0x1
    380 [main] perl 1804607 sync_with_child: *** child state child loading dlls
C:\CYGWIN\BIN\PERL.EXE: *** couldn't allocate memory 0x10000(4128768) for 'C:\CYGWIN\BIN\CYGSSL.DLL' alignment, Win32 error 8

8173369 [main] perl 1804607 sync_with_child: child -1761167(0xF0) died before initialization with status code 0x1
8173404 [main] perl 1804607 sync_with_child: *** child state child loading dlls
C:\CYGWIN\BIN\PERL.EXE: *** couldn't allocate memory 0x10000(4128768) for 'C:\CYGWIN\BIN\CYGSSL.DLL' alignment, Win32 error 8

16353777 [main] perl 1804607 sync_with_child: child -1829971(0xFC) died before initialization with status code 0x1
16353813 [main] perl 1804607 sync_with_child: *** child state child loading dlls
C:\CYGWIN\BIN\PERL.EXE: *** couldn't allocate memory 0x10000(4128768) for 'C:\CYGWIN\BIN\CYGSSL.DLL' alignment, Win32 error 8

24531281 [main] perl 1804607 sync_with_child: child -1759835(0x108) died before initialization with status code 0x1
24531317 [main] perl 1804607 sync_with_child: *** child state child loading dlls
C:\CYGWIN\BIN\PERL.EXE: *** couldn't allocate memory 0x10000(4128768) for 'C:\CYGWIN\BIN\CYGSSL.DLL' alignment, Win32 error 8

32683957 [main] perl 1804607 sync_with_child: child -1760131(0x114) died before initialization with status code 0x1
32683994 [main] perl 1804607 sync_with_child: *** child state child loading dlls
C:\CYGWIN\BIN\PERL.EXE: *** couldn't allocate memory 0x10000(4128768) for 'C:\CYGWIN\BIN\CYGSSL.DLL' alignment, Win32 error 8

40838595 [main] perl 1804607 sync_with_child: child -1761679(0x120) died before initialization with status code 0x1
40838630 [main] perl 1804607 sync_with_child: *** child state child loading dlls
C:\CYGWIN\BIN\PERL.EXE: *** couldn't allocate memory 0x10000(4128768) for 'C:\CYGWIN\BIN\CYGSSL.DLL' alignment, Win32 error 8

48997211 [main] perl 1804607 sync_with_child: child -1759435(0x12C) died before initialization with status code 0x1
48997248 [main] perl 1804607 sync_with_child: *** child state child loading dlls
C:\CYGWIN\BIN\PERL.EXE: *** couldn't allocate memory 0x10000(4128768) for 'C:\CYGWIN\BIN\CYGSSL.DLL' alignment, Win32 error 8

57158304 [main] perl 1804607 sync_with_child: child -1761423(0x138) died before initialization with status code 0x1
57158339 [main] perl 1804607 sync_with_child: *** child state child loading dlls

>Process failed to respond; forcing abrupt termination...>Exit code: 1



Cygwin Package Information
Package             Version             
WindowMaker         0.80.0-2            
XFree86-base        4.2.0-1             
XFree86-bin         4.2.0-2             
XFree86-doc         4.2.0-1             
XFree86-etc         4.2.0-1             
XFree86-f100        4.2.0-2             
XFree86-fcyr        4.2.0-2             
XFree86-fenc        4.2.0-2             
XFree86-fnts        4.2.0-2             
XFree86-fscl        4.2.0-2             
XFree86-fsrv        4.2.0-1             
XFree86-html        4.2.0-1             
XFree86-jdoc        4.2.0-1             
XFree86-lib         4.2.0-3             
XFree86-man         4.2.0-1             
XFree86-nest        4.2.0-1             
XFree86-prog        4.2.0-1             
XFree86-prt         4.2.0-1             
XFree86-ps          4.2.0-1             
XFree86-startup-scripts4.2.0-3             
XFree86-vfb         4.2.0-1             
XFree86-xserv       4.2.0-10            
Xaw3d               1.5-1               
_update-info-dir    00059-1             
apache              1.3.24-5            
ash                 20020731-1          
autoconf            2.53b-1             
autoconf-devel      2.53a-1             
autoconf-stable     2.13-4              
automake            1.6.2-1             
automake-devel      1.6.2-1             
automake-stable     1.4p5-5             
bash                2.05b-3             
bc                  1.06-1              
binutils            20020706-2          
bison               1.35-1              
byacc               1.9-1               
bzip2               1.0.2-2             
ccache              1.9-1               
cgoban              1.9.12-1            
clear               1.0-1               
compface            1.4-5               
cpio                2.4.2               
cron                3.0.1-7             
crypt               1.0-1               
ctags               5.2-1               
curl                7.9.8-2             
cvs                 1.11.0-1            
cygrunsrv           0.95-1              
cygutils            1.1.2-1             
cygwin              1.3.12-4            
cygwin-doc          1.1-2               
db2                 2.7.7-4             
db3.1               3.1.17-2            
dejagnu             20010117-1          
diff                1.0-1               
diffutils           2.8.1-1             
dpkg                1.10.4-2            
ed                  0.2-1               
enscript            1.6.3-3             
expat               1.95.4-1            
expect              20010117-1          
fetchmail           5.9.13-2            
figlet              2.2-1               
file                3.37-1              
fileutils           4.1-1               
findutils           4.1.7-4             
flex                2.5.4-2             
fortune             1.8-2               
fvwm                2.4.7-2             
gawk                3.1.1-2             
gcc                 2.95.3-5            
gcc2                2.95.3-9            
gdb                 20010428-3          
gdbm                1.8.0-4             
gettext             0.11.2-2            
gettext-devel       0.11.2-2            
ghostscript         7.05-1              
ghostscript-base    7.05-1              
ghostscript-x11     7.05-1              
gnugo               3.2-1               
gnupg               1.0.7-3             
gperf               0.0                 
grep                2.5-1               
groff               1.17.2-1            
gsl                 1.1.1-1             
guile               1.5.6-5             
guile-devel         1.5.6-5             
guile-doc           1.5.6-5             
gzip                1.3.3-4             
indent              2.2.8-1             
inetutils           1.3.2-19            
irc                 20010101-1          
jbigkit             1.2-6               
jpeg                6b-7                
keychain            1.9-1               
less                374-1               
lesstif             0.93.18-3           
libPropList         0.10.1-3            
libbz2_0            1.0.2-1             
libbz2_1            1.0.2-2             
libcharset1         1.8-2               
libdb2              2.7.7-4             
libdb2-devel        2.7.7-4             
libdb3.1            3.1.17-2            
libguile14          1.5.6-5             
libiconv            1.8-2               
libiconv2           1.8-2               
libintl             0.10.38-3           
libintl1            0.10.40-1           
libintl2            0.11.2-2            
libkpathsea3        20020530-3          
libltdl3            20020705-2          
libncurses5         5.2-1               
libncurses6         5.2-8               
libpng              1.2.4-2             
libpng10            1.0.14-2            
libpng10-devel      1.0.14-2            
libpng12            1.2.4-2             
libpng12-devel      1.2.4-2             
libpng2             1.0.12-1            
libpopt0            1.6.4-4             
libreadline4        4.1-2               
libreadline5        4.3-1               
libtool             20020705-1          
libtool-devel       20020705-2          
libtool-stable      1.4.2-2             
libungif            4.1.0-2             
libxml2             2.4.23-1            
libxslt             1.0.13-1            
lilypond-doc        1.6.0-1             
links               0.96-1              
login               1.4-4               
lynx                2.8.4-1             
m4                  0.0                 
make                3.79.1-7            
man                 1.5g-2              
mc                  4.5.55-1            
mingw-runtime       2.1-1               
mktemp              1.4-1               
mod_auth_mysql      1.11-1              
mod_auth_ntsec      1.7-1               
mod_dav             1.0.3-1.3.6-1       
mod_php4            4.2.0-1             
mod_ssl             2.8.8-1.3.24-1      
more                2.11o-1             
mt                  2.0.1-1             
mutt                1.4-1               
nano                1.1.10-1            
ncftp               3.1.4-1             
ncurses             5.2-8               
newlib-man          20020801            
openbox             0.99.1-3            
opengl              1.1.0-6             
openssh             3.4p1-5             
openssl             0.9.6g-1            
openssl-devel       0.9.6g-1            
patch               2.5-3               
pcre                3.7-1               
perl                5.6.1-2             
perl_manpages       5.8.0-1             
pine                4.44-2              
pinfo               0.6.6p1-1           
pkgconfig           0.12.0-1            
popt                1.6.4-4             
postgresql          7.2.1-2             
procmail            3.22-7              
python              2.2.1-1             
rcs                 5.7-3               
readline            4.3-1               
regex               4.4-2               
robots              2.0-1               
rsync               2.5.5-1             
rxvt                2.7.2-10            
sed                 3.02-1              
sh-utils            2.0-2               
sharutils           4.2.1-2             
shutdown            1.2-2               
squid               2.4.STABLE7-1       
ssmtp               2.38.7-3            
swig                1.3.13-1            
tar                 1.13.19-1           
tcltk               20001125-1          
tcp_wrappers        7.6-1               
tcsh                6.11.00-4           
termcap             20020403-1          
terminfo            5.2-3               
tetex               20020530-3          
tetex-base          20020530-3          
tetex-beta          20020530-3          
tetex-bin           20020530-3          
tetex-doc           20020530-3          
tetex-extra         20020530-3          
tetex-tiny          20020530-3          
tetex-x11           20020530-3          
texinfo             4.2-3               
texmf               20020530-3          
texmf-base          20020530-3          
texmf-doc           20020530-3          
texmf-extra         20020530-3          
texmf-tiny          20020530-3          
textutils           2.0.21-1            
tidy                020822-1            
tiff                3.5.7-1             
time                1.7-1               
ttcp                19980512-1          
ucl                 1.01-1              
units               1.77-1              
unzip               5.50-1              
upx                 1.21-1              
vim                 6.1-2               
w32api              1.5-1               
wget                1.8.2-1             
which               1.5-1               
whois               4.5.17-1            
x2x                 1.27-1              
xpm-nox             4.2.0-1             
zip                 2.3-2               
zlib                1.1.4-1             
zsh                 4.0.4-1             


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Wed Aug 28 12:26:19 2002

Windows 98 SE Ver 4.10 Build 2222 

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	c:\WINDOWS
	c:\windows
	c:\windows\COMMAND
	c:\WINDOWS
	c:\WINDOWS\COMMAND
	C:\cygwin\bin
	C:\cygwin\bin
	C:\cygwin\USR\X11R6\BIN
	C:\cygwin\USR\LIBEXEC
	C:\cygwin\USR\LOCAL\BIN
	.
	C:\cygwin\usr\X11R6\bin

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

HOME = `C:\cygwin\home\tommy'
MAKE_MODE = `unix'
PWD = `/home/tommy'
USER = `tommy'

Use `-r' to scan registry

a:  fd           N/A    N/A                    
c:  hd  FAT32   7987Mb  58% CP    UN           SYS
d:  hd  FAT32  15024Mb  67% CP    UN           
m:  cd           N/A    N/A                    
n:  cd           N/A    N/A                    

C:/cygwin                          /                                 user    binmode
C:/cygwin/bin                      /usr/bin                          user    binmode
C:/cygwin/lib                      /usr/lib                          user    binmode
.                                  /cygdrive                         user    binmode,cygdrive
C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts          system  binmode
\ooopps                            /cygdrive/d/home/projects/ooopps  system  binmode
D:\home\projects\ooopps            /ooopps                           system  binmode

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: c:\windows\COMMAND\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

  306k 2002/04/27 C:\cygwin\bin\cyghttpd.dll
  452k 2002/07/17 C:\cygwin\bin\cygcurl-2.dll
   81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll
   35k 2000/12/05 C:\cygwin\bin\cygitk30.dll
  390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll
    5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll
   10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll
  623k 2000/12/05 C:\cygwin\bin\cygtk80.dll
   19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll
  132k 2002/07/14 C:\cygwin\bin\cygexpat-0.dll
   45k 2002/02/07 C:\cygwin\bin\cygjbig1.dll
  119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll
  170k 2002/01/20 C:\cygwin\bin\cygpng2.dll
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
   50k 2002/03/17 C:\cygwin\bin\cygexslt-0.dll
  152k 2002/03/17 C:\cygwin\bin\cygxslt-1.dll
   15k 2002/03/17 C:\cygwin\bin\cygxsltbreakpoint-1.dll
  326k 2002/06/26 C:\cygwin\bin\cygdb2.dll
   40k 2001/11/21 C:\cygwin\bin\cygpcre.dll
   39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll
  175k 2002/07/22 C:\cygwin\bin\cygpng10.dll
  179k 2002/07/22 C:\cygwin\bin\cygpng12.dll
   20k 2002/07/17 C:\cygwin\bin\cyghistory5.dll
  127k 2002/07/17 C:\cygwin\bin\cygreadline5.dll
  633k 2002/07/22 C:\cygwin\bin\cygxml2-2.dll
   58k 2002/05/07 C:\cygwin\bin\cygbz2-1.dll
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll
   66k 2001/11/20 C:\cygwin\bin\cygregex.dll
   59k 2002/08/09 C:\cygwin\bin\cygkpathsea-3-3-7.dll
  625k 2002/08/09 C:\cygwin\bin\cygcrypto.dll
  159k 2002/08/09 C:\cygwin\bin\cygssl.dll
  253k 2002/02/10 C:\cygwin\bin\cygtiff3.dll
   41k 2002/01/20 C:\cygwin\bin\cygXpm-noX4.dll
   46k 2002/01/20 C:\cygwin\bin\cygXpm-X4.dll
   50k 2002/06/30 C:\cygwin\bin\cygz.dll
   22k 2002/06/30 C:\cygwin\bin\cygintl-1.dll
   22k 2001/12/13 C:\cygwin\bin\CYGINT~1.DLL
 1006k 2002/07/24 C:\cygwin\bin\cygperl5_8_0.dll
   54k 2002/06/30 C:\cygwin\bin\cygbz21.0.dll
    6k 2002/06/24 C:\cygwin\bin\cygcharset-1.dll
  929k 2002/06/24 C:\cygwin\bin\cygiconv-2.dll
   23k 2002/06/24 C:\cygwin\bin\cygintl-2.dll
  380k 2002/07/24 C:\cygwin\bin\cygdb-3.1.dll
  487k 2002/07/24 C:\cygwin\bin\cygdb_cxx-3.1.dll
  488k 2002/07/18 C:\cygwin\bin\cygguile-14.dll
   63k 2002/07/18 C:\cygwin\bin\cygguile-srfi-srfi-13-14-1.dll
   24k 2002/07/18 C:\cygwin\bin\cygguile-srfi-srfi-4-1.dll
   14k 2002/07/18 C:\cygwin\bin\cygguilereadline-14.dll
   25k 2002/07/16 C:\cygwin\bin\cygltdl-3.dll
   25k 2002/07/14 C:\cygwin\bin\cygungif-4.dll
  883k 2002/07/06 C:\cygwin\bin\CYGWIN1.DLL
   41k 2002/05/14 C:\cygwin\USR\X11R6\BIN\cygPropList-0.dll
Use -h to see help about each section


#!/usr/bin/perl -w
use strict;

use HTTP::Request::Common qw( POST );
use LWP::UserAgent;
use HTTP::Cookies;

sub login {

   my($ua,$form,$res,$tgt,$agent) = ({},{},{},'','');

   require HTTP::Headers;

   $agent   = q[Mozilla/5.0 (compatible; Konqueror/3.0.0-10; Linux)];
   $tgt     = q[https://sourceforge.net/account/login.php];
   $form    =
      {
         q[return_to]      => q[],
         q[form_loginname] => q[foo],
         q[form_pw]        => q[bar],
         q[stay_in_ssl]    => 1,
         q[login]          => q[Login With SSL],
      };

   $ua = LWP::UserAgent->new('agent' => $agent);

   $ua->cookie_jar
      (
         HTTP::Cookies->new
            (
               'file'      => 'lwpcookies.txt',
               'autosave'  => 1
            )
      );

   push(@{ $ua->requests_redirectable }, 'POST');

   $res  = $ua->post( $tgt, $form, 'Referer' => '' );

   return
      (
         join
            (
               qq[\012],
               q[Failed: ],
               $res->status_line,
               q[received: ],
               $res->as_string
            )
      )
         if (!$res->is_success);

   $res->as_string
}

print login;



Attachment: perl_bin_details.txt.gz
Description: GNU Zip compressed data

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]