Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Fix segfault when running snap on Ubuntu 18.04 by moving to core18#38

Merged
TravisEz13 merged 3 commits intoPowerShell:masterfrom
TravisEz13:Move_to_core18
Oct 22, 2019
Merged

Fix segfault when running snap on Ubuntu 18.04 by moving to core18#38
TravisEz13 merged 3 commits intoPowerShell:masterfrom
TravisEz13:Move_to_core18

Conversation

@TravisEz13
Copy link
Member

No description provided.

@TravisEz13 TravisEz13 force-pushed the Move_to_core18 branch 11 times, most recently from 2581121 to 67ef623 Compare October 21, 2019 23:25
@@ -2,18 +2,8 @@ name: powershell-preview

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix to resolve the seg fault. Other changes are to support building these changes

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be able to give some more information about what was causing the segfault previously and how/where these changes prevent it now?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what the fix is? Is it including the additional libraries?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To document:

  • We were originally building snaps with older dependencies, but dotnet inside the snap would resolve the newest it could find on the machine, breaking snaps on systems with newer inbox versions of things like libicu
  • .NET don't see this as their problem since (1) their main scenario is being the only app on the box and (2) even if they're not, they're probably expecting to be a non-classic snap
  • To fix this, we now build with newer (newest?) versions of those dependencies, which is something that the snap model is essentially intended for
  • However, to make this fix happen, @TravisEz13 had to do work to build the images to assemble the snap with the new dependencies, so it was more work than a simple config addition

I do think we should take this back to .NET -- it strikes me as a fairly serious issue if we fall under their support aegis, since it breaks the only reason to have a snap

@TravisEz13 TravisEz13 changed the title Move to core18 Fix segfault when running snap on Ubuntu 18.04 by moving to core18 Oct 21, 2019
@@ -2,18 +2,8 @@ name: powershell-preview

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you be able to give some more information about what was causing the segfault previously and how/where these changes prevent it now?

echo "Done building third party notices file - $thirdPartyNoticeFile"
stage-packages:
- libicu55
- libicu60
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this is the real fix here, compiling for the newest libicu version to avoid .NET Core picking the wrong one up from elsewhere?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem was that .NET Core picks individual DLLs' newest to oldest, and it can see into the OS. so on 18.04 it ends up picking a mix of old and new which don't work together.

@TravisEz13 TravisEz13 closed this Oct 22, 2019
@TravisEz13 TravisEz13 reopened this Oct 22, 2019
@TravisEz13
Copy link
Member Author

@TravisEz13 TravisEz13 merged commit c6a37ca into PowerShell:master Oct 22, 2019
@TravisEz13 TravisEz13 deleted the Move_to_core18 branch October 22, 2019 23:40
@TravisEz13 TravisEz13 restored the Move_to_core18 branch October 22, 2019 23:40
@TravisEz13 TravisEz13 deleted the Move_to_core18 branch October 22, 2019 23:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants