-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New state of 'nil' is invalid, when sending byte 0x90 followed by any other to stdio #695
Comments
@averri how would we fix this? |
Hello everyone As I have wrote here : jhipster/generator-jhipster#5950 Thanks. |
Ran into the same issue on Windows 7 with Docker Quickstart Terminal, docker version 1.12.2. Thanks @averri for the super-easy repro step. Off-topic: In my case it was from some PHP code in symfony/flex (which I'll open a separate issue for) that attempts to print out a message about adding a star on github, and uses the symbol:
|
…cker (DHager) This PR was merged into the 1.0-dev branch. Discussion ---------- Workaround: Avoid emojis which cause terminal failures in Docker Sending certain unicode values to STDOUT may cause Docker terminals to abruptly quit and disconnect for some users, as noted in docker-archive/toolbox#695 and moby/moby#22345. In this particular case the issue is triggered by the emoji star (U+2B50) which was added in #262 / 0a45ec9 . While this is **not a bug in Flex**, I still recommend skipping the cosmetic emojis, since their appeal is probably outweighed by the impact and users and the potential that some users will incorrectly blame Flex when `composer update` disconnects their terminal halfway through the "thanks reminder." Commits ------- bc74172 Workaround: Avoid unicode characters in output which cause terminals to quit in some Docker installations.
This PR was merged into the 1.0-dev branch. Discussion ---------- Replace ⭐ by ★ The ⭐ emoji contains the `\x90` byte that breaks Docker toolbox on Windows. Let's use ★ instead. See docker-archive/toolbox#695 Commits ------- 9b894cd Replace ⭐ by ★
This PR was squashed before being merged into the 1.0-dev branch (closes #283). Discussion ---------- ★ Same as symfony/thanks#34 Reverts #280 and replaces the breaking character by another one: The ⭐ emoji contains the \x90 byte that breaks Docker toolbox on Windows (see docker-archive/toolbox#695). Let's use ★ instead. Commits ------- 558a091 ★
This is affecting Sourcegraph as well. We print a logo in the console on startup, but docker toolbox is crashing. https://github.com/sourcegraph/sourcegraph/issues/398 |
I was able to reproduce with non latin chars like this russian word If I workaround this by dropping My 2 cents |
This is affecting Docker build of R packages, as |
For those looking for the Wisdom of the Ancients here: In some cases, a workaround can be to route the output into the void and back, as in
so that some output appears at the console. Doing a
swallows the output completely, preventing the shutdown at least. With
you might also be able to keep |
Consider the following commands:
Running any of that commands on Docker toolbox on Windows 7 (MINGW terminal) will print:
I have discovered that the byte
0x90
followed by any other will cause the problem.If running just
printf '\x90\x00'
inside the container, the shell will exit and the same message will be printed. The problem does not occur when running on Docker on Linux.The char
┐
correspond to the UTF-80xE2 0x94 0x90
, so in the commandecho ┐
, the complete sequence is0xE2 0x94 0x90 0x0A
, again, the0x90
followed by another byte.The text was updated successfully, but these errors were encountered: