-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Bug in readdlm with WSL1 causes doctest failure #40352
Comments
Sounds like a WSL1 bug, in that case, which you can try reporting to Microsoft, but I think it is deprecated. It looks like the code calls
|
Thanks; your explanation was very helpful towards allowing me to better understand the issue at hand. Proposal
Alternative ProposalNothing changes in MotivationI was under the impression that the problem at hand was that WSL1 is an edge case where Julia is told that it is running on Linux (thus In order to determine if this is more of an WSL1 issue or a Julia issue, I decided to test some other "similar" cases:
In none of these three test cases did the bug occur, which makes WSL1 more of an edge case than a general case. I think what makes WSL1 weird is that, unlike these other three cases, WSL1 intentionally chooses to make the Windows side of the Filesystem not Unix-like. Microsoft seems to recommend WSL2 over WSL1 except in cases where performance for accessing files on the Windows side of the Filesystem is a priority (https://docs.microsoft.com/en-us/windows/wsl/compare-versions#comparing-features). However, WSL1 doesn't appear to be the only edge case. Your note regarding These two edge cases share in common (if I am correct with my previous guess) the situation where the OS is Unix-like but the Filesystem is not. Other commentI have particularly noticed the comment in the documentation for
However, I'm not sure if this note is out of date or not. |
…liaLang#40415) Increased resilience to edge cases where OS is reported Unix-like but Filesystem is abnormal Fixes JuliaLang#8891 Fixes JuliaLang#40352
…liaLang#40415) Increased resilience to edge cases where OS is reported Unix-like but Filesystem is abnormal Fixes JuliaLang#8891 Fixes JuliaLang#40352
…liaLang#40415) Increased resilience to edge cases where OS is reported Unix-like but Filesystem is abnormal Fixes JuliaLang#8891 Fixes JuliaLang#40352
Hi; I'm not sure how supported WSL1 is supposed to be in theory.
I noticed an interesting bug that appears in both today's master (commit 58fba2b) and v1.5.3 on WSL1 but does not seem to appear on v1.5.3 on either Windows proper or Linux proper. I am currently unable to use WSL2 for certain reasons, so I am unsure if this bug also appears in WSL2.
EDIT: I forgot that, for certain reasons, I was working on the Windows filesystem instead of the WSL filesystem. I've just did some more testing and it doesn't appear that this bug appears in WSL1 when using the WSL filesystem instead of the Windows filesystem.
I first noticed that this doctest fails:
julia/stdlib/DelimitedFiles/src/DelimitedFiles.jl
Line 120 in 58fba2b
Specifically, the last call to
readdlm
is supposed to returnBut instead we get
MWE
I tried reproducing this outside of the doctest, and I found that the resulting file is indeed bugged. Here's an MWE for reproducing the bug.
The content of
delim_file.txt
is:Here's an MWE for getting non-bug behavior:
The content of
delim_file.txt
is:The sole difference is achieved via omitting the call to
readdlm
. It seems to me thatreaddlm
's access todelim_file.txt
is never properly released.The MWE, to my knowledge, only works on WSL1 (for certain reasons, I cannot test on WSL2 at the moment).
I have tried to reproduce the bug using plain
read
andwrite
and have not yet succeeded in this endeavour.The text was updated successfully, but these errors were encountered: