vscode: Code-insiders crashes on launch in Ubuntu 20.04 - after today's upgrade

VS Code Version: 1.65.0-insider d09aeab62c1f93acf4a89b93e9a8a82419d6249a x64

OS Version: Ubuntu 20.04

Steps to Reproduce:

Launch vscode ( I used code-insiders -n --disable-extensions --sync=off --verbose) wait 2-3 seconds…

Does this issue occur when all extensions are disabled?: Yes

Also, here’s the log from the console:

[26351:0209/233257.302083:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.sql, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.302111:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.swift, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.302840:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.theme-abyss, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.302876:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.theme-defaults, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.302910:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.theme-kimbie-dark, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.303313:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.theme-monokai, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.303352:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.theme-monokai-dimmed, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.303386:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.theme-quietlight, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.303424:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.theme-red, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.304335:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.vscode-theme-seti, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.304371:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.theme-solarized-dark, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.304740:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.theme-solarized-light, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.304770:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.theme-tomorrow-night-blue, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.304805:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.typescript, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.304830:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.typescript-language-features, extension kinds: [workspace], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.305429:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.vb, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.305466:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.xml, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.306097:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for vscode.yaml, extension kinds: [ui, workspace, web], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.306128:INFO:CONSOLE(605)] "%cTRACE color: #888 pickRunningLocation for ms-vscode.node-debug2, extension kinds: [workspace], isInstalledLocally: true, isInstalledRemotely: false, preference: None => LocalProcess", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[main 2022-02-09T18:02:57.372Z] menubarService#updateMenubar 1
[main 2022-02-09T18:02:57.474Z] [Disk FileSystemProvider]: request to acquire resource lock (/home/paul/.config/Code - Insiders/storage.json)
[main 2022-02-09T18:02:57.474Z] [Disk FileSystemProvider]: new resource lock created (/home/paul/.config/Code - Insiders/storage.json)
[main 2022-02-09T18:02:57.485Z] [Disk FileSystemProvider]: resource lock disposed (/home/paul/.config/Code - Insiders/storage.json)
[26351:0209/233257.488335:INFO:CONSOLE(605)] "%cTRACE color: #888 lifecycle: phase changed (value: 3)", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[main 2022-02-09T18:02:57.517Z] RequestService#request https://update.code.visualstudio.com/api/update/linux-x64/insider/d09aeab62c1f93acf4a89b93e9a8a82419d6249a
[main 2022-02-09T18:02:57.517Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[main 2022-02-09T18:02:57.522Z] SharedProcess: on vscode:createSharedProcessMessageChannel
[main 2022-02-09T18:02:57.522Z] IPC Object URL: Registered new channel vscode:123be6af-fcbe-4e73-9627-6aa7ef3cce75.
[main 2022-02-09T18:02:57.649Z] menubarService#updateMenubar 1
[26351:0209/233257.651283:INFO:CONSOLE(605)] "%cDEBUG background: #eee; color: #888 [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///home/paul/.config/Code%20-%20Insiders/logs/20220209T233255/userDataSync.log", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[main 2022-02-09T18:02:57.651Z] resolveShellEnv(): skipped (VSCODE_CLI is set)
[26351:0209/233257.651621:INFO:CONSOLE(605)] "%cDEBUG background: #eee; color: #888 [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///home/paul/.config/Code%20-%20Insiders/logs/20220209T233255/telemetry.log", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.651830:INFO:CONSOLE(605)] "%cDEBUG background: #eee; color: #888 [Registering Log Channel] File does not exist. Waiting for 1s to retry. file:///home/paul/.config/Code%20-%20Insiders/logs/20220209T233255/sharedprocess.log", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.739267:INFO:CONSOLE(605)] "%cTRACE color: #888 [DEBOUNCE: Links] for untitled:Untitled-1 is 1000ms", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.760089:INFO:CONSOLE(605)] "%cTRACE color: #888 Settings Sync: Updated accounts for microsoft", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.760176:INFO:CONSOLE(605)] "%cTRACE color: #888 Settings Sync: Getting accounts for github", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.763881:INFO:CONSOLE(605)] "%cTRACE color: #888 CommandService#executeCommand setContext", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.763939:INFO:CONSOLE(605)] "%cTRACE color: #888 CommandService#executeCommand setContext", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.768494:INFO:CONSOLE(605)] "%cTRACE color: #888 CommandService#executeCommand setContext", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.768858:INFO:CONSOLE(605)] "%cTRACE color: #888 CommandService#executeCommand setContext", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
[26351:0209/233257.788470:INFO:CONSOLE(605)] "%cTRACE color: #888 [DEBOUNCE: Links] for untitled:Untitled-1 is 1000ms", source: vscode-file://vscode-app/usr/share/code-insiders/resources/app/out/vs/workbench/workbench.desktop.main.js (605)
/usr/share/code-insiders/code-insiders -n --disable-extensions --sync=off --verbose --enable-crashpad: symbol lookup error: /usr/share/code-insiders/resources/app/node_modules.asar.unpacked/vscode-encrypt/build/Release/vscode-encrypt-native.node: undefined symbol: SHA256_Init

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (1 by maintainers)

Most upvoted comments

For the SHA256_Init crash, the problem is the vscode-encrypt-native ELF is not linked against lcrypto so the symbols cannot be resolved properly.

vfazio2 /home/vfazio # readelf -d /usr/share/code-insiders/resources/app/node_modules.asar.unpacked/vscode-encrypt/build/Release/vscode-encrypt-native.node | grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]

The quick fix for now is to just add libcrypto as a needed library.

vfazio2 /home/vfazio # find /usr/lib/ -type f -name "libcrypto.so.*"
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1

vfazio2 /home/vfazio # patchelf --add-needed libcrypto.so.1.1 /usr/share/code-insiders/resources/app/node_modules.asar.unpacked/vscode-encrypt/build/Release/vscode-encrypt-native.node