1.16.201 is expecting a new libc version; Current docker build is experiencing disconnects with FileUnknown crashes

Posted 1 year ago

1.16.201 is expecting a new libc version; Current docker build is experiencing disconnects with FileUnknown crashes #127

Based on the bug reports on servers crashing with 1.16.201 there may be a need to validate/update the linux libc library to match what the bedrock server is now expecting:

https://bugs.mojang.com/browse/MCPE-98133 https://bugs.mojang.com/browse/BDS-10666

I noticed that the latest versions of libc are 2.28 for debian buster but are 2.31 for ubuntu 20.04 so if the developers are building /testing on ubuntu 20.04 I could hypothetically explain the descrepency.

I took the dockerfile created here and change the FROM debian to FROM ubuntu and I'm getting build errors where I run out of space in /va/lib/docker/tmp (?!) so I may not be able to go that route but I will try running a game that is erroring on a new 20.04 VM I manually create to see if there's any change.

Created 1 year ago

Even with 20.04 LTS with 2.31 libraries it still disconnected. Looks like more research is needed since it's failing on the newer libraries. I'll post the results to mojang for further actions.

Crash details from the bedrock_server console:

OS: Linux
Server start: 2021-01-05 19:41:24 UTC
Dmp timestamp: 2021-01-05 19:41:57 UTC
Upload Date: 2021-01-05 19:41:57 UTC
Session ID: c5d74dff-2715-47fa-8554-563909cbb467
Commit hash: 
Build id: development
CrashReporter Key: 3fda6e15-a682-3497-ba49-8f114dcd62af

[INFO]  at std::__shared_count<[__gnu_cxx::_Lock_policy]2>::__shared_count[std::__weak_count<[__gnu_cxx::_Lock_policy]2> const&, std::nothrow_t] (UnknownFile:?)
        at std::__shared_ptr<POIInstance, [__gnu_cxx::_Lock_policy]2>::__shared_ptr[std::__weak_ptr<POIInstance, [__gnu_cxx::_Lock_policy]2> const&, std::nothrow_t] (UnknownFile:?)
        at std::shared_ptr<POIInstance>::shared_ptr[std::weak_ptr<POIInstance> const&, std::nothrow_t] (UnknownFile:?)
        at std::weak_ptr<POIInstance>::lock[] const (UnknownFile:?)
        at Village::getBedPOICount[] const (UnknownFile:?)
        at Village::tick[Tick, BlockSource&] (UnknownFile:?)
        at VillageManager::tickVillages[Tick const&, Vec3 const&, BlockSource&] (UnknownFile:?)
        at ServerPlayer::tickWorld[Tick const&] (UnknownFile:?)
        at std::function<bool [Player&]>::operator[][Player&] const (UnknownFile:?)
        at Level::forEachPlayer[std::function<bool [Player&]>] (UnknownFile:?)
        at Level::tick[] (UnknownFile:?)
        at ServerLevel::tick[] (UnknownFile:?)
        at GameSession::tick[] (UnknownFile:?)
        at Minecraft::tickSimtime[int, int] (UnknownFile:?)
        at Minecraft::update[] (UnknownFile:?)
        at ServerInstance::_update[] (UnknownFile:?)
        at clone (UnknownFile:?)

My VM details

[email protected]:~/bds# uname -a
Linux minecraft2 5.4.73-1-pve #1 SMP PVE 5.4.73-1 (Mon, 16 Nov 2020 10:52:16 +0100) x86_64 x86_64 x86_64 GNU/Linux
[email protected]:~/bds# apt list --installed | grep libc

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libc-bin/focal-updates,now 2.31-0ubuntu9.1 amd64 [installed]
libc6/focal-updates,now 2.31-0ubuntu9.1 amd64 [installed]
libcap-ng0/focal,now 0.7.9-2.1build1 amd64 [installed]
libcap2-bin/focal,now 1:2.32-1 amd64 [installed]
libcap2/focal,now 1:2.32-1 amd64 [installed]
libcbor0.6/focal,now 0.6.0-0ubuntu1 amd64 [installed]
libcom-err2/focal,now 1.45.5-2ubuntu1 amd64 [installed]
libcrypt1/focal,now 1:4.4.10-10ubuntu4 amd64 [installed]
libcryptsetup12/focal-updates,now 2:2.2.2-3ubuntu2.3 amd64 [installed]
libcurl4/focal-updates,focal-security,now 7.68.0-1ubuntu2.4 amd64 [installed]
[email protected]:~/bds#