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

[release/9.0-rc1] Include libz.a in native aot packages #106673

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 20, 2024

Backport of #106569 to release/9.0-rc1

/cc @jkotas

Customer Impact

  • Customer reported
  • Found internally

Fixes #106566

A customer reported that when trying to run an AOT application compiled for ARM64 with Preview7, an error shows up saying that libz.so could not be loaded. This was because our in-tree copy of zlib-ng was incorrectly loaded as a shared library rather than a statically linked one.

The runtime error is:

/app/HwoodiwissHelper: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file

And occurs when the project uses these properties:

<PublishAot>true</PublishAot>
<EnableSdkContainerSupport>true</EnableSdkContainerSupport>

Regression

  • Yes
  • No

This was introduced in P7.

Testing

Manual and also executing various azp run CI legs.

Risk

Low. This affects the few cases where zlib is included as a shared library and now will be included as a statically linked library, which we already know works for all other cases.

IMPORTANT: If this backport is for a servicing release, please verify that:

  • The PR target branch is release/X.0-staging, not release/X.0.

  • If the change touches code that ships in a NuGet package, you have added the necessary package authoring and gotten it explicitly reviewed.

Copy link
Contributor

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

@carlossanlop
Copy link
Member

Approved by Tactics via email. We got confirmation that we have runway to merge.

@carlossanlop carlossanlop merged commit 0bf8d1e into release/9.0-rc1 Aug 20, 2024
162 of 168 checks passed
@carlossanlop carlossanlop deleted the backport/pr-106569-to-release/9.0-rc1 branch August 20, 2024 15:41
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-NativeAOT-coreclr Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants