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

Snap Package missing GLIBCXX_3.4.22 (bundled libstdc++ version too old) #155094

Closed
PixlRainbow opened this issue Jul 13, 2022 · 9 comments · Fixed by #127320
Closed

Snap Package missing GLIBCXX_3.4.22 (bundled libstdc++ version too old) #155094

PixlRainbow opened this issue Jul 13, 2022 · 9 comments · Fixed by #127320
Assignees
Labels
engineering VS Code - Build / issue tracking / etc. insiders-released Patch has been released in VS Code Insiders linux Issues with VS Code on Linux snap Issues related to the snap package
Milestone

Comments

@PixlRainbow
Copy link

Issue Type: Bug

Python Jupyter extension requires GLIBCXX_3.4.22 in order to load dependency ZMQ. The Jupyter extension works fine without ZMQ for most use cases, but when environment variables are needed for certain Jupyter functionality, ZMQ is required (the alternative is restarting vscode). See microsoft/vscode-jupyter#9774 (comment)

However, the copy of libstdc++ inside of a snap package cannot be updated except via a snap package update.

Related #147440 #147166

VS Code version: Code 1.69.1 (b06ae3b, 2022-07-12T08:28:29.328Z)
OS version: Linux x64 5.15.0-40-generic snap
Restricted Mode: No

@rchiodo
Copy link
Contributor

rchiodo commented Jul 14, 2022

@meganrogge does vs code update snap packages? Not sure we'd want to ship a new GLIBCXX in the VS code snap package.

@PixlRainbow
Copy link
Author

I had thought snapcrafters updated snap packages, but when I checked, the snapcrafters vscode repo was archived and the current version of the snap package (1.69.1) indicates vscode official as the point of contact.

@meganrogge
Copy link
Contributor

I believe @joaomoreno would know that

@rchiodo
Copy link
Contributor

rchiodo commented Jul 14, 2022

Sorry I'm not really sure how snap packages work.

Does the vscode process run isolated from everything else? As in all of the packages it would use are installed next to it? Or does it use packages already installed on the system?

I would expect the later, and if that's so, it would be up to the user to install a newer version of GLIBCXX

@rchiodo
Copy link
Contributor

rchiodo commented Jul 14, 2022

Oh looks like it's the former:
https://askubuntu.com/questions/787149/how-do-snap-packages-handle-shared-dependencies

So the libstdc++ has to be in the snap package itself.

@PixlRainbow
Copy link
Author

The debug log seems to indicate it is loading libstdc++.so.6 out of a sandboxed directory. (/snap/core/current/lib/x86_64-linux-gnu/libstdc++.so.6)

@rchiodo
Copy link
Contributor

rchiodo commented Jul 14, 2022

That sounds like the snap core package?
https://snapcraft.io/core

Perhaps the core package on your OS doesn't support the needed libstdc++?

@rchiodo
Copy link
Contributor

rchiodo commented Jul 14, 2022

Oh no it's VS code's core package that would have to be updated. Similar problem here:
https://forum.snapcraft.io/t/vscode-glibc-6-needs-update/21088/3

@deepak1556
Copy link
Collaborator

Our current snap core is based on Ubuntu16.04 hence the GLIBCXX support is quite old, we have attempted to update the core version #127320 but there are issues described in that PR which has put a pause on it. I will have to revisit the update at some in the near future but don't have any concrete timeline yet.

Python ZMQ can either statically link with libstdc++ or build the module on an older toolchain ex: centos7-devtoolset8 to lower the GLIBCXX requirement as an interim fix.

@deepak1556 deepak1556 added linux Issues with VS Code on Linux engineering VS Code - Build / issue tracking / etc. snap Issues related to the snap package labels Jul 14, 2022
@joaomoreno joaomoreno assigned joaomoreno and unassigned deepak1556 Dec 12, 2022
@vscodenpa vscodenpa added the unreleased Patch has not yet been released in VS Code Insiders label Mar 9, 2023
@vscodenpa vscodenpa added this to the March 2023 milestone Mar 9, 2023
@vscodenpa vscodenpa added insiders-released Patch has been released in VS Code Insiders and removed unreleased Patch has not yet been released in VS Code Insiders labels Mar 9, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Apr 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
engineering VS Code - Build / issue tracking / etc. insiders-released Patch has been released in VS Code Insiders linux Issues with VS Code on Linux snap Issues related to the snap package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants