efcore: Using EF & SQLite crashes in alpine asp.net core 2.2 (but not 2.1) runtime docker image with Segmentation Fault (aka silently)

Segmentation fault when using EF Core and Sqlite in official alpine 2.2 runtime docker image from microsoft. Can be easily reproduced with a standard example project from microsoft.

Steps to reproduce the issue

  1. clone repro repo https://github.com/smuellener/SqliteSegmentationFaultAlpineDetCoreApp2_2.git
  2. dotnet publish -c Release -v n -o ./obj/Docker/publish SqliteTestApp.csproj
  3. docker build -t sqlitetestapp .
  4. docker run -it sqlitetestapp /bin/sh
  5. dotnet SqliteTestApp.dll

Expected behavior

Application runs without Segmentation Fault crash

Actual behavior

Segmentation Fault crash

Additional information

Output of docker version

Client: Docker Engine - Community Version: 18.09.1 API version: 1.39 Go version: go1.10.6 Git commit: 4c52b90 Built: Wed Jan 9 19:34:26 2019 OS/Arch: windows/amd64 Experimental: false

Server: Docker Engine - Community Engine: Version: 18.09.1 API version: 1.39 (minimum version 1.12) Go version: go1.10.6 Git commit: 4c52b90 Built: Wed Jan 9 19:41:49 2019 OS/Arch: linux/amd64 Experimental: false

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 32 (24 by maintainers)

Commits related to this issue

Most upvoted comments

The solution would be either to ship the package out of both 2.x branches in CoreFx, or to have Core-Setup 2.2 consume the latest 2.1 version of the package. Therefore we should probably track it in CoreFx, I’ll open an issue there & close this one.

Let me try to repro it locally to see where it crashes.