-
Notifications
You must be signed in to change notification settings - Fork 796
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
Can't open file descriptors in /proc/[###]/fd #266
Comments
This was discussed in passing by #91 |
Here's a gist of a .c file which, if loaded into a Linux (or Windows-Bash) binary, roughly emulates the desired behavior of these file descriptors. It's good enough to get bash process substitution working, anyway. It's trying to make |
Looks like we're missing the below symlinks in the /dev directory. I just filed an internal bug and will get these added to our dev branch today.
Thanks for reporting this! |
Thanks for the reply, and the quick action! Those symlinks will be very helpful. Once you have the symlinks, is there any chance you could run the following one-line bash command real quick, as a test case?:
It should print "hello world" to the terminal, and write a file "tmp.txt" that contains the same string. Works fine on Ubuntu Linux. Doesn't work on my Windows Bash system, even if I modify bash to use My workaround (above; link to gist) fixes the issue by aliasing If this is already fixed on your end, great! I await the next build :-) If not, just making sure you know what I'm seeing. |
Something interesting is going on here that I'll need to debug further. I'm getting an error about |
Thanks for looking at this! I'll be curious to hear what you find. |
@aseering - Dug into this a bit more and we're not correctly handling opening pipes by the procfs symlinks correctly (for example open("/dev/fd/1") or open("/proc/self/fd/1"). I've filed a bug internally to track this and we have a good idea of how to fix it. |
This was fixed in our development branch recently and the fix will be making its way to the Windows Insider fast ring. |
Thanks! |
Appears to still be an issue in build 14352. |
who says this has been fixed @benhillis I am trying to install rvm and I still have this issue on 14352
|
@AbhimanyuAryan he didn't say it was fixed on 14352, but on their internal dev branch. It's probably not yet released. |
@mcornella my bad so when are we expecting the update? I have un-installed Linux to get Windows and it's still not here. Microsoft said it quite clearly "Ubuntu on Windows" 😥😕 |
@AbhimanyuAryan - Sorry for the confusion, the fix will be an insider release soon. We don't have any control over when Insider builds are released so I apologize that I can't give a more firm timeline. |
@benhillis you should explain that to Microsoft Insider team that it's "WindowsOnBash" because of which people are making switch not Windows. So they can set the priorities right😞 Btw you guys are doing great work :) |
Insider build 14361 that was just released has the fix for this, and I doubled checked the one line repro above. |
Old and closed issue, I know... But we are experiencing the same issue over at https://github.com/ish-app/ish. |
@benhillis could share some details on how did you solve this?
|
I'm trying to get bash's process substitution working. It's a few steps shy of working, but, one big one:
The file descriptors under /proc/self/fd aren't openable. They are listed as writeable, but the "open()" libc call is returning -1 when I try to open them.
The text was updated successfully, but these errors were encountered: