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.

Author neologix
Recipients neologix, vstinner
Date 2011-09-17.14:34:29
SpamBayes Score 0.0012845598
Marked as misclassified No
Message-id <1316270071.04.0.179563462632.issue13001@psf.upfronthosting.co.za>
In-reply-to
Content
http://www.python.org/dev/buildbot/all/builders/x86 FreeBSD 7.2 3.x/builds/2129/steps/test/logs/stdio

"""
======================================================================
FAIL: testRecvmsgTrunc (test.test_socket.RecvmsgUDPTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_socket.py", line 1666, in testRecvmsgTrunc
    self.checkFlags(flags, eor=False)
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_socket.py", line 1354, in checkFlags
    self.assertEqual(flags & mask, checkset & mask)
AssertionError: 0 != 16

======================================================================
FAIL: testRecvmsgTrunc (test.test_socket.RecvmsgIntoUDPTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_socket.py", line 1666, in testRecvmsgTrunc
    self.checkFlags(flags, eor=False)
  File "/usr/home/db3l/buildarea/3.x.bolen-freebsd7/build/Lib/test/test_socket.py", line 1354, in checkFlags
    self.assertEqual(flags & mask, checkset & mask)
AssertionError: 0 != 16
"""

This fails because MSG_TRUNC isn't always set in msg_flags when receiving a truncated datagram with recvmsg().
It's a known kernel bug (http://svnweb.freebsd.org/base?view=revision&revision=211030), fixed in FreeBSD 8 (and the test indeed passes on the FreeBSD 8 buildbot).

The patch attached skips the test on FreeBSD < 8 (and introduces @support.requires_freebsd_version).
History
Date User Action Args
2011-09-17 14:34:31neologixsetrecipients: + neologix, vstinner
2011-09-17 14:34:31neologixsetmessageid: <1316270071.04.0.179563462632.issue13001@psf.upfronthosting.co.za>
2011-09-17 14:34:30neologixlinkissue13001 messages
2011-09-17 14:34:30neologixcreate