Ubiquity KDE crash on try/install and from live session with "malloc(): unaligned tcache chunk detected"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mesa (Ubuntu) |
Fix Released
|
Critical
|
Timo Aaltonen | ||
Hirsute |
Fix Released
|
Critical
|
Timo Aaltonen | ||
ubiquity (Ubuntu) |
Invalid
|
Critical
|
Unassigned | ||
Hirsute |
Invalid
|
Critical
|
Unassigned |
Bug Description
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: ubiquity 21.04.11
ProcVersionSign
Uname: Linux 5.11.0-11-generic x86_64
ApportVersion: 2.20.11-0ubuntu60
Architecture: amd64
CasperMD5CheckR
CasperVersion: 1.460
CurrentDesktop: KDE
Date: Sun Mar 21 11:53:44 2021
InstallCmdLine: BOOT_IMAGE=
LiveMediaBuild: Kubuntu 21.04 "Hirsute Hippo" - Alpha amd64 (20210321)
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)
Since approximately 16/03/2021 ubiquity from maybe-ubiquity (try install screen) and from the live session is crashing on launch or shortly after.
Cases where the crash can be triggered:
- Using a Virtualbox VM, where graphics acceleration is handled by mesa with LLVMPIPE
- Start the ISO on real hardware in 'safe graphics mode'
Cases where the crash is not encountered:
- Start the ISO on real intel (HD graphics) hardware with full acceleration.
NOTE: The crash can be avoided by downgrading MESA 21.0.x packages to the previous 20.3.4 in hirsute.
Try/Install crash:
Screen fails to start, or starts then crashes on any user action. The user is presented with:
"Installation failed - The installer encountered an unrecoverable error.
A desktop session will now be run so that you may investigate the problem or try installing again"
Live session crash:
The installer does not start from the desktop icon. Starting ubiquity from the terminal results in an "Aborted (core dumped)" message and nothing else.
The crash is most commonly "malloc(): unaligned tcache chunk detected", but inevitably from this sort of memory issue can be something like "realloc(): invalid next size"
An example /var/log/
**** /var/log/
Ubiquity 21.04.11
TEXT <small>If more than one person will use this computer, you can set up multiple accounts after installation.
TEXT <small>Enter the same password twice, so that it can be checked for typing errors.</small>
TEXT <small>The name it uses when it talks to other computers.</small>
TEXT <small>Enter the same password twice, so that it can be checked for typing errors.</small>
TEXT <small>Enter the same password twice, so that it can be checked for typing errors.</small>
TEXT <small>If more than one person will use this computer, you can set up multiple accounts after installation.
TEXT <small>Enter the same password twice, so that it can be checked for typing errors.</small>
TEXT <small>The name it uses when it talks to other computers.</small>
QSocketNotifier: Invalid socket 17 and type 'Read', disabling...
QSocketNotifier: Invalid socket 17 and type 'Write', disabling...
QSocketNotifier: Invalid socket 17 and type 'Exception', disabling...
Your console font configuration will be updated the next time your system
boots. If you want to update it now, run 'setupcon' from a virtual console.
update-initramfs is disabled since running on read-only media
debconf: DbDriver "passwords" warning: could not open /var/cache/
munmap_chunk(): invalid pointer
Ubiquity 21.04.11
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-
TEXT <small>If more than one person will use this computer, you can set up multiple accounts after installation.
TEXT <small>Enter the same password twice, so that it can be checked for typing errors.</small>
TEXT <small>The name it uses when it talks to other computers.</small>
TEXT <small>Enter the same password twice, so that it can be checked for typing errors.</small>
malloc(): unaligned tcache chunk detected
description: | updated |
summary: |
- Ubiquity crash on try/install and from live session with "malloc(): + Ubiquity KDE crash on try/install and from live session with "malloc(): unaligned tcache chunk detected" |
description: | updated |
Changed in mesa (Ubuntu Hirsute): | |
importance: | Undecided → Critical |
Changed in ubiquity (Ubuntu Hirsute): | |
milestone: | none → ubuntu-21.04 |
description: | updated |
tags: | added: rls-hh-incoming |
tags: | removed: rls-hh-incoming |
description: | updated |
Changed in mesa (Ubuntu Hirsute): | |
status: | Confirmed → Opinion |
Changed in mesa (Ubuntu Hirsute): | |
status: | Opinion → Confirmed |
Changed in mesa (Ubuntu Hirsute): | |
status: | Confirmed → Fix Committed |
Changed in ubiquity (Ubuntu Hirsute): | |
status: | Incomplete → Invalid |
Some diagnosis as follows:
- Loaded a previous snapshot of a Kubuntu 21.04 VM from before 16th March 2021.
- Installed ubiquity.
- Tested whether ubiquity launches.
- Ubiquity launches.
- Then looked at what was upgradable in the release pocket.
- Sequentially upgraded likely culprits, rebooted, and tried to launch ubiquity after each small update.
Result:
Found that upgrading Mesa packages from 20.3.4-1 to 21.0.0-1 is all that is required to trigger the crash.
Upgraded the following packages:
libegl-mesa0 (20.3.4-1) to 21.0.0-1
libgbm1 (20.3.4-1) to 21.0.0-1
libgl1-mesa-dri (20.3.4-1) to 21.0.0-1
libglapi-mesa (20.3.4-1) to 21.0.0-1
libglx-mesa0 (20.3.4-1) to 21.0.0-1
libxatracker2 (20.3.4-1) to 21.0.0-1
mesa-va-drivers (20.3.4-1) to 21.0.0-1
mesa-vdpau-drivers (20.3.4-1) to 21.0.0-1
mesa-vulkan-drivers (20.3.4-1) to 21.0.0-1