[New-bugs-announce] [issue17269] getaddrinfo segfaults on OS X when provided with invalid arguments combinations
Johan Tibell
report at bugs.python.org
Fri Feb 22 00:31:53 CET 2013
New submission from Johan Tibell:
The following call to getaddrinfo makes Python segfault:
$ python
Python 2.7.2 (default, Jun 20 2012, 16:23:33)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.getaddrinfo("localhost", None, 0, 0, 0, socket.AI_NUMERICSERV)
Segmentation fault: 11
The combination of no port (None) and socket.AI_NUMERICSERV makes no sense (I used it by mistake) but we probably don't want to segfault anyway.
----------
components: Library (Lib)
messages: 182615
nosy: tibbe
priority: normal
severity: normal
status: open
title: getaddrinfo segfaults on OS X when provided with invalid arguments combinations
type: crash
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17269>
_______________________________________
More information about the New-bugs-announce
mailing list