-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Labels
duplicateIndicates similar issues or pull requestsIndicates similar issues or pull requests
Description
We hit a SIGABRT of libuv when running cp to copy a lots of file in dir, the carsh log like:
[2026/2/5 09:25:20]Assertion failed: req->result != -1, file src/win/fs.c, line 2118
[2026/2/5 09:25:20]
[2026/2/5 09:25:20][2128] signal (22): SIGABRT
[2026/2/5 09:25:20]in expression starting at d:\fileshare\build.jl:31
[2026/2/5 09:25:20]crt_sig_handler at C:/Users/vagrant/builds/julialang/julia/src\signals-win.c:95
[2026/2/5 09:25:20]raise at C:\Windows\System32\msvcrt.dll (unknown line)
[2026/2/5 09:25:20]abort at C:\Windows\System32\msvcrt.dll (unknown line)
[2026/2/5 09:25:20]assert at C:\Windows\System32\msvcrt.dll (unknown line)
[2026/2/5 09:25:20]fs__sendfile at /workspace/srcdir/libuv\src/win\fs.c:2118
[2026/2/5 09:25:20]uv__fs_work at /workspace/srcdir/libuv\src/win\fs.c:3209
[2026/2/5 09:25:20]uv_fs_sendfile at /workspace/srcdir/libuv\src/win\fs.c:3739
[2026/2/5 09:25:20]jl_fs_sendfile at C:/Users/vagrant/builds/julialang/julia/src\jl_uv.c:364
[2026/2/5 09:25:20]sendfile at .\filesystem.jl:151
[2026/2/5 09:25:20]sendfile at .\file.jl:998
[2026/2/5 09:25:20]#cptree#12 at .\file.jl:351
[2026/2/5 09:25:20]cptree at .\file.jl:338
[2026/2/5 09:25:20]#cptree#12 at .\file.jl:348
[2026/2/5 09:25:20]cptree at .\file.jl:338
[2026/2/5 09:25:20]#cptree#12 at .\file.jl:348
[2026/2/5 09:25:20]cptree at .\file.jl:338
[2026/2/5 09:25:20]#cptree#12 at .\file.jl:348
[2026/2/5 09:25:20]cptree at .\file.jl:338
[2026/2/5 09:25:20]#cptree#12 at .\file.jl:348
[2026/2/5 09:25:20]cptree at .\file.jl:338
[2026/2/5 09:25:20]#cptree#12 at .\file.jl:348
[2026/2/5 09:25:20]cptree at .\file.jl:338 [inlined]
[2026/2/5 09:25:20]#cp#14 at .\file.jl:382
[2026/2/5 09:25:20]cp at .\file.jl:376 [inlined]
....
I dig into the source code of libuv and found uv could abort when ReadFile or WriteFile failed.
It is always a unrecoverable scenario? could I just report a error with GetLastError?
System: Windows10
Julia version: 1.9.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
duplicateIndicates similar issues or pull requestsIndicates similar issues or pull requests