[Python-bugs-list] [ python-Bugs-476648 ] socket.getnameinfo crashes interpreter
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 30 Oct 2001 20:58:10 -0800
Bugs item #476648, was opened at 2001-10-30 20:58
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=476648&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Rowe (icep17)
Assigned to: Nobody/Anonymous (nobody)
Summary: socket.getnameinfo crashes interpreter
Initial Comment:
When making an invalid call to socket.getnameinfo() it
is possible to crash the interpreter. From what I've
seen, this occurs under Windows ME with Python 2.2b1
and Windows 98 with Python 2.2a3. It does not occur
under Mandrake 8.0 with Python 2.2a3.
>>> import socket
>>> socket.getnameinfo(socket.inet_aton('127.0.0.1'), 0)
This results with Python causing an error in
MSVCRT.DLL. Under Mandrake 8.0 it causes the expected
exception:
Traceback (most recent call last):
File "<stdin>", line 1, in ?
SystemError: new style getargs format but argument is
not a tuple
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=476648&group_id=5470