| Author |
Message |
fastfoo@fastmail.fm *nix forums beginner
Joined: 09 Mar 2005
Posts: 3
|
Posted: Wed Mar 09, 2005 10:58 am Post subject:
Re: failed to map segment from shared object
|
|
|
Ok, resolved! It was a memory issue. I am running the CGI under the
fnord HTTP server and allocating memory limitations using Dan
Bernstein's softlimit - had to raise it thus:
exec softlimit -m 6500000 \
tcpserver -DPHRv -c $CONN -l 0 $ADDR $PORT \
setuidgid $USER /usr/local/bin/fnord 2>&1 |
|
| Back to top |
|
 |
fastfoo@fastmail.fm *nix forums beginner
Joined: 09 Mar 2005
Posts: 3
|
Posted: Wed Mar 09, 2005 10:50 am Post subject:
Re: failed to map segment from shared object
|
|
|
I might have resolved this - an environment issue. Will post again with
conclusion. |
|
| Back to top |
|
 |
fastfoo@fastmail.fm *nix forums beginner
Joined: 09 Mar 2005
Posts: 3
|
Posted: Wed Mar 09, 2005 10:35 am Post subject:
failed to map segment from shared object
|
|
|
Hi there
I'm using the Perl module BerkeleyDB for DB access from within a CGI
script. The errors are included below. Any pointers/help would be
appreciated.
Versions:
Linux Kernel 2.6.9
Perl 5.8.4
BerkeleyDB Perl Module 0.26
Berkeley DB 4.3.27
Kernel Headers for 2.4.29
Errors:
Can't load
'/usr/lib/perl5/site_perl/5.8.4/i486-linux/auto/BerkeleyDB/BerkeleyDB.so'
for module BerkeleyDB: libdb-4.3.so: failed to map segment from shared
object: Cannot allocate memory at
/usr/lib/perl5/5.8.4/i486-linux/XSLoader.pm line 68.
at ./index.cgi line 28
Undefined subroutine &BerkeleyDB::Term::close_everything called at
/usr/lib/perl5/site_perl/5.8.4/i486-linux/BerkeleyDB.pm line 1649.
END failed--call queue aborted at ./index.cgi line 28.
Line 28 in index.cgi is:
use BerkeleyDB;
Thanks
Dale |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|