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
- clone repro repo https://github.com/smuellener/SqliteSegmentationFaultAlpineDetCoreApp2_2.git
- dotnet publish -c Release -v n -o ./obj/Docker/publish SqliteTestApp.csproj
- docker build -t sqlitetestapp .
- docker run -it sqlitetestapp /bin/sh
- dotnet SqliteTestApp.dll
Expected behavior
Application runs without Segmentation Fault crash
Actual behavior
Segmentation Fault crash
Additional information
- A standard example project from microsoft is used for reproduction: https://docs.microsoft.com/en-us/ef/core/get-started/netcore/new-db-sqlite
- Built using Current SDK version (2.2.103)
- Does not Segmentation Fault crash when microsoft/dotnet:2.1-aspnetcore-runtime-alpine is used
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
- update base image to 2.1 https://github.com/aspnet/EntityFrameworkCore/issues/14504 — committed to OpenReservation/ReservationServer by WeihanLi 5 years ago
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.