Open Saviq opened 4 years ago
This is still present in the windows build of 1.1.0rc. I haven't been able to reproduce on guests using the 16.04 image, but I can get 18.04 guests to trigger this. This affects snapcraft, which will hang during the build process.
I was having a difficult time reproducing this bug, as my snapcraft builds would sometimes hang and sometimes not. I eventually figured out a way to reliably reproduce using this python script: https://gist.github.com/NickZ/58e87d6beaf6473a61da6856802154da
You can also just run multipass exec primary -- sudo -i env printenv HOME | Out-Null
in powershell a few times and it will eventually trigger
Hey @NickZ,
Yeah, I can reproduce as well :frowning_face: I'll just reopen this and continue to investigate. Thanks for reporting!
Unfortunately, still able to trigger this on the latest build here: https://github.com/canonical/multipass/pull/1375#issuecomment-593880436
While it may take a while longer, given enough iterations it will trigger.
Using my python script above.
PS C:\Users\nick\Documents> python .\trigger_1170.py
Using primary
testing output...
mesg: ttyname failed: Inappropriate ioctl for device
b'/root\n'
testing output...
mesg: ttyname failed: Inappropriate ioctl for device
b'/root\n'
testing output...
mesg: ttyname failed: Inappropriate ioctl for device
b'/root\n'
testing output...
mesg: ttyname failed: Inappropriate ioctl for device
b'/root\n'
testing output...
mesg: ttyname failed: Inappropriate ioctl for device
b'/root\n'
testing output...
mesg: ttyname failed
where it hangs.
Hey @NickZ,
Thanks for letting us know. I think the behavior is much better than before as I think your script is an extreme case and in normal operation, this should work. That said, we will continue to work on a better fix, but it won't block our upcoming release.
Same thing in reverse:
C:\Users\ricab>multipass exec -n rich-zorilla -- bash -c "echo some_file contents > some_file"
C:\Users\ricab>echo asdf | multipass exec -n rich-zorilla -- cat -E some_file - some_file
some_file contents$
[blinking cursor]
There's a couple of similar bugs (#667 and #577 at least), but this is specifically about:
This hangs indefinitely, and is a blocker for Snapcraft on Windows.