[ python-Bugs-751612 ] smtplib crashes Windows Kernal.

SourceForge.net noreply at sourceforge.net
Tue Apr 26 23:58:06 CEST 2005


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

Category: Windows
Group: None
>Status: Closed
>Resolution: Invalid
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: Terry J. Reedy (tjreedy)
Date: 2005-04-26 17:58

Message:
Logged In: YES 
user_id=593130

Seems to be WinME bug.  Closing.

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

Comment By: mark lee smith (netytan)
Date: 2003-06-25 16:20

Message:
Logged In: YES 
user_id=797196

If you mean the error message "..caused an error in..Windows 
Kernal", you can click ok and it closes most of the time, other 
times the whole machine bails. I've tested it now on Windows 
XP pro and home and it sends straight through. I'm gonna try 
get hold of a 98 box so I can test it but it seems to be just 
my ME box at the moment.

Mark

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

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-06-25 10:30

Message:
Logged In: YES 
user_id=80475

Can this be closed?

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

Comment By: mark lee smith (netytan)
Date: 2003-06-11 18:36

Message:
Logged In: YES 
user_id=797196

Will do, I'll try run the script from my box upstairs and one at 
work. Thanks for all your help, at least it's sending email, be it 
you need to send "^D" in that example but with a little 
reworking it should be a problem. Thank's again.

P.S let's blame Microsoft, never did like them, so dodgy lol. If 
I could get away from Windows I would but unfortunatly it's a 
commercial standard.. Ta

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

Comment By: Tim Peters (tim_one)
Date: 2003-06-11 17:36

Message:
Logged In: YES 
user_id=31435

I don't hold out much hope that this will get resolved.  
Windows has tons of bugs (a lot more than Python!), and it's 
not uncommon to find a program (Python-based or otherwise) 
that fails on only one specific Windows box in the world.  For 
example, you could have a corrupted bit in any of the 
thousand Windows DLLs on your box, or you may simply be 
behind in running Windows Update.  Other possibilities include 
that you're running a virus checker (those often interfere with 
normal program operations), or are behind an improperly 
written firewall.

So long as your report is the only one of this nature, there's 
really no hope for resolving it short you digging into it.  I don't 
see any evidence of a bug in Python here (worse, a crash in a 
core OS DLL is prima facia evidence of a bug in the OS!).

If you can, try running the same thing on a friend's Windows 
box.  I bet you won't have any problem there.

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

Comment By: mark lee smith (netytan)
Date: 2003-06-11 17:22

Message:
Logged In: YES 
user_id=797196

Ok, I ran your file and it returned the same as when I ran 
mine,  both crashed the Kernal. I think the reason that the 
mail wasn't being sent before was that I forgot to finish the 
message with "^D" although the main problem remains, what 
is the Kernal crashing out :S..  

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

Comment By: mark lee smith (netytan)
Date: 2003-06-11 16:53

Message:
Logged In: YES 
user_id=797196

Hi, I've replicated what had before exactly, the win32 Kernal 
still crashes but the mail is delivered :S, don't ask me why it 
sends now and didn't before, nothing has changed to my 
knowlage.. Anyway if I've done this right it should be 
attached to this.

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

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


More information about the Python-bugs-list mailing list