[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: OpenLDAP v1.2.11 && SleepyCatDB v2.7.7
> I compiled against Sleepycat according to some information
> on the OpenLDAP site. This setup worked PERFECT on two machines,
> but on one I get
>
> ----- s n i p -----
> donald.pts/1# /usr/sbin/ldif2ldbm -i /root/openldap.ldif
> id2entry file: Cannot allocate memory
> dn2id file: Cannot allocate memory
> ----- s n i p -----
>
> And gdb tells me
>
> ----- s n i p -----
> (gdb) run
> The program being debugged has been started already.
> Start it from the beginning? (y or n) y
> Starting program: /usr/sbin/ldif2ldbm -i /root/openldap.ldif
> (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
> id2entry file: Cannot allocate memory
> dn2id file: Cannot allocate memory
> (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
> Program received signal SIGINT, Interrupt.
> 0x2abbfe19 in wait4 () from /lib/libc.so.6
> (gdb) bt
> #0 0x2abbfe19 in wait4 () from /lib/libc.so.6
> #1 0x2ac1b078 in __check_rhosts_file () from /lib/libc.so.6
> #2 0x2ab395f6 in wait () from /lib/libpthread.so.0
> #3 0x804ac89 in strcpy ()
> #4 0x804abe8 in strcpy ()
> #5 0x804ab6a in strcpy ()
> #6 0x2ab5ba42 in __libc_start_main () from /lib/libc.so.6
> (gdb)
> ----- s n i p -----
>
> This is on a Debian GNU/Linux, i386 machine with 256Mb mem. Free tells
> me this
>
> ----- s n i p -----
> donald.pts/2# free
> total used free shared buffers cached
> Mem: 257760 253932 3828 9304 28152 194320
> -/+ buffers/cache: 31460 226300
> Swap: 305192 12520 292672
> ----- s n i p -----
>
> and ldif2ldbm with '-d 255' tells me (last lines)
>
> ----- s n i p -----
> => index_change_values( "dn", 1, op=ADD )
> => ldbm_cache_open( "/var/lib/openldap/dn.dbb", 7, 600 )
> <= ldbm_cache_open NULL "/var/lib/openldap/dn.dbb" errno 12 reason "Cannot allocate memory")
> <= index_change_values (couldn't open(dn.dbb),md=LDBM_WRCREAT)
> ----- s n i p -----
>
>
> This is what i did.
>
> 1. Stoped slapd/slurpd.
> 2. Did a ldif copy of the database (ldbmcat -n)
> 3. Removed the database
> 4. Installed the new openldap packages (that I have installed
> on two other machines).
> 5. Tried to create the database with ldif2ldbm
>
> What might I have missed?
What is your dbcachesize configuration value, and your memory ulimit
("ulimit -a" in bash)?