niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Berkeley DB
failed to map segment from shared object
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
fastfoo@fastmail.fm
*nix forums beginner


Joined: 09 Mar 2005
Posts: 3

PostPosted: Wed Mar 09, 2005 10:58 am    Post subject: Re: failed to map segment from shared object Reply with quote

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

PostPosted: Wed Mar 09, 2005 10:50 am    Post subject: Re: failed to map segment from shared object Reply with quote

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

PostPosted: Wed Mar 09, 2005 10:35 am    Post subject: failed to map segment from shared object Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 5:07 am | All times are GMT
navigation Forum index » Databases » Berkeley DB
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts database Share Memory Limit (2 GB ) in a Instance is tota... sadanjan@gmail.com IBM DB2 0 Fri Jul 21, 2006 12:57 pm
No new posts how can i use fstream object to clear file's content? horneye C++ 2 Fri Jul 21, 2006 7:52 am
No new posts CORBA object used in Vector niks C++ 0 Fri Jul 21, 2006 7:45 am
No new posts CORBA object used in Vector niks C++ 1 Fri Jul 21, 2006 7:40 am
No new posts getimagesize():failed to open stream: sree PHP 0 Fri Jul 21, 2006 6:24 am

Free Ringtone | Credit Cards | Mortgage Calculator | Europe Hotel | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1313s ][ Queries: 20 (0.0644s) ][ GZIP on - Debug on ]