This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Possible windows+python bug
Type: Stage:
Components: Windows Versions: Python 2.3
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: holo9, logistix, terry.reedy
Priority: normal Keywords:

Created on 2005-03-22 15:38 by holo9, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg24756 - (view) Author: holo9 (holo9) Date: 2005-03-22 15:38
This bug is produced on WindowsXP SP1 (OSVer : 
5_1_2600) with Python2.3 installed.

Start Python and type (of course x.x.x.x should be 
replaced with IP address):

import socket
s=socket.socket(socket.AF_INET,socket.SOCK_RAW,4)
s.sendto("",("x.x.x.x",0))

Press ENTER and your win box should crash immediately.
On my test after restart windows returned BCCode : d1.

By the way, IP protocol 0x04 is "IP over IP", and I 
could send such datagrams month ago with Python 
(although Microsoft has crippled some protocols).
Now, this is maybe specific to this configuration, or 
it could be due to some driver (BCCode: d1 is specific 
for drivers related problems). It needs further 
testing on different configurations.
Note that the problem doesn't appears when string in 
sendto() function is not empty.
msg24757 - (view) Author: Grant Olson (logistix) Date: 2005-03-24 02:18
Logged In: YES 
user_id=699438

Running your reproducable on XP SP2 (with real IP) returns
"socket.error: (10022, 'Invalid argument')" for me without a
hard crash.
msg24758 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2005-03-30 19:37
Logged In: YES 
user_id=593130

Do you get the same problem with either of the current releases 
(2.3.5 and/or 2.4.1)?
msg24759 - (view) Author: holo9 (holo9) Date: 2005-03-30 21:15
Logged In: YES 
user_id=1244385

I tested this on Python 2.3.4. But there is no problem in 
Python. This bug could be reproduced in C, for example. The 
main problem is in Windows built-in firewall. For explanation 
take a look at:

http://seclist.org/lists/bugtraq/2005/Mar/0409.html
msg24760 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2005-03-31 02:04
Logged In: YES 
user_id=593130

If there is no problem in Python itself, then perhaps you could 
close this.
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41743
2010-05-24 20:18:49terry.reedysetresolution: not a bug
2005-03-22 15:38:02holo9create