-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests hang with Python 3.11 #6
Comments
I tried Python 3.11 on Ubuntu 22.04, and aside from a deprecation warning, the tests succeed as expected. This leads me to believe this is an Arch specific issue. I am not an Arch user. What is the easiest way for me to reproduce this issue? |
Probably inside a docker Arch image? I have tried to reproduce this hang successfully with Debian sid, but not with Ubuntu focal. |
BTW, Ubuntu 22.04 comes with Python 3.10 actually. I could reproduce your deprecation warning too with Python 3.10 on Ubuntu 22.04. I have also tried to install Python 3.11 on Ubuntu 22.04 with ppa:deadsnakes/ppa and run the tests with the install python3.11 command, which reproduces the hang again. |
I have installed Python 3.11 from
|
It seems to me that exceptions were not handled properly here. Could you try to add "raise NotImplementedError" right after |
You may be right that an exception is occurring somewhere, but so far I am failing to see what you are seeing. Even raising NotImplementedError causes the test to fail and terminate right away, not hang. I will consider what might be going wrong for you though. |
Not sure if it's related, but Python 3.11.6 fixed a problem that reads similar to me: python/cpython#110894 Unfortunately, I could still reproduce the hang even with the same |
This is a documented issue:
Simply dropping the
|
I seriously doubt the issue is the child filling the stdout pipe.
|
It seems that it's not filling the stdout pipe, but waiting for it to close. The |
Okay - thanks for taking a look. |
In this It waits for pipes to close, but the still alive |
Upon updating of Arch Linux's Python from 3.10 to 3.11, I found that mtrpacket's tests hang:
I have tried to add some debug outputs and located that the hang is near:
I have tried to replace
ip6-localhost
with justlocalhost
and it passes here, but hangs again afterawait self.send_probes(mtr, in_queue, out_queue)
.Any ideas how to proceed here?
The text was updated successfully, but these errors were encountered: