Debugging 3.0.23d Winbindd

Gerald (Jerry) Carter jerry at samba.org
Wed Feb 7 03:55:32 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Todd,

> I'm trying to debug some issues using gdb in winbindd.  
> I'm using:
> 
> gdb --args winbindd -i -Y

- -Y doesn't work anymore.

> However, nothing seems to work for me while running 
> under gdb.  For example, if I use wbinfo -t, the
> debug spew indicates:
> 
> Could not receive async reply
> 
> and wbinfo eventually times out.   We're upgrading 
> our distro from 3.0.11 to 23d - things *used* to be
> debuggable for me in 3.0.11 ;).

Just remember than winbindd is now simply a state machine.

Only a few calls are really traceable in the main winbindd.
User/group enumeration, getgrnam(), and the pam server calls
IIRC.  Other than than, the best trick I found is just to
attach to the correct winbindd.  Of course, you have to
figure that out.  The "debug pid" & "debug timestamp" options
are helpful here for the log files.

And I find inserting sleep() calls in the code in order to
give me time to attach is helpful.







cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFyU20IR7qMdg1EfYRAtM2AJsHCkaI0C7Iagfj7a6c9ee9aWnrCwCgstOt
HgRflQR5tEoLselBqgnxN7c=
=IQWS
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list