{"action":"created","issue":{"url":"https://api.github.com/repos/git-for-windows/git/issues/580","labels_url":"https://api.github.com/repos/git-for-windows/git/issues/580/labels{/name}","comments_url":"https://api.github.com/repos/git-for-windows/git/issues/580/comments","events_url":"https://api.github.com/repos/git-for-windows/git/issues/580/events","html_url":"https://github.com/git-for-windows/git/issues/580","id":123491849,"number":580,"title":"Failed to fork child process: No such file or directory","user":{"login":"intared","id":7759964,"avatar_url":"https://avatars.githubusercontent.com/u/7759964?v=3","gravatar_id":"","url":"https://api.github.com/users/intared","html_url":"https://github.com/intared","followers_url":"https://api.github.com/users/intared/followers","following_url":"https://api.github.com/users/intared/following{/other_user}","gists_url":"https://api.github.com/users/intared/gists{/gist_id}","starred_url":"https://api.github.com/users/intared/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intared/subscriptions","organizations_url":"https://api.github.com/users/intared/orgs","repos_url":"https://api.github.com/users/intared/repos","events_url":"https://api.github.com/users/intared/events{/privacy}","received_events_url":"https://api.github.com/users/intared/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/git-for-windows/git/labels/unclear","name":"unclear","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-12-22T14:38:13Z","updated_at":"2016-01-18T11:51:34Z","closed_at":null,"body":"Hi,\r\n\r\nThis is related to #440.\r\n\r\nI have the same issue and the following notes\r\n* This is a default install with no options changed\r\n* Git version is 2.6.4\r\n* On a clean install of Windows 10 (with all available updates installed)\r\n* There is no AV/Firewall blocking install - literally it's Windows 10 then Git\r\n* There is no mintty.exe file in the bin folder (I think I should expect to see this?)\r\n* This is a 64-bit install, default install path is Program Files - not Program Files (x86)\r\n* git-bash.exe produces this error, as does using the right-click context menus\r\n* git-cmd.exe seems to work ok\r\n* git-gui.exe seems to work ok\r\n* bash.exe in bin seems to work ok\r\n\r\nIf you need any other information please let me know.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/git-for-windows/git/issues/comments/172507766","html_url":"https://github.com/git-for-windows/git/issues/580#issuecomment-172507766","issue_url":"https://api.github.com/repos/git-for-windows/git/issues/580","id":172507766,"user":{"login":"dscho","id":127790,"avatar_url":"https://avatars.githubusercontent.com/u/127790?v=3","gravatar_id":"","url":"https://api.github.com/users/dscho","html_url":"https://github.com/dscho","followers_url":"https://api.github.com/users/dscho/followers","following_url":"https://api.github.com/users/dscho/following{/other_user}","gists_url":"https://api.github.com/users/dscho/gists{/gist_id}","starred_url":"https://api.github.com/users/dscho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dscho/subscriptions","organizations_url":"https://api.github.com/users/dscho/orgs","repos_url":"https://api.github.com/users/dscho/repos","events_url":"https://api.github.com/users/dscho/events{/privacy}","received_events_url":"https://api.github.com/users/dscho/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T11:51:34Z","updated_at":"2016-01-18T11:51:34Z","body":"So I got the very same problem, also with `mintty.exe` (but not with `bash -l -i` in a cmd window). It appears only because I have tampered with `/etc/nsswitch.conf` (I removed the `db` item from the `passwd: ...` line).\r\n\r\nThe tell-tale is that running `bash -l -i` in a `cmd` window will show a prompt starting with `Unknown+User@...` and that calling `strace -o log.txt ./mintty` in `usr\\bin` will produce a `log.txt` containing lines similar to these:\r\n\r\n```\r\n...\r\n   77 7496631 [main] mintty 28236 pwdgrp::fetch_account_from_windows: line: <Unknown+User:*:4294967295:4294967295:U-Unknown\\User,S-1-99-0:/:/sbin/nologin>\r\n   39 7496670 [main] mintty 28236 pwdgrp::fetch_account_from_windows: line: <Unknown+Group:S-1-99-0:4294967295:>\r\n   34 7496704 [main] mintty 28236 set_posix_access: ACL-Size: 112\r\n 1048 7497752 [main] mintty 28236 set_posix_access: Created SD-Size: 156\r\n   47 7497799 [main] mintty 28236 tty::get_event: couldn't create cygtty.input.avail.0\r\n   22 7497821 [main] mintty 28236 __set_errno: void* tty::get_event(const char*, PSECURITY_ATTRIBUTES, BOOL):255 setting errno 2\r\n   21 7497842 [main] mintty 28236 seterrno_from_win_error: C:/git-sdk-32/usr/src/MSYS2-packages/msys2-runtime/src/msys2-runtime/winsup/cygwin/fhandler_tty.cc:1838 windows error 1307\r\n   22 7497864 [main] mintty 28236 geterrno_from_win_error: unknown windows error 1307, setting errno to 13\r\n   44 7497908 [main] mintty 28236 fhandler_pty_master::setup: pty0 open failed - failed to create cygtty.input.avail\r\n   77 7497985 [main] mintty 28236 __set_errno: fhandler_base* build_fh_pc(path_conv&):641 setting errno 6\r\n   30 7498015 [main] mintty 28236 build_fh_pc: fh 0x0, dev 00000000\r\n   33 7498048 [main] mintty 28236 open: -1 = open(/dev/ptmx, 0x8002), errno 6\r\n...\r\n```\r\n\r\nSeeing as this is caused by tampering with the `/etc/nsswitch.conf` file, I would consider this a user-made problem rather than a bug in Git for Windows."}}