[Date Prev][Date Next] [Chronological] [Thread] [Top]

bdb cannot allocate memory (ITS#3287)



Full_Name: Andrzej Dopierała
Version: 2.2.15
OS: gnu/linux, 2.6.5
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (62.233.186.177)


my test ldap server after some tests died. not it doesn't start:
bdb_db_open: dbenv_open(/var/lib/openldap-data)                                 
                                          
=> bdb_last_id: get failed: Cannot allocate memory (12)                         
                                          
bdb_db_open: last_id(/var/lib/openldap-data) failed: Cannot allocate memory (12)
                                          
backend_startup: bi_db_open failed! (12)                                        
                                          

strace isn't so usefull:
write(2, "bdb_db_open: dbenv_open(/var/lib"..., 48bdb_db_open:
dbenv_open(/var/lib/openldap-data)) = 48                    
stat64("/var/lib/openldap-data/DB_CONFIG", 0xbffff860) = -1 ENOENT (No such file
or directory)                             
open("/var/lib/openldap-data/DB_CONFIG", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)                     
stat64("/var/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0       
                                          
stat64("/var/lib/openldap-data/__db.001", {st_mode=S_IFREG|0600, st_size=8192,
...}) = 0                                   
open("/var/lib/openldap-data/__db.001", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600)
= -1 EEXIST (File exists)                 
open("/var/lib/openldap-data/__db.001", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600)
= -1 EEXIST (File exists)                 
open("/var/lib/openldap-data/__db.001", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600)
= -1 EEXIST (File exists)                 
open("/var/lib/openldap-data/__db.001", O_RDWR|O_LARGEFILE) = 9                 
                                          
fcntl64(9, F_SETFD, FD_CLOEXEC)         = 0                                     
                                          
fstat64(9, {st_mode=S_IFREG|0600, st_size=8192, ...}) = 0                       
                                          
close(9)                                = 0                                     
                                          
open("/var/lib/openldap-data/__db.001", O_RDWR|O_LARGEFILE) = 9                 
                                          
fcntl64(9, F_SETFD, FD_CLOEXEC)         = 0                                     
                                          
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_SHARED, 9, 0) = 0x40015000          
                                          
close(9)                                = 0                                     
                                          
stat64("/var/lib/openldap-data/__db.002", {st_mode=S_IFREG|0600, st_size=270336,
...}) = 0                                 
open("/var/lib/openldap-data/__db.002", O_RDWR|O_CREAT|O_LARGEFILE, 0600) = 9   
                                          
fcntl64(9, F_SETFD, FD_CLOEXEC)         = 0                                     
                                          
mmap2(NULL, 270336, PROT_READ|PROT_WRITE, MAP_SHARED, 9, 0) = 0x4050e000        
                                          
close(9)                                = 0                                     
                                          
stat64("/var/lib/openldap-data/__db.003", {st_mode=S_IFREG|0600, st_size=98304,
...}) = 0                                  
open("/var/lib/openldap-data/__db.003", O_RDWR|O_CREAT|O_LARGEFILE, 0600) = 9   
                                          
fcntl64(9, F_SETFD, FD_CLOEXEC)         = 0                                     
                                          
mmap2(NULL, 98304, PROT_READ|PROT_WRITE, MAP_SHARED, 9, 0) = 0x40550000         
                                          
close(9)                                = 0                                     
                                          
stat64("/var/lib/openldap-data/__db.004", {st_mode=S_IFREG|0600, st_size=368640,
...}) = 0                                 
open("/var/lib/openldap-data/__db.004", O_RDWR|O_CREAT|O_LARGEFILE, 0600) = 9   
                                          
fcntl64(9, F_SETFD, FD_CLOEXEC)         = 0                                     
                                          
mmap2(NULL, 368640, PROT_READ|PROT_WRITE, MAP_SHARED, 9, 0) = 0x40568000        
                                          
close(9)                                = 0                                     
                                          
stat64("/var/lib/openldap-data/__db.005", {st_mode=S_IFREG|0600, st_size=16384,
...}) = 0                                  
open("/var/lib/openldap-data/__db.005", O_RDWR|O_CREAT|O_LARGEFILE, 0600) = 9   
                                          
fcntl64(9, F_SETFD, FD_CLOEXEC)         = 0                                     
                                          
mmap2(NULL, 16384, PROT_READ|PROT_WRITE, MAP_SHARED, 9, 0) = 0x405c2000         
                                          
close(9)                                = 0                                     
                                          
stat64("/var/lib/openldap-data/id2entry.bdb", {st_mode=S_IFREG|0600,
st_size=3866624, ...}) = 0                            
stat64("/var/lib/openldap-data/id2entry.bdb", {st_mode=S_IFREG|0600,
st_size=3866624, ...}) = 0                            
open("/var/lib/openldap-data/id2entry.bdb", O_RDWR|O_LARGEFILE) = 9             
                                          
fcntl64(9, F_SETFD, FD_CLOEXEC)         = 0                                     
                                          
read(9, "\2\0\0\0\302H\26\0\0\0\0\0b1\5\0\t\0\0\0\0@\0\0\0\t\0\0"..., 512) = 512
                                          
close(9)                                = 0                                     
                                          
stat64("/var/lib/openldap-data/id2entry.bdb", {st_mode=S_IFREG|0600,
st_size=3866624, ...}) = 0
open("/var/lib/openldap-data/id2entry.bdb", O_RDWR|O_LARGEFILE) = 9             
                                          
fcntl64(9, F_SETFD, FD_CLOEXEC)         = 0                                     
                                          
fstat64(9, {st_mode=S_IFREG|0600, st_size=3866624, ...}) = 0                    
                                          
time(NULL)                              = 1092790954                            
                                          
stat64("/var/lib/openldap-data/dn2id.bdb", {st_mode=S_IFREG|0600, st_size=8192,
...}) = 0                                  
open("/var/lib/openldap-data/dn2id.bdb", O_RDWR|O_LARGEFILE) = 10               
                                          
fcntl64(10, F_SETFD, FD_CLOEXEC)        = 0                                     
                                          
read(10, "\0\0\0\0\1\0\0\0\0\0\0\0b1\5\0\t\0\0\0\0\20\0\0\0\t\0\0"..., 512) =
512                                          
close(10)                               = 0                                     
                                          
stat64("/var/lib/openldap-data/dn2id.bdb", {st_mode=S_IFREG|0600, st_size=8192,
...}) = 0                                  
open("/var/lib/openldap-data/dn2id.bdb", O_RDWR|O_LARGEFILE) = 10               
                                          
fcntl64(10, F_SETFD, FD_CLOEXEC)        = 0                                     
                                          
fstat64(10, {st_mode=S_IFREG|0600, st_size=8192, ...}) = 0                      
                                          
time(NULL)                              = 1092790954                            
                                          
write(2, "=> bdb_last_id: get failed: Cann"..., 56=> bdb_last_id: get failed:
Cannot allocate memory (12)) = 56            
time([1092790954])                      = 1092790954                            
                                          
getpid()                                = 16331                                 
                                          
rt_sigaction(SIGPIPE, {0x400d2770, [], 0}, {SIG_IGN}, 8) = 0                    
                                          
send(4, "<167>Aug 18 03:02:34 slapd[16331"..., 92, 0) = 92                      
                                          
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0                                   
                                          
write(2, "bdb_db_open: last_id(/var/lib/op"..., 81bdb_db_open:
last_id(/var/lib/openldap-data) failed: Cannot allocate memory (12)) = 81       
                                                                                
                
                                                                                
                                          
etc..
i have no idea what it is doing - i'm openldap newbie ;)