Segmentation fault in WSL
See original GitHub issuewhile im aware that WSL has limited (or a complete lack of?) usb support I have been attempting to use pyVISA for a non USB device but am running into a segfault when pyUSB is run on WSL see this issue
Versions:
win 10 Ubuntu 20.04.3 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64) Python 3.8.10 pyusb==1.0.2
Steps to reproduce:
see above linked issue for in situ
or for minimum segfault that is likely caused by the same issue:
1: enter python shell
2: >>> import usb.core
3: >>> dev = usb.core.find()
4: segfault!
again, I understand that WSL doesn’t have proper/complete usb support but a segfault isn’t fantastic behavior when other packages that may otherwise work rely on pyUSB
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Segmentation fault when doing... anything. #6325 - GitHub
Windows build number: Microsoft Windows [Version 10.0.19042.685] Your Distribution version: Ubuntu 20.04 Whether the issue is on WSL 2 and/or ...
Read more >ld -v leads to segmentation fault in WSL2 - Stack Overflow
I am getting segmentation faults while compiling a project with gcc on a WSL2 Ubuntu 20.04 installation. I narrowed the problem down to...
Read more >Newest 'segmentation-fault' Questions - Ask Ubuntu
Problems related to an attempt made to access memory that the CPU cannot physically address. Also knows as segfault or bus error.
Read more >emulator aosp wsl2 segmentation fault on launch - Super User
Short answer: Try downgrading WSL and or the kernel. If that works, please file a new issue on the WSL2 Github repo.
Read more >Segmentation fault when running test examples on Ubuntu ...
I'm using Windows 10 with Ubuntu-20.04 WSL2 subsystem. The installation went smoothly, but after building the examples and define the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
afaik libusb will not work in wsl, thanks! having no segfault post PR 279 should let me fix the issues i was running into in pyvisa.
Ref: WSL does not work with libusb, at least not yet. https://github.com/microsoft/WSL/issues/2195