[HPADM] Summary: Perl/SSLeay: mmap() - EACCESS

From: V. T. Mueller (vtmue@uni-freiburg.de)
Date: Tue Jun 18 2002 - 04:30:59 EDT


Hello,

The problem that caused me to send my original mail was:

> Perl, when dynamically loading Net::SSLeay, exits with:
>
> Can't load
> '/opt/perl5/lib/site_perl/5.6.1/PA-RISC2.0/auto/Net/SSLeay/SSLeay.sl' for
> module Net::SSLeay: Permission denied at
> /opt/perl5/lib/5.6.1/PA-RISC2.0/DynaLoader.pm line 206.
> at glbl.pl line 11
> Compilation failed in require at glbl.pl line 11.
> BEGIN failed--compilation aborted at glbl.pl line 11.
> Compilation failed in require at
> /var/cl/cgi-bin/cl.cgi line 14.
>
> Tracing Perl revealed the following:
>
> [7244] open("/opt/openssl/lib/libcrypto.sl.0.9.6", O_RDONLY, 0) ... = 5
> [7244] fstat(5, 0x7f7f1a80) ....................................... = 0
> [7244] read(5, "0214010e0512@ \0\0\0\0\0\0\0\0\0".., 128) ......... = 128
> [7244] lseek(5, 128, SEEK_SET) .....................................= 128
> [7244] read(5, "10\0\004\0\0\0( \013u f4\0\010\0".., 48) .......... = 48
> [7244] read(5, "80\0\0\v\0\0\004\0\0\0\0", 12) .................... = 12
> [7244] lseek(5, 323584, SEEK_SET) ................................. =
> 323584
> [7244] read(5, "058cy 10\0\00590\0\0c a4\0\0\003".., 112) ......... = 112
> [7244] mmap(NULL, 1277952, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 5,
> 0x4f000) ............................ ERR#13 EACCES
> [7244] close(5) ................................................... = 0
>
> Perl, SSLeay and openssl have all been built using hp's ANSI cc B.11.11.04
> . Of course, the library is world readable/accessible.
>
> The system is 11.11 64bit, executable_stack is set to 1 - there is no
> difference after a chatr +es enable <perl> though.

Um well, there was one response: thanks to Bart Vetters who suspected the
file to be plainly unaccessible. I wish that would have been the cause...

Facing the fact that the application was not working and all efforts down
to tracing did not show the exact cause of the error we ended up in
compiling in SSLeay *statically* into Perl. While this is a rather simple
and effective solution, it on the other hand is quite painfull in our
case.

Kind regards,
V. T. Mueller

--
V. T. Mueller      Freiburg, Germany     vtmue (at) uni-freiburg.de
"Never send a human to do a machine's job"  Agent Smith, The Matrix
--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:14 EDT