WSL: Segmentation fault when doing... anything.
Environment
I would guess that this isnโt very wide-spread, or there would be more reports of it. I donโt know where to begin diagnosing the problem, though.
Maybe Iโm just doing something incredibly, stupidly wrong. ๐
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 WSL 1:
Linux version 4.4.0-19041-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #488-Microsoft Mon Sep 01 13:43:00 PST 2020
(Happens in both WSL 1 and 2.)
Steps to reproduce
- Follow steps to install WSL and update to v2: https://docs.microsoft.com/en-us/windows/wsl/install-win10
- Install Ubuntu (or Ubuntu 20.04) from Microsoft Store and launch it.
- Try to do stuff.
- Sometimes crashes or has crazy behavior while creating username and password.
- If I get past that, I get random seg faults randomly on any command.
Strace
https://gist.github.com/lucent-sea/7217ee93a92296f05d5ffacca5d36dcc
Expected behavior
Expect commands to work without seg faults. ๐
Actual behavior
Here are some examples:
jared@Jared-Work:/$ man find
Segmentation fault (core dumped)
jared@Jared-Work:/$ man find
man: command exited with status 2: (cd /usr/share/man && /usr/lib/man-db/zsoelim) | (cd /usr/share/man && /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd /usr/share/man && preconv -e UTF-8) | (cd /usr/share/man && tbl) | (cd /usr/share/man && nroff -mandoc -rLL=117n -rLT=117n -Tutf8)
jared@Jared-Work:/$ man find
man: command exited with status 127: (cd /usr/share/man && /usr/lib/man-db/zsoelim) | (cd /usr/share/man && /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd /usr/share/man && preconv -e UTF-8) | (cd /usr/share/man && tbl) | (cd /usr/share/man && nroff -mandoc -rLL=117n -rLT=117n -Tutf8)
jared@Jared-Work:/$ man find
jared@Jared-Work:/$
-----------------------------------------
jared@Jared-Work:~$ sudo apt-get install jq
Segmentation fault (core dumped)
jared@Jared-Work:~$ sudo apt-get install jq
Segmentation fault (core dumped)
jared@Jared-Work:~$ sudo apt-get install jq
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libjq1 libonig5
The following NEW packages will be installed:
jq libjq1 libonig5
0 upgraded, 3 newly installed, 0 to remove and 142 not upgraded.
Need to get 313 kB of archives.
After this operation, 1062 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 libonig5 amd64 6.9.4-1 [142 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 libjq1 amd64 1.6-1 [121 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/universe amd64 jq amd64 1.6-1 [50.2 kB]
Fetched 313 kB in 1s (213 kB/s)
Selecting previously unselected package libonig5:amd64.
(Reading database ... 31857 files and directories currently installed.)
Preparing to unpack .../libonig5_6.9.4-1_amd64.deb ...
Unpacking libonig5:amd64 (6.9.4-1) ...
Selecting previously unselected package libjq1:amd64.
Preparing to unpack .../libjq1_1.6-1_amd64.deb ...
Unpacking libjq1:amd64 (1.6-1) ...
Segmentation fault (core dumped)
jared@Jared-Work:~$ sudo apt-get install jq
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
-----------------------------------------
jared@Jared-Work:/$ man find
Segmentation fault (core dumped)
jared@Jared-Work:/$ man find
man: command exited with status 139: (cd /usr/share/man && /usr/lib/man-db/zsoelim) | (cd /usr/share/man && /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd /usr/share/man && preconv -e UTF-8) | (cd /usr/share/man && tbl) | (cd /usr/share/man && nroff -mandoc -rLL=117n -rLT=117n -Tutf8)
jared@Jared-Work:/$ man find
man: command exited with status 139: (cd /usr/share/man && /usr/lib/man-db/zsoelim) | (cd /usr/share/man && /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd /usr/share/man && preconv -e UTF-8) | (cd /usr/share/man && tbl) | (cd /usr/share/man && nroff -mandoc -rLL=117n -rLT=117n -Tutf8)
jared@Jared-Work:/$ man find
man: command exited with status 127: (cd /usr/share/man && /usr/lib/man-db/zsoelim) | (cd /usr/share/man && /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd /usr/share/man && preconv -e UTF-8) | (cd /usr/share/man && tbl) | (cd /usr/share/man && nroff -mandoc -rLL=117n -rLT=117n -Tutf8)
jared@Jared-Work:/$ man find
jared@Jared-Work:/$ man find
jared@Jared-Work:/$
-----------------------------------------
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: jared
Enter new UNIX username: jared
New password:
Retype new password:
passwd: password updated successfully
Error: 0x80070057 The parameter is incorrect.
Press any key to continue...
(Crashed after this.)
-----------------------------------------
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: jared
configuration error - unknown item 'All' (notify administrator)
configuration error - unknown item 'described' (notify administrator)
configuration error - unknown item 'R' (notify administrator)
configuration error - unknown item 'by' (notify administrator)
configuration error - unknown item 'bian,' (notify administrator)
New password:
Retype new password:
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
free(): invalid next size (fast)
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Thu Dec 10 14:26:03 PST 2020
Error processing line 1 of /usr/lib/python3/dist-packages/zope.interface-4.7.1-nspkg.pth:
Traceback (most recent call last):
File "/usr/lib/python3.8/site.py", line 175, in addpackage
exec(line)
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'importlib.util'
Remainder of file ignored
run-parts: /etc/update-motd.d/50-landscape-sysinfo exited with return code 2
1 update can be installed immediately.
0 of these updates are security updates.
To see these additional updates run: apt list --upgradable
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
This message is shown once once a day. To disable it please create the
/x/.hushlogin file.
touch: cannot touch '/'$'\273\022''x'$'\207\177''/.motd_shown': No such file or directory
jared@Jared-Work:/$
-----------------------------------------
jared@Jared-Work:/$ sudo apt-get update
[sudo] password for jared:
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
Sub-process apt-key exited unexpectedly
Get:4 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [376 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [682 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [87.2 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [5584 B]
Get:9 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [69.9 kB]
Get:10 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [11.4 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [521 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [68.6 kB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [9364 B]
Get:14 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [1256 B]
0% [14 Packages store 0 B] [6 Packages 489 kB/682 kB 72%] [Connecting to security.ubuntu.com (91.189.91.39)]E: SECURITY: Message contains control characters, rejecting.
E: SECURITY: Message contains control characters, rejecting.
E: SECURITY: Message contains control characters, rejecting.
E: SECURITY: Message contains control characters, rejecting.
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu focal InRelease: Sub-process apt-key exited unexpectedly
E: Method gave invalid 400 URI Failure message: SECURITY: Message contains control characters, rejecting.
E: Method store has died unexpectedly!
E: Sub-process store received signal 6.
jared@Jared-Work:/$
System Info
System Information report written at: 12/10/20 14:26:33 System Name: JARED-WORK [System Summary]
Item Value OS Name Microsoft Windows 10 Pro Version 10.0.19042 Build 19042 Other OS Description Not Available OS Manufacturer Microsoft Corporation System Name JARED-WORK System Manufacturer ASUSTeK COMPUTER INC. System Model TUF Gaming FA706IU_TUF706IU System Type x64-based PC System SKU Processor AMD Ryzen 7 4800H with Radeon Graphics, 2900 Mhz, 8 Core(s), 16 Logical Processor(s) BIOS Version/Date American Megatrends Inc. FA706IU.309, 7/2/2020 SMBIOS Version 3.2 Embedded Controller Version 3.09 BIOS Mode UEFI BaseBoard Manufacturer ASUSTeK COMPUTER INC. BaseBoard Product FA706IU BaseBoard Version 1.0 Platform Role Mobile Secure Boot State On PCR7 Configuration Binding Possible Windows Directory C:\Windows System Directory C:\Windows\system32 Boot Device \Device\HarddiskVolume1 Locale United States Hardware Abstraction Layer Version = โ10.0.19041.488โ User Name JARED-WORK\jared Time Zone Pacific Standard Time Installed Physical Memory (RAM) 64.0 GB Total Physical Memory 63.4 GB Available Physical Memory 55.6 GB Total Virtual Memory 72.9 GB Available Virtual Memory 63.7 GB Page File Space 9.50 GB Page File C:\pagefile.sys Kernel DMA Protection Off
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 21
WSL 1: https://aka.ms/AAapvfs
WSL 2: https://aka.ms/AAapp08
Here you go: https://aka.ms/AAamuxe