Some tests failing due to shutdown(2) returning EINVAL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Breezy |
Triaged
|
High
|
Unassigned |
Bug Description
I am preparing a package of breezy 3.0.1 on NetBSD's pkgsrc. I am using NetBSD/amd64 8.1 and Python 3.7.4.
Several of the tests fail with the same or very similar stack traces:
```
...ary.
log: {{{
1281.701 creating repository in chroot-
1281.705 creating branch <breezy.
1281.712 creating branch reference in file://
1281.730 trying to create missing lock '/mnt/scratch/
1281.731 opening working tree '/mnt/scratch/
}}}
Traceback (most recent call last):
File "/home/
super(
File "/home/
self.
File "/home/
self.
File "/home/
self.
File "/home/
sock.
OSError: [Errno 22] Invalid argument
```
I'm not sure why this errno is returned from shutdown, but I suppose for the purposes of the test it can be ignored. (Unless you're passing the wrong file descriptor or something, or there is some bug in Python with the definition of SHUT_RDWR,)
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → High |
A short experiment with python to show that shutdown doesn't just always fails with EINVAL:
$ cat sock.py
import socket
s = socket. create_ connection( ('127.0. 0.1', 22)) socket. SHUT_RDWR) SHUT_RDWR)
s.shutdown(
print(socket.
s.shutdown(3) # deliberate error
$ python3.7 sock.py
2
Traceback (most recent call last):
File "sock.py", line 6, in <module>
s.shutdown(3)
OSError: [Errno 22] Invalid argument