mathworks / build-glibc-bz-19329-patch

This repository provides a Dockerfile and build instructions to apply patch BZ-19329 to glibc
19 stars 6 forks source link

About MATLAB2021b crash #13

Open Dmp1e opened 3 months ago

Dmp1e commented 3 months ago

Hi, i installed this patch for fixing matlab crashing on Ubuntu 20.04. Actually, after installing all debs, it works. But when i restart matlab or computer, sometimes the crash appears again, so i have to install all debs again. Do you have some suggestions? Thanks

josmartin commented 3 months ago

@Dmp1e Could you confirm that after machine restart you no longer have the expected packages by running dpkg --list | grep libc-bin. If (after reboot) this has reverted to a previous version (NOT the expected 2.31-0ubuntu9.16.ubuntu.focal.custom) then there is something in your system boot environment that is overriding the installation (or there is some interesting cross mount of your system that is reverting changes you make).

As an exemplar ... currently Ubuntu:20.04 is shipping ...

root@09015641e4af:~# dpkg --list | grep libc-bin
ii  libc-bin                2.31-0ubuntu9.12             amd64        GNU C Library: Binaries

After installing the current patched libs you should get ...

root@09015641e4af:~# dpkg --install libc-bin_2.31-0ubuntu9.16.ubuntu.focal.custom_amd64.deb
(Reading database ... 4478 files and directories currently installed.)
Preparing to unpack libc-bin_2.31-0ubuntu9.16.ubuntu.focal.custom_amd64.deb ...
Unpacking libc-bin (2.31-0ubuntu9.16.ubuntu.focal.custom) over (2.31-0ubuntu9.12) ...
Setting up libc-bin (2.31-0ubuntu9.16.ubuntu.focal.custom) ...

root@09015641e4af:~# dpkg --list | grep libc-bin
ii  libc-bin                2.31-0ubuntu9.16.ubuntu.focal.custom amd64        GNU C Library: Binaries

The patch simply builds a debian package that the standard installers (apt and\or dpkg) install. We don't try to be clever with any boot changes - those are left to the underlying system and are nothing we attempt to fix.

josmartin commented 2 months ago

@Dmp1e Somehow your comment seems to have been dropped - I think you said this @ 14 Jun 2024, 02:45

Thanks for reply.

libc-bin was indeed updated during the daily system update. I will try to add it into the blacklist of upgrade. So, it has been confirmed that this crash was caused by the version of libc-bin?

And in reply ... yes - this crash is definitely caused by libc-bin.