question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Segmentation fault in WSL

See original GitHub issue

while 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
q3w3e3commented, Nov 8, 2021

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.

0reactions
mcueecommented, Feb 2, 2022

Ref: WSL does not work with libusb, at least not yet. https://github.com/microsoft/WSL/issues/2195

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found