-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
"EFAULT: bad address in system call argument, copyfile #7152
Comments
Having the same issue. Have you found a solution for this? Yarn version: 1.15.2 |
Same here on a CI environment:
|
My temporary solution is just to downgrade node to version 8 (8.16.0). |
I'm experiencing this as well, on Node v11.10.1 & Node v12.2.0 with yarn 1.12.3 inside of a Homestead (Linux Ubuntu 16.04)
I can manually copy this file just fine... which is odd. |
I had the same problem, solved it by clearing any 'space character' " " from the paths , and you have a space character in the target path "New volume", then clean yarn cache again, and it should work |
I also ran into the same problem. I did not have 'space characters' (" ") in a path. But my project was located in other hard drive volume. My temporary solution was moving project repository from "/media/user/hardDriveVolume" to /home directory. Now it works well. So in my case this issue happens with a repository located in other hard drive volume (in linux "/media" directory). Also maybe in my case this issue is connected with npm/cmd-shim#21. @matt212 , can I kindly ask you: Did you fix this issue and does yarn work with "/media" directory path in your case? Thank you in advance! |
Experiencing this in a Virtualbox/Vagrant environment. Ubuntu 16.04 x64, yarn 1.17.3. Node 10, 11, and 12 all attempted. No spaces in any of the paths, so that "fix" is not an option. If I manually copy the file it's struggling with, it just errors on the next one. Fix all the files from one package, and it will error on some other package. It seems to almost exclusively be non-source code text files, eg. LICENSE, CHANGELOG.md, README.md, etc. I noticed someone else's error further up was for a LICENSE file, too. |
A quick and dirty hack I've used to get this working: first, locate the var ficloneFlag = (_fs2 || _load_fs2()).constants.COPYFILE_FICLONE || 0; and change it to var ficloneFlag = 0; I managed to trace this to the exact line of V8 which fails, wrote a small C program which exhibits the same behavior, and the issue is indeed copying files between different hard drives or partitions. This should be handled properly by V8, so the bug is actually on their side. Also be aware that this hack only works until you decide to update yarn. |
Hi, |
Hi, |
Any movement on this? |
Hi, as I wrote above, the issue for me was fixed by the libuv update. But I don't know if that's the case for the OP here. Cheers. |
HI,
i am only installing "express": "^4.16.4", but still i am getting below error
i tried running command
yarn cache clean
but error still persists
yarn-error.log
The text was updated successfully, but these errors were encountered: