daniel@pluta.biz wrote:
Full_Name: Daniel Pluta Version: OPENLDAP_REL_ENG OS: Linux URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (2001:470:9feb:ff02:2958:c83c:2589:166d)
Hi,
Looks like you're mixing different libldaps in the same process. libldap init.c:484 is not what your backtrace shows. At least, not in the RE24 branch.
Closing this ITS, your environment is invalid.
root@srv:/home/tester/src/openldap# gdb /home/tester/src/openldap/servers/slapd/slapadd GNU gdb (GDB) 7.4.1-debian Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/... Reading symbols from /home/tester/src/openldap/servers/slapd/slapadd...done. (gdb) run -v -F /etc/ldap/slapd_example.d_stat -b "dc=example,dc=com" -l /tmp/example_data.ldif Starting program: /home/tester/src/openldap/servers/slapd/slapadd -v -F /etc/ldap/slapd_example.d_stat -b "dc=example,dc=com" -l /tmp/example_data.ldif [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 504cc479 mdb_id2entry_put: mdb_put failed: MDB_KEYEXIST: Key/data pair already exists(-30799) "dc=example,dc=com" 504cc479 => mdb_tool_entry_put: id2entry_add failed: err=-30799 504cc479 => mdb_tool_entry_put: txn_aborted! MDB_KEYEXIST: Key/data pair already exists (-30799) slapadd: could not add entry dn="dc=example,dc=com" (line=1): txn_aborted! MDB_KEYEXIST: Key/data pair already exists (-30799) _### 16.13% eta none elapsed none spd 501.5 k/s Closing DB...
Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6a34859 in free () from /lib/x86_64-linux-gnu/libc.so.6 (gdb) bt full #0 0x00007ffff6a34859 in free () from /lib/x86_64-linux-gnu/libc.so.6 No symbol table info available. #1 0x0000000000592f46 in ber_memfree_x (p=0x426f6f462f6d6f74, ctx=0x0) at memory.c:152 __PRETTY_FUNCTION__ = "ber_memfree_x" #2 0x0000000000579f5f in ldap_free_urldesc (ludp=0x8fcd10) at url.c:1528 No locals. #3 0x0000000000579f15 in ldap_free_urllist (ludlist=0x8fcd10) at url.c:1516 ludp = 0x8fcd10 next = 0x7375632f6374652f #4 0x00007ffff635b2b3 in ldap_int_destroy_global_options () at init.c:484 gopts = 0x7ffff6599080 #5 0x00007ffff7defef9 in ?? () from /lib64/ld-linux-x86-64.so.2 No symbol table info available. #6 0x00007ffff7df09ce in ?? () from /lib64/ld-linux-x86-64.so.2 No symbol table info available. #7 0x00007ffff7deabd6 in ?? () from /lib64/ld-linux-x86-64.so.2 No symbol table info available. #8 0x00007ffff79d12ec in ?? () from /lib/x86_64-linux-gnu/libdl.so.2 No symbol table info available. #9 0x00007ffff79d100f in dlclose () from /lib/x86_64-linux-gnu/libdl.so.2 No symbol table info available. #10 0x00007ffff77c8291 in ?? () from /usr/lib/x86_64-linux-gnu/libsasl2.so.2 No symbol table info available. #11 0x00007ffff77bfae1 in sasl_common_done () from /usr/lib/x86_64-linux-gnu/libsasl2.so.2 No symbol table info available. #12 0x00000000004b34d4 in slap_sasl_destroy () at sasl.c:1190 No locals. #13 0x0000000000482039 in slap_destroy () at init.c:249 rc = 0 #14 0x00000000004ddbc8 in slap_tool_destroy () at slapcommon.c:932 rc = 0 #15 0x00000000004db86f in slapadd (argc=8, argv=0x7fffffffe648) at slapadd.c:502 textbuf = "\000xn_aborted! MDB_KEYEXIST: Key/data pair already exists (-30799)", '\000' <repeats 191 times> textlen = 256 erec = {e = 0x8db288, lineno = 1, nextline = 14} bvtext = {bv_len = 256, bv_val = 0x7fffffffe300 ""} thr = 4270934 id = 18446744073709551615 prev = 0x0 ldifrc = 1 rc = 1 stat_buf = {st_dev = 2307, st_ino = 149868, st_nlink = 1, st_mode = 33188, st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 2225, st_blksize = 4096, st_blocks = 8, st_atim = {tv_sec = 1347128272, tv_nsec = 0}, st_mtim = {tv_sec = 1347128189, tv_nsec = 0}, st_ctim = { tv_sec = 1347128189, tv_nsec = 0}, __unused = {0, 0, 0}} #16 0x000000000041e688 in main (argc=8, argv=0x7fffffffe648) at main.c:410 i = 0 no_detach = 0 ---Type <return> to continue, or q <return> to quit--- rc = 1 urls = 0x0 username = 0x0 groupname = 0x0 sandbox = 0x0 syslogUser = 160 pid = 32767 waitfds = {0, 0} g_argc = 8 g_argv = 0x7fffffffe648 configfile = 0x0 configdir = 0x0 serverName = 0x7fffffffe8c3 "slapadd" serverMode = 1 scp = 0x0 scp_entry = 0x0 debug_unknowns = 0x0 syslog_unknowns = 0x0 serverNamePrefix = 0x596388 "" l = 140733193388033 slapd_pid_file_unlink = 0 slapd_args_file_unlink = 0 firstopt = 1 __PRETTY_FUNCTION__ = "main"