[New-bugs-announce] [issue4942] accept() on AF_UNIX sockets broken on arm as of 2.5.3

Hamish Moffatt report at bugs.python.org
Wed Jan 14 04:48:25 CET 2009

New submission from Hamish Moffatt <hamish at cloud.net.au>:

As of 2.5.3, calling accept() on an AF_UNIX socket fails on arm. The
following exception occurs:

SystemError: Negative size passed to PyString_FromStringAndSize

I have attached a test program that creates a socket and connects to it.
It works on x86-64 but fails on armeb (gcc 4.1.2).

This failure has been noted a few times by the arm buildbot too:

It's already fixed in 2.6.x in rev 60214. I applied the same change to
2.5.4 and the problem was resolved.

components: Extension Modules
files: accept_test.py
messages: 79825
nosy: hmoffatt
severity: normal
status: open
title: accept() on AF_UNIX sockets broken on arm as of 2.5.3
versions: Python 2.5
Added file: http://bugs.python.org/file12733/accept_test.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list