[Date Prev][Date Next]
Re: Fwd: How to turn on logging for ldap library
No, I'm trying to connect to a valid ldap server address.
"directory.example.com". And I'm using port 389. I'm not sure why
ldap's debugging says "(null):7".
Has anybody seen this before?
On 5/10/06, Aaron Richton <email@example.com> wrote:
> It works fine without debugging though, no crash. Any ideas?
Don't turn on debugging and you won't crash! Of course...
> ldap_connect_to_host: TCP (null):7
is a bit bothersome. Are you really trying to connect to NULL? Even worse,
are you trying to printf() the NULL, perhaps when debugging? This is well
known to have Bad Effects.
If it's as simple as starting your program and watching it die, standard
debugging tools (gdb, dbx, valgrind, libumem, librtc) should be able to
pinpoint this fairly concretely.