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

Re: slapcat/slapadd/slapindex segfault on replica directive (ITS#1385)



As I was afraid, yahoo's mail program sucks and wrapped everything pretty
bad.  Let's try this with a regular e-mail client:

$ /private/openldap-2.0.15/sbin/slapindex -f
/private/openldap-2.0.15/etc/openldap/slapd.conf
Segmentation fault (core dumped)
[root@syslog-bvtn sbin]$ gdb slapindex core
GNU gdb 5.0
Copyright 2000 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 "sparc-sun-solaris2.8"...
(no debugging symbols found)...
Core was generated by `/private/openldap-2.0.15/sbin/slapindex -f
/private/openldap-2.0.15/etc/openlda'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/lib/libresolv.so.2...(no debugging symbols
found)...
done.
Loaded symbols for /usr/lib/libresolv.so.2
Reading symbols from /usr/lib/libgen.so.1...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libgen.so.1
Reading symbols from /usr/lib/libnsl.so.1...(no debugging symbols found)...
done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libsocket.so.1...(no debugging symbols
found)...
done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libdl.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libc.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libmp.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1...
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)...done.
Loaded symbols for /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1
#0  0x2270c in read_config ()
(gdb) bt
#0  0x2270c in read_config ()
#1  0x34858 in slap_tool_init ()
#2  0x21434 in main ()
(gdb)

----- Original Message -----
From: "David Stults" <davidstults@yahoo.com>
To: "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>
Cc: <dstults@integraonline.com>
Sent: Monday, October 15, 2001 8:02 PM
Subject: Re: slapcat/slapadd/slapindex segfault on replica directive
(ITS#1385)


> Here's a copy of what I did to produce the error.
>
> Thanks,
> David Stults
>
> <snip>
> $ /private/openldap-2.0.15/sbin/slapindex -f
> /private/openldap-2.0.15/etc/openldap/slapd.conf
> Segmentation fault (core dumped)
> [root@syslog-bvtn sbin]$ gdb slapindex core
> GNU gdb 5.0
> Copyright 2000 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 "sparc-sun-solaris2.8"...
> (no debugging symbols found)...
> Core was generated by
> `/private/openldap-2.0.15/sbin/slapindex -f
> /private/openldap-2.0.15/etc/openlda'.
> Program terminated with signal 11, Segmentation Fault.
> Reading symbols from /usr/lib/libresolv.so.2...(no
> debugging symbols found)...
> done.
> Loaded symbols for /usr/lib/libresolv.so.2
> Reading symbols from /usr/lib/libgen.so.1...(no
> debugging symbols found)...
> done.
> Loaded symbols for /usr/lib/libgen.so.1
> Reading symbols from /usr/lib/libnsl.so.1...(no
> debugging symbols found)...
> done.
> Loaded symbols for /usr/lib/libnsl.so.1
> Reading symbols from /usr/lib/libsocket.so.1...(no
> debugging symbols found)...
> done.
> Loaded symbols for /usr/lib/libsocket.so.1
> Reading symbols from /usr/lib/libdl.so.1...(no
> debugging symbols found)...done.
> Loaded symbols for /usr/lib/libdl.so.1
> Reading symbols from /usr/lib/libc.so.1...(no
> debugging symbols found)...done.
> Loaded symbols for /usr/lib/libc.so.1
> Reading symbols from /usr/lib/libmp.so.2...(no
> debugging symbols found)...done.
> Loaded symbols for /usr/lib/libmp.so.2
> Reading symbols from
> /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1...
> ---Type <return> to continue, or q <return> to quit---
> (no debugging symbols found)...done.
> Loaded symbols for
> /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1
> #0  0x2270c in read_config ()
> (gdb) bt
> #0  0x2270c in read_config ()
> #1  0x34858 in slap_tool_init ()
> #2  0x21434 in main ()
> (gdb)
> </snip>
>
> --- "Kurt D. Zeilenga" <Kurt@OpenLDAP.org> wrote:
> > Stack back trace (e.g. gdb slapadd core, enter
> > "bt").
> > Thanks, Kurt
> >
> > At 03:48 PM 2001-10-11, davidstults@yahoo.com wrote:
> > >Full_Name: David Stults
> > >Version: 2.0.15
> > >OS: Solaris 8 (latest patches)
> > >URL:
> > >Submission from: (NULL) (206.163.82.198)
> > >
> > >
> > >The tools slapadd/slapcat/slapindex segfault when
> > they get to the "replica"
> > >configuration line in my slapd.conf.  I tracked
> > this behavior down by using -d
> > >255 with slapcat:
> > >
> > >line 28 (pidfile
> > /private/openldap-2.0.15/var/slapd.pid)
> > >line 29 (argsfile
> > /private/openldap-2.0.15/var/slapd.args)
> > >line 42 (database        ldbm)
> > >line 43 (suffix          "o=Integra")
> > >line 44 (rootdn          "cn=Manager,o=Integra")
> > >line 49 (replogfile
> > /private/openldap-2.0.15/var/replica.log)
> > >line 54 (replica
> > host=ns1.integraonline.com
> > >suffix="ou=DNS,ou=External,o=Integra"
> > binddn="cn=Replicator,o=Integra"
> > >bindmethod=simple       credentials=secret)
> > >Segmentation fault
> > >
> > >When I commented out the replica lines, slapcat ran
> > fine.
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
>