[tpop3d-discuss] segfault on bad password

Chris Lightfoot chris at ex-parrot.com
Thu, 16 May 2002 18:39:14 +0100


    [ Please can we keep this on-list. ]

On Thu, May 16, 2002 at 09:46:42AM -0400, Michael Klatsky wrote:
> Chris-
> 
> Here you go. Thanks!
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0xff133084 in ?? ()
> (gdb) bt
> #0  0xff133084 in ?? ()
> #1  0xff184d44 in ?? ()
> #2  0x00015cac in verrprintf (
>     fmt=0x30040 "auth_ldap_new_user_pass: failed login for r:
> (uid=michael)", 
>     ap=0xffbef8d4) at logging.c:101
> #3  0x00015cd4 in log_print (priority=3, 
>     fmt=0x1c9b0 "auth_ldap_new_user_pass: failed login for %s%s%s")
>     at logging.c:112
> #4  0x0001385c in auth_ldap_new_user_pass (username=0x307e0 "michael", 
>     local_part=0x0, domain=0x315b8 "mapu.com", pass=0x307a0 "oscar", 
>     host=0x31678 "(uid=michael)") at auth_ldap.c:312
                    ^^^^^^^^^^^^^
> #5  0x0001421c in authcontext_new_user_pass (user=0x307e0 "michael", 
>     local_part=0x0, domain=0x315b8 "mapu.com", pass=0x307a0 "oscar", 
>     host=0xff2a3a84 "66.6.65.66") at authswitch.c:221

OK, something wierd is going on here. The host being
passed to auth_ldap_new_user_pass is not valid; I suspect
some memory corruption bug. I'll take a more detailed look
at it. Can you tell me what version of OpenLDAP you're
using?

> #6  0x00019d14 in connection_do (c=0x32968, p=0x315e8) at pop3.c:203
> #7  0x00017afc in connections_post_select (readfds=0xffbefb58, 
>     writefds=0x1e000, exceptfds=0x1e000) at main.c:337
> #8  0x00017dc8 in net_loop () at main.c:424
> #9  0x000185e8 in main (argc=125392, argv=0xffbefcd4, envp=0xffbefce0)
>     at main.c:734



-- 
``The jawbone of an ass is just as dangerous
  a weapon today as in Samson's time.'' (Richard Nixon)