[tpop3d-discuss] Peculiar bug. 1.5.2 with TLS crashes on occasion.

Chris Lightfoot chris at ex-parrot.com
Thu, 16 Oct 2003 12:43:46 +0100


On Wed, Oct 15, 2003 at 08:39:13PM -0400, Dave Baker wrote:

[ I've tried to reproduce this with the data you've
  supplied, but can't yet. ]

> Here's the tpop3d output from the session that crashed:
> 
> 2003-10-15 20:06:30.871169500 listeners_post_select: client [6]69.0.74.197/mail.server.hostname: connected to local address 69.55.238.47:995
> 2003-10-15 20:06:35.014563500 authcontext_new_user_pass: began session for `dave@dsb3.com' with perl; uid 68, gid 6
> 2003-10-15 20:06:35.018870500 fork_child: [6]dave@dsb3.com(69.0.74.197): began session for `dave@dsb3.com' with perl; child PID is 92462
> 2003-10-15 20:06:35.025294500 mailspool_new_from_file: indexed mailspool /var/mail/dsb3.com/dave (6591 bytes) in 0.000s
> 2003-10-15 20:06:36.951299500 ioabs_tls_immediate_write: client [6]dave@dsb3.com(69.0.74.197): bad write retry; closing connection

hang on. tpop3d hasn't crashed here; it's received an
error from the network layer. Not sure why yet.

> 2003-10-15 20:06:36.954052500 connections_post_select: client [6]dave@dsb3.com(69.0.74.197): finished session for `dave@dsb3.com' with perl
> 2003-10-15 20:06:36.954067500 connections_post_select: client [6]dave@dsb3.com(69.0.74.197): disconnected; 47/8024 bytes read/written

This could be an error in the buffering code, I suppose. I
doubt it's to do with the message format in detail --
tpop3d only looks for From_ lines and blank lines. Have
you access to any other version of openssl? I'd be
interested to know whether compiling it with a different
library version makes any difference in your
configuration.

-- 
``... you cannot make a pair of croak-voiced Daleks appear benevolent even if
  you dress one of them up in an Armani suit and call the other Marmaduke.''
  (Dennis Potter, on ex-BBC big cheeses John Birt and Marmaduke Hussey)