Subject: Re: Re: slapd cores
To: Michael <macallan18@earthlink.net>
From: Joel CARNAT <joel@carnat.net>
List: port-sparc64
Date: 06/07/2005 00:06:16
--SdaPbLtAangIkrMZ
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jun 06 2005 - 10:22, Michael wrote:
> Hello,
>=20
> > ldap_read: want=3D8 error=3DResource temporarily unavailable
> > ...
> > Bus error (core dumped)
>=20
> Could you track this in a debugger? Maybe it's just another game of
> pass-an-(int *)-as-(size_t *) or something equally obvious.
>=20

 passing (COPTS+=3D-g) in mk.conf didn't seem to add debugging things in
 the slapd binary ...

here's what I did :
# sudo /etc/rc.d/slapd start
# sudo gdb /usr/pkg/libexec/slapd 3525
# ldapsearch -H ldap://ldap...

ldapsearch begins to answer (in fact, it gives me the whole answer),
then pauses, then says "ldap_result: Can't contact LDAP server (-1)".
=66rom now, I can see slapd is not running anymore.

gdb says :
GNU gdb 5.3nb1
<...>
This GDB was configured as "sparc64--netbsdelf"...
(no debugging symbols found)...
Attaching to program: /usr/pkg/libexec/slapd, process 6760
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols
found)...
done.
Loaded symbols for /usr/libexec/ld.elf_so
Reading symbols from /usr/pkg/lib/libldap_r-2.2.so.7...
(no debugging symbols found)...done.
Loaded symbols for /usr/pkg/lib/libldap_r-2.2.so.7
Reading symbols from /usr/pkg/lib/liblber-2.2.so.7...
(no debugging symbols found)...done.
Loaded symbols for /usr/pkg/lib/liblber-2.2.so.7
Reading symbols from /usr/pkg/lib/libdb4-4.3.so.3...
(no debugging symbols found)...done.
Loaded symbols for /usr/pkg/lib/libdb4-4.3.so.3
Reading symbols from /usr/lib/libssl.so.3...(no debugging symbols
found)...
done.
<...>
Reading symbols from /usr/lib/libc.so.12...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libc.so.12
Reading symbols from /usr/lib/libcrypt.so.0...(no debugging symbols
found)...
done.
Loaded symbols for /usr/lib/libcrypt.so.0
0x000000004150fb14 in select () from /usr/lib/libpthread.so.0
(gdb) cont
Continuing.

Program received signal SIGBUS, Bus error.
[Switching to LWP 2]
0x0000000041507648 in _setcontext_u () from /usr/lib/libpthread.so.0
(gdb) bt
#0  0x0000000041507648 in _setcontext_u () from /usr/lib/libpthread.so.0
Error accessing memory address 0x70: Invalid argument.
(gdb) cont
Continuing.

Program terminated with signal SIGBUS, Bus error.
The program no longer exists.
(gdb) bt
No stack.
(gdb) quit

don't know what all this means (expect my LDAP don't work :)
tomorrow, I'll try to compile OpenLDAP with correct debugging info and
redo the test.

TIA,
	Jo
--=20
,- This mail runs ------.
`--------- NetBSD/i386 -'

--SdaPbLtAangIkrMZ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (NetBSD)

iD8DBQFCpMjY0/VH7L7F7Y4RAqe0AJ0bVTBFy6zhhHsrnTDDCmf1WvEq3gCaAigY
IXaLbSh0N07nBZxTjwiCz38=
=c8et
-----END PGP SIGNATURE-----

--SdaPbLtAangIkrMZ--