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: test_socket fails in MacOS High Sierra when running with -Werror
Type: Stage: resolved
Components: macOS Versions: Python 3.8
process
Status: closed Resolution: duplicate
Dependencies: Superseder: test_socket testCmsgTruncLen0 gets "received malformed or improperly-truncated ancillary data" warning under OS X
View: 23828
Assigned To: Nosy List: ned.deily, pablogsal, ronaldoussoren
Priority: normal Keywords:

Created on 2018-10-28 15:08 by pablogsal, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg328690 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2018-10-28 15:08
....

======================================================================
ERROR: testCmsgTruncLen0Plus1 (test.test_socket.RecvmsgIntoSCMRightsStreamTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/pgalindo3/github/cpython/Lib/test/test_socket.py", line 3387, in testCmsgTruncLen0Plus1
    self.checkTruncatedArray(ancbuf=socket.CMSG_LEN(0) + 1, maxdata=1)
  File "/Users/pgalindo3/github/cpython/Lib/test/test_socket.py", line 3362, in checkTruncatedArray
    len(MSG), ancbuf)
  File "/Users/pgalindo3/github/cpython/Lib/test/test_socket.py", line 2436, in doRecvmsg
    result = sock.recvmsg_into([buf], *args)
RuntimeWarning: received malformed or improperly-truncated ancillary data

======================================================================
ERROR: testCmsgTruncLen1 (test.test_socket.RecvmsgIntoSCMRightsStreamTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/pgalindo3/github/cpython/Lib/test/test_socket.py", line 3394, in testCmsgTruncLen1
    maxdata=SIZEOF_INT)
  File "/Users/pgalindo3/github/cpython/Lib/test/test_socket.py", line 3362, in checkTruncatedArray
    len(MSG), ancbuf)
  File "/Users/pgalindo3/github/cpython/Lib/test/test_socket.py", line 2436, in doRecvmsg
    result = sock.recvmsg_into([buf], *args)
RuntimeWarning: received malformed or improperly-truncated ancillary data

======================================================================
ERROR: testCmsgTruncLen2Minus1 (test.test_socket.RecvmsgIntoSCMRightsStreamTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/pgalindo3/github/cpython/Lib/test/test_socket.py", line 3401, in testCmsgTruncLen2Minus1
    maxdata=(2 * SIZEOF_INT) - 1)
  File "/Users/pgalindo3/github/cpython/Lib/test/test_socket.py", line 3362, in checkTruncatedArray
    len(MSG), ancbuf)
  File "/Users/pgalindo3/github/cpython/Lib/test/test_socket.py", line 2436, in doRecvmsg
    result = sock.recvmsg_into([buf], *args)
RuntimeWarning: received malformed or improperly-truncated ancillary data

----------------------------------------------------------------------
Ran 555 tests in 24.708s

FAILED (errors=8, skipped=142)
test test_socket failed
test_socket failed

1 test failed:
    test_socket

Total duration: 25 sec
Tests result: FAILURE
msg328691 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2018-10-28 15:16
This is a longstanding minor issue as described in Issue23828. A twist here is that running with -Werror causes a test failure where normally there is just a warning.
msg328694 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2018-10-28 15:45
Thank you very much for the quick response, @Ned! :)
History
Date User Action Args
2022-04-11 14:59:07adminsetgithub: 79273
2021-07-31 18:24:52iritkatriellinkissue44797 superseder
2018-10-28 15:45:04pablogsalsetmessages: + msg328694
2018-10-28 15:16:34ned.deilysetstatus: open -> closed
superseder: test_socket testCmsgTruncLen0 gets "received malformed or improperly-truncated ancillary data" warning under OS X
messages: + msg328691

resolution: duplicate
stage: resolved
2018-10-28 15:08:18pablogsalcreate