[tpop3d-discuss] segfault on bad password

Michael Klatsky mklatsky at cttel.com
16 May 2002 10:01:42 -0400


The warnings that I see are:


gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/lib/include  -Wall
-Wstrict-prototypes -g -O2 -c auth_ldap.c
auth_ldap.c:356:9: warning: pasting "." and "mailbox" does not give a
valid preprocessing token
auth_ldap.c:356:9: warning: pasting "." and "mailbox" does not give a
valid preprocessing token
auth_ldap.c:357:9: warning: pasting "." and "mboxtype" does not give a
valid preprocessing token
auth_ldap.c:357:9: warning: pasting "." and "mboxtype" does not give a
valid preprocessing token
auth_ldap.c:358:9: warning: pasting "." and "user" does not give a valid
preprocessing token
auth_ldap.c:358:9: warning: pasting "." and "user" does not give a valid
preprocessing token
auth_ldap.c:359:9: warning: pasting "." and "group" does not give a
valid preprocessing token
auth_ldap.c:359:9: warning: pasting "." and "group" does not give a
valid preprocessing token

...

gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/lib/include  -Wall
-Wstrict-prototypes -g -O2 -c maildir.c
maildir.c:103:2: warning: #warning IGNORE_CCLIENT_METADATA not supported
with maildir.
maildir.c: In function `maildir_send_message':
maildir.c:177: warning: implicit declaration of function `open'

...

gcc -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/local/lib/include  -Wall
-Wstrict-prototypes -g -O2 -c signals.c
signals.c: In function `die_signal_handler':
signals.c:132: warning: implicit declaration of function `memset'


M





On Thu, 2002-05-16 at 09:45, prune wrote:
> Hi,
> 
> Michael Klatsky wrote:
> 
> >There are only two entries related to this that I can see each time the
> >crash occurs:
> >
> >May 16 09:37:32 virt01 tpop3d[25716]: [ID 702911 mail.info]
> >listeners_post_select: client [7]66.6.65.66/mapu.com: connected
> >May 16 09:37:38 virt01 tpop3d[25716]: [ID 702911 mail.error] quit:
> >signal 11 post_fork = 0
> >
> >I do, however, see an ldap inquiry in my slapd.log when this occurs.
> >
> >Thanks.
> >
> >
> >Michael
> >
> >BTW- This is running on Solaris 8
> >
> 
> I had the same kind of problem during development of ldap auth module.
> the problem was only existing on linux. it was dependent of the compiler.
> in fact, when compiling, some basic libs weren't found so the compiler 
> was using default once, without a good function prototype.
> turn verbose on when compiling and see if you have warning messages.
> else, set maximum verbose to tpop3d and restart it.....
> 
> I'm waiting for you.
> 
> Cheers,
> 
> Prune
> 
> >
> >
> >
> >
> >On Thu, 2002-05-16 at 09:34, Chris Lightfoot wrote:
> >
> >>On Thu, May 16, 2002 at 09:28:22AM -0400, Michael Klatsky wrote:
> >>
> >>>Hello all- 
> >>>
> >>>I've run into a problem- I am experiencing crashes upon an incorrect
> >>>password entry using tpop3d. When popping, if I enter a correct
> >>>user/pass combo, all is well. If I enter a nonexistent user, and any
> >>>password, I get a correct "-ERR Lies! Try again!" response.
> >>>
> >>>However, if I enter an existing user, and an incorrect password, the
> >>>popper crashes with the following log entry:
> >>>
> >>>mail.error] quit: signal 11 post_fork = 0
> >>>
> >>What log messages do you get before that? Anything about
> >>ldap_simple_bind_s or talking about the failed login?
> >>
> >>-- 
> >>Knowledge is power -- Power corrupts -- Study hard -- Be evil!
> >>
> 
> 
-- 


Sincerely,
 

Michael Klatsky
Senior Unix Administrator
Connecticut Telephone
1 Talcott Plaza
Hartford, CT 06103
1-860-240-6496