Skip to content
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

WSL2: Seek of directory entry by lseek does not work on v9fs #12416

Open
Zenexer opened this issue Dec 27, 2024 · 4 comments
Open

WSL2: Seek of directory entry by lseek does not work on v9fs #12416

Zenexer opened this issue Dec 27, 2024 · 4 comments

Comments

@Zenexer
Copy link

Zenexer commented Dec 27, 2024

Please reopen #5074. There's no indication that it's been resolved, meaning that PHP remains unusable in WSL2.

Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@zcobol
Copy link

zcobol commented Dec 27, 2024

@Zenexer the sorting seems to work as you expected on wsl-2.4.8:

zcobol@texas:~/test2$ wslinfo --wsl-version
2.4.8
zcobol@texas:~/test2$ ls xxx | wc -l
40
zcobol@texas:~/test2$ ./a.out
0000006.txt
0000021.txt
0000019.txt
0000035.txt
0000014.txt
0000027.txt
0000031.txt
0000009.txt
0000028.txt
0000007.txt
.
0000001.txt
0000030.txt
0000024.txt
0000017.txt
0000037.txt
0000011.txt
0000008.txt
0000010.txt
0000016.txt
..
0000005.txt
0000033.txt
0000029.txt
0000022.txt
0000012.txt
0000002.txt
0000034.txt
0000018.txt
0000026.txt
0000025.txt
0000020.txt
0000040.txt
0000032.txt
0000004.txt
0000013.txt
0000023.txt
0000038.txt
0000003.txt
0000015.txt
0000039.txt
0000036.txt
zcobol@texas:~/test2$ ./a.out | sort
.
..
0000001.txt
0000002.txt
0000003.txt
0000004.txt
0000005.txt
0000006.txt
0000007.txt
0000008.txt
0000009.txt
0000010.txt
0000011.txt
0000012.txt
0000013.txt
0000014.txt
0000015.txt
0000016.txt
0000017.txt
0000018.txt
0000019.txt
0000020.txt
0000021.txt
0000022.txt
0000023.txt
0000024.txt
0000025.txt
0000026.txt
0000027.txt
0000028.txt
0000029.txt
0000030.txt
0000031.txt
0000032.txt
0000033.txt
0000034.txt
0000035.txt
0000036.txt
0000037.txt
0000038.txt
0000039.txt
0000040.txt

@Zenexer
Copy link
Author

Zenexer commented Dec 30, 2024

@zcobol I've moved away from Windows in large part due to this issue, as it significantly impeded my development workflow. Personally, I'm not willing to bother re-evaluating it until someone from Microsoft responds in the original issue. I would think that if it were actually resolved for everyone, someone would've said so in the original issue, since it was quite the show-stopper.

@Zenexer
Copy link
Author

Zenexer commented Dec 30, 2024

@zcobol For the sake of science, I tried installing WSL2 on my gaming PC and can still repro it. Make sure you're actually testing within v9fs. The xxx directory needs to be in a v9fs-mounted filesystem such as /mnt/c.

paul@Paul-Desktop:/mnt/c/Users/paul/git/v9fs-bug$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.1 LTS
Release:        24.04
Codename:       noble
paul@Paul-Desktop:/mnt/c/Users/paul/git/v9fs-bug$ ./a | sort
0000031.txt
0000032.txt
0000033.txt
0000034.txt
0000035.txt
0000036.txt
0000037.txt
0000038.txt
0000039.txt
0000040.txt
paul@Paul-Desktop:/mnt/c/Users/paul/git/v9fs-bug$ wslinfo --wsl-version
2.3.26
PS C:\Users\paul> wsl --version
WSL version: 2.3.26.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.22631.4602
PS C:\Users\paul> wsl --update
Checking for updates.
The most recent version of Windows Subsystem for Linux is already installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants