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

Re: Crash on ia64



Hello,
It is sufficiant ?
Thanks for your attention
Guy
> As clearly stated in http://www.openldap.org/faq/data/cache/59.html,
> backtraces from stripped binaries are useless; you need to use the
> binary in the build tree, not in the install tree to help shed some
> light on problems.
> 
> p.
debian:/home/guy/Cfg/src/openldap-2.2.14/servers/slapd# gdb ./slapd
GNU gdb 6.1-debian
Copyright 2004 Free Software Foundation, Inc.
This GDB was configured as "ia64-linux"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".

(gdb) run ./slapd -d 1 -f /home/sys/Ldap/conf/slapd-2.2.14.conf
Starting program: /home/guy/Cfg/src/openldap-2.2.14/servers/slapd/slapd
./slapd -d 1 -f /home/sys/Ldap/conf/slapd-2.2.14.conf
[Thread debugging using libthread_db enabled]
[New Thread 2305843009213882352 (LWP 6640)]
@(#) $OpenLDAP: slapd 2.2.14 (Jun 28 2004 16:37:31) $
        root@debian:/home/guy/Cfg/src/openldap-2.2.14/servers/slapd
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: IPv6 socket() failed errno=97 (Address family not supported by
protocol)
daemon: initialized ldap:///
daemon_init: 2 listeners opened
slapd init: initiated server.
bdb_initialize: initialize BDB backend
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3,
2003)
slapd starting
[New Thread 2305843009227946192 (LWP 6645)]
connection_get(13): got connid=0
connection_read(13): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 12 contents:
[New Thread 2305843009232140496 (LWP 6647)]
ber_get_next
ber_get_next on fd 13 failed errno=11 (Resource temporarily unavailable)
do_bind
ber_scanf fmt ({imt) ber:
ber_scanf fmt (m}) ber:
>>> dnPrettyNormal: <>
<<< dnPrettyNormal: <>, <>
do_bind: version=3 dn="" method=128
send_ldap_result: conn=0 op=0 p=3
send_ldap_response: msgid=1 tag=97 err=0
ber_flush: 14 bytes to sd 13
do_bind: v3 anonymous bind
connection_get(13): got connid=0
connection_read(13): checking for input on id=0
ber_get_next
ber_get_next: tag 0x30 len 51 contents:
ber_get_next
ber_get_next on fd 13 failed errno=11 (Resource temporarily unavailable)
do_search
ber_scanf fmt ({miiiib) ber:
>>> dnPrettyNormal: <o=eurofer,c=be>
=> ldap_bv2dn(o=eurofer,c=be,0)
<= ldap_bv2dn(o=eurofer,c=be,0)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(o=eurofer,c=be,272)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(o=eurofer,c=be,272)=0
<<< dnPrettyNormal: <o=eurofer,c=be>, <o=eurofer,c=be>
ber_scanf fmt ({mm}) ber:
ber_scanf fmt ({M}}) ber:
==> limits_get: conn=0 op=1 dn="[anonymous]"
=> bdb_search
bdb_dn2entry("o=eurofer,c=be")
=> bdb_dn2id( "o=eurofer,c=be" )
<= bdb_dn2id: got id=0x00000001
entry_decode: "o=Eurofer,c=be"
<= entry_decode(o=Eurofer,c=be)
search_candidates: base="o=eurofer,c=be" (0x00000001) scope=2
=> bdb_dn2idl( "o=eurofer,c=be" )
=> bdb_equality_candidates (objectClass)
=> key_read

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2305843009232140496 (LWP 6647)]
bdb_idl_fetch_key (be=0x0, db=0x0, tid=0x0, key=0x0, ids=0x0) at
idl.c:456
456     {
(gdb) bt full
#0  bdb_idl_fetch_key (be=0x0, db=0x0, tid=0x0, key=0x0, ids=0x0) at
idl.c:456
        bdb = (struct bdb_info *) 0x0
        rc = 0
        data = {data = 0x0, size = 0, ulen = 0, dlen = 0, doff = 0,
flags = 0}
        cursor = (DBC *) 0x0
        i = (ID *) 0x0
        ptr = (void *) 0x0
        len = 0
        rc2 = 0
        flags = 0
        buf = {0 <repeats 64967 times>, 4611686018430036324, 0 <repeats
13 times>, 4611686018430033376, 0, 0, 4222451713, 2305843009230552560,
  2305843009230552560, 2305843009230552560, 2305843009230552560,
2305843009230552572, 2305843009230556655, 2305843009230552560,
2305843009230556655, 0,
  0, 0, 0, 0, 4222451713, 2305843009230552672, 2305843009230536704, 0,
2305843009230552672, 2305843009230552713, 2305843009230556767,
  2305843013508661247, 2305843009230556767, 0, 0, 0, 0,
2305843009218502592, 0, 0, 0, 0, 0, 0, 0, 4294967295, 0, 0, 4294967297,
4611686018430036312,
  8241439319607230013, 2305843009388044645, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 4294967297, 4611686018430033344, 7304665303900765757,
6879657901923857777,
  8386094384959873379, 7307761574916158309, 2986857840142152803, 10, 0
<repeats 39 times>, 4611686018430032542, 0, 0, 0, 0, 0, 0,
3602879701896396800, 0,
  0, 4611686018429938324, 0, 0, 0, 0, 0, 0, 4222451713,
2305843009230553488, 2305843009230553488, 2305843009230553488,
2305843009230553488,
  2305843009230553522, 2305843009230557583, 2305843009230553488,
2305843009230557583, 0, 0, 0, 0, 0, 16859616, 2305843009230553600,
2305843009230536704,
  0, 2305843009230557663, 0, 0, 4294967295, 0, 0, 4222451713,
2305843009230553680, 2305843009230553680, 2305843009218502592, 0,
2305843009230553742,
  2305843009230557775, 2305843009230553680, 2305843009230557775, 0, 0,
0, 0, 0, 4294967297, 4611686018430032520, 7232607709862837821,
  2459009842550485614, 7306649982841732463, 2315524631032966258, 2601,
4294967295, 0, 4294967295, 4294967297, 4611686018429938304,
8751185043426131260,
  2305843009218502592, 0, 732227887035526258, 0, 0, 0, 0, 0,
4611686018430013654, 0, 0, 4294967297, 4611686018430014272,
7160556708872414579,
  7310575179021971041, 4424069071056681587, 7381244162818797346,
2478495185733710437, 3472328297435637792, 7166106793367580720,
2305854220108394607,
  2305843009230554032, 2305843009230554063, 2305843009230558127,
2305843009230554032, 2305843009230558127, 0, 0, 0, 0, 0, 16864239,
2305843009230554096,
  2305843009230536704, 0, 0, 0, 0...}
        keybuf = "\bN\001\001\000\000\000 \220\202\031\001\000\000\000 "
#1  0x40000000001a75b0 in bdb_key_read (be=0x6000000000047b10,
db=0x600000000009c620, txn=0x0, k=0x2000000001198290,
ids=0x200000000129c010) at key.c:52
        rc = 8
        key = {data = 0x20000000011982b8, size = 4, ulen = 4, dlen = 0,
doff = 0, flags = 32}
#2  0x40000000001963e0 in equality_candidates (op=0x600000000009b450,
ava=0x2000000001015370, ids=0x200000000149c010, tmp=0x200000000129c010)
    at filterindex.c:541
        bdb = (struct bdb_info *) 0x6000000000092f70
        db = (DB *) 0x600000000009c620
        i = 0
        rc = 0
        mask = 4
        prefix = {bv_len = 11, bv_val = 0x600000000003a010
"objectClass"}
        keys = (struct berval *) 0x2000000001198290
        mr = (MatchingRule *) 0x600000000003a270
#3  0x4000000000193050 in bdb_filter_candidates (op=0x600000000009b450,
f=0x2000000001015300, ids=0x200000000149c010, tmp=0x200000000129c010,
    stack=0x200000000159c010) at filterindex.c:140
        rc = 0
#4  0x4000000000194300 in list_candidates (op=0x600000000009b450,
flist=0x2000000001015300, ftype=161, ids=0x200000000139c010,
tmp=0x200000000129c010,
    save=0x200000000149c010) at filterindex.c:274
        bdb = (struct bdb_info *) 0x6000000000092f70
        rc = 0
        f = (Filter *) 0x2000000001015300
#5  0x4000000000193ab0 in bdb_filter_candidates (op=0x600000000009b450,
f=0x2000000001015320, ids=0x200000000139c010, tmp=0x200000000129c010,
    stack=0x200000000149c010) at filterindex.c:216
        rc = 0
#6  0x4000000000194300 in list_candidates (op=0x600000000009b450,
flist=0x2000000001015340, ftype=160, ids=0x2000000001015480,
tmp=0x200000000129c010,
    save=0x200000000139c010) at filterindex.c:274
---Type <return> to continue, or q <return> to quit--




Remember, the differences on the bdb_idl_insert_key :
This destroy my dysplay

slapadd -l Eurofer.ldif -f ./slapd.conf -d -1

On IA32
oc_check_allowed type "entryCSN"
=> bdb_tool_entry_put( -1, "o=Eurofer,c=be" )
=> bdb_dn2id( "o=eurofer,c=be" )
<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found
(-30990)
=> bdb_dn2id_add( "o=eurofer,c=be", 0x00000001 )
<= bdb_dn2id_add: 0
=> entry_encode(0x00000001): o=Eurofer,c=be
=> index_entry_add( 1, "o=Eurofer,c=be" )
=> key_change(ADD,1)
bdb_idl_insert_key: 1 [2daf1b1a]
<= key_change 0
=> key_change(ADD,1)
bdb_idl_insert_key: 1 [0096defd]
<= key_change 0
=> key_change(ADD,1)
bdb_idl_insert_key: 1 [62c4d55f]
<= key_change 0
=> key_change(ADD,1)
bdb_idl_insert_key: 1 [85cc2974]
<= key_change 0
<= index_entry_add( 1, "o=Eurofer,c=be" ) success


On IA64
oc_check_allowed type "entryCSN"
=> bdb_tool_entry_put( -1, "o=Eurofer,c=be" )
=> bdb_dn2id( "o=eurofer,c=be" )
<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found
(-30990)
=> bdb_dn2id_add( "o=eurofer,c=be", 0x00000001 )
<= bdb_dn2id_add: 0
=> entry_encode(0x00000001): o=Eurofer,c=be
=> index_entry_add( 1, "o=Eurofer,c=be" )
=> key_change(ADD,1)
bdb_idl_insert_key: 1 -¯^[^Z
<= key_change 0
=> key_change(ADD,1)
bdb_idl_insert_key: 1
<= key_change 0
=> key_change(ADD,1)
bdb_idl_insert_key: 1 bÄÕ_
<= key_change 0
=> key_change(ADD,1)
bdb_idl_insert_key: 1 ~EÌ)t
<= key_change 0
<= index_entry_add( 1, "o=Eurofer,c=be" ) success