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

Re: Debugging a module



Ryan Steele wrote:
Hey folks,

I'm trying to debug the cause of faulty module behavior (autogroup) which
has eluded both strace and 'slapd -d 16383'
(and, just as a point of reference, it's slapd 2.4.18 and autogroup 1.8 on
Ubuntu 8.04). So, I'd like to use gdb to
figure out what's going on, but I'm not quite sure how to attack the
problem. I've tried several different approaches
to debug what's going wrong during the ldapsearch with gdb, but I can't
seem
to capture what I'm looking for. Rather
than paste what I've tried, since it's ineffective, I'd instead like to
ask
how you all would approach it. So again,
the scenario is:

   - slapd is running without any errors in the logs (about slapd or the failed autogroup expansions)
   - dynlist works, so I know that modules as a whole and dynamic searches work
   - autogroup doesn't generate any errors, but fails to perform any expansions during ldapsearches

autogroup isn't supposed to perform any expansion during searches. That's not what it does.

--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/