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

How do I get a good gdb trave of slapd?

Hi, I'm trying to debug segfault in OpenLDAP 2.2.15 on a upgraded

I'm trying to get the system working with ldapdb as well as with
saslauth. Saslauth has problems if it goes directly to the ldapdatabase
and not through pam. Even slaptest segfaults after saying 

I therefore suspect this is an issue either with an old lib lying around
or something up that alley. 

Therefore: How should I use gdb to get a good trace? My problem is that
openldap jumps off into another thread and makes it hard to get a proper

If this is a known issue with this version (that I know is old) then
please say so, but if not I'd rather get it working than have to build
my own rpms from time to time.

>From slaptest I got this stacktrace: 
[Switching to Thread 1078249344 (LWP 27837)]
0x080ad1ff in bdb_initialize ()
(gdb) bt
#0  0x080ad1ff in bdb_initialize ()
#1  0x0806f646 in backend_shutdown ()
#2  0x080abc60 in slap_tool_destroy ()
#3  0x080acb65 in slaptest ()
#4  0x080558f7 in main ()

Kind regards,

Tarjei Huse <tarjei@nu.no>