Skip to content

Conversation

@github-actions
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.

@dotnet-policy-service
Copy link
Contributor

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

@carlossanlop carlossanlop added the Servicing-consider Issue for next servicing release review label Aug 20, 2024
@carlossanlop carlossanlop added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Aug 20, 2024
@carlossanlop
Copy link
Contributor

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
@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.

3 participants