Re: seg fault with LDAP authentication

2009-02-24 Thread molhacker
After a lot of banging my head against a wall I finally figured this one out. If figured I'd post the solution in case someone else runs into the same problem. I found the solution when I googled this http://www.mail-archive.com/php-b...@lists.php.net/msg02201.html Someone in the php world had

Re: seg fault with LDAP authentication

2009-02-17 Thread Jeff Anderson
molhacker wrote: I've been running into a very frustrating situation with a seg fault in Apache when authenticating Django using LDAP. The problem is intermittent, probably one out of every 5 logins causes the seg fault. The code I'm using for LDAP (borrowed from the web, thanks Mick) Have y

Re: seg fault with LDAP authentication

2009-02-17 Thread Graham Dumpleton
Does it happen for mod_wsgi daemon mode as well as embedded mode? If happens for daemon mode, create a single daemon process and then use method described in: http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Debugging_Crashes_With_GDB to try and capture a stack trace for where it cr

Re: seg fault with LDAP authentication

2009-02-17 Thread molhacker
Hi Bruno, Not sure what you mean by a "a log for this error" Here's what I see in the Apache error log Tue Feb 17 15:10:03 2009] [notice] child pid 16071 exit signal Segmentation fault (11) I tried using ldap.initialize rather than ldap.open, but I'm getting the same error. Any other ideas on

Re: seg fault with LDAP authentication

2009-02-17 Thread Bruno Tikami
On Tue, Feb 17, 2009 at 5:42 PM, molhacker wrote: > > I've been running into a very frustrating situation with a seg fault > in Apache when authenticating Django using LDAP. The problem is > intermittent, probably one out of every 5 logins causes the seg fault. > > The code I'm using for LDAP (b

seg fault with LDAP authentication

2009-02-17 Thread molhacker
I've been running into a very frustrating situation with a seg fault in Apache when authenticating Django using LDAP. The problem is intermittent, probably one out of every 5 logins causes the seg fault. The code I'm using for LDAP (borrowed from the web, thanks Mick) authentication is shown bel