[issue35092] test_socket fails in MacOS High Sierra when running with -Werror

2018-10-28 Thread Pablo Galindo Salgado


Pablo Galindo Salgado  added the comment:

Thank you very much for the quick response, @Ned! :)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35092] test_socket fails in MacOS High Sierra when running with -Werror

2018-10-28 Thread Ned Deily


Ned Deily  added the comment:

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.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> test_socket testCmsgTruncLen0 gets "received malformed or 
improperly-truncated ancillary data" warning under OS X

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35092] test_socket fails in MacOS High Sierra when running with -Werror

2018-10-28 Thread Pablo Galindo Salgado


New submission from Pablo Galindo Salgado :



==
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

--
components: macOS
messages: 328690
nosy: ned.deily, pablogsal, ronaldoussoren
priority: normal
severity: normal
status: open
title: test_socket fails in MacOS High Sierra when running with -Werror
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com