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

coredumps with slapcat and slapadd as unprivileged user (BDB 4.1) (ITS#2868)



Full_Name: alexander blüm
Version: 2.1.25
OS: FreeBSD
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (145.254.68.156)


both versions: 2.1.23 and 2.1.25 have the same problem. I get coredumps when
using slapindex, slapcat and slapadd. The core is dumped when the slapd is
running AND when not.

slapadd and slapcat dumped their cores before and after adding entries with
ldapadd.

using ldapadd works, but the not-working of the slap*tools is very annoying and
unsatisfying.



alex@old:~$ gdb /usr/ports/net/openldap21-server/./work/openldap-2.1.25/servers/slapd/tools/.libs/slapcat
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read called
at /usr/src-RELENG_4/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at
/usr/src-RELENG_4/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line 933 in fill_symbuf

(gdb) r
Starting program: /usr/ports/net/openldap21-server/./work/openldap-2.1.25/servers/slapd/tools/.libs/slapcat


Program received signal SIGSEGV, Segmentation fault.
0x807d5d6 in bdb_tool_entry_next (be=0x8116600) at tools.c:84
84                      rc = bdb->bi_id2entry->bdi_db->cursor(
(gdb) bt
#0  0x807d5d6 in bdb_tool_entry_next (be=0x8116600) at tools.c:84
#1  0x805487c in main (argc=1, argv=0xbfbff928) at slapcat.c:73
#2  0x805464a in _start (
    arguments=0xbfbffa3c
"/usr/ports/net/openldap21-server/./work/openldap-2.1.25/servers/slapd/tools/.libs/slapcat")
    at /usr/src-RELENG_4/lib/csu/i386-elf/crt1.c:119
(gdb) 
(gdb) fr 0
#0  0x807d5d6 in bdb_tool_entry_next (be=0x8116600) at tools.c:84
84                      rc = bdb->bi_id2entry->bdi_db->cursor(
(gdb) print bdb->bi_id2entry
There is no member named bi_id2entry.