[Python-bugs-list] [ python-Bugs-751612 ] smtplib crashes Windows Kernal.

SourceForge.net noreply@sourceforge.net
Mon, 09 Jun 2003 16:47:03 -0700


Bugs item #751612, was opened at 2003-06-09 18:44
Message generated for change (Comment added) made by tim_one
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=751612&group_id=5470

Category: Windows
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: mark lee smith (netytan)
Assigned to: Nobody/Anonymous (nobody)
Summary: smtplib crashes Windows Kernal.

Initial Comment:
When trying to use the smtplib module (or modules 
which use smtplib i.e. email) the Windows Kenal crashes 
without sending the email. I'm trying to send the email 
through an external mail server but I imagine the problem 
would still exist if I was using a local mailserver.

----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2003-06-09 19:47

Message:
Logged In: YES 
user_id=31435

Just attaching tcap.txt.  Note that on Windows, you have to 
end the msg with Ctrl-Z (not the Unixish Ctrl-D in the example 
comments).

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2003-06-09 19:45

Message:
Logged In: YES 
user_id=31435

I'll show you what I'm looking for:  attached is the exact code 
I just ran, in smtpex.py, and a screen dump from running it, in 
tcap.txt.  I changed the example to use comcast.net's SMTP 
server.  It worked fine for me on Win98SE.  I was using 
Python 2.2.3, and don't know whether that makes a 
difference.

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2003-06-09 19:39

Message:
Logged In: YES 
user_id=31435

I don't understand.  If you're not running an SMTP server on 
localhost, I expect that example to die with

socket.error: (10061, 'Connection refused')

And indeed, that's what it does when I try it on Win98SE.  So 
I conclude you must have changed the example in some way.  
If so, the solution to your problem will be found in the details 
of you changed it.  Nobody can guess that, so please attach 
the code you actually ran.

----------------------------------------------------------------------

Comment By: mark lee smith (netytan)
Date: 2003-06-09 19:25

Message:
Logged In: YES 
user_id=797196

Im using Python 2.2.2 and the example in smtplib 
documentation originally caused the error. It crashes the 
Kernal on Windows ME and 98, failing to send on Windows XP.

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2003-06-09 18:51

Message:
Logged In: YES 
user_id=31435

We're going to need more info, and potentially a lot more.  
Start with which version of Python and which flavor of 
Windows.  Lots of people use smtplib on all flavors of 
Windows, and there are no other reports like yours, so it's 
going to turn out to be something very specific to what 
you're doing.  Also. of possible, attach an executable test 
program that reliably triggers the problem for you.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=751612&group_id=5470