Skip to content

bash: Disable the internal malloc

Mathieu Bridon requested to merge bochecha/qemu-bash into master

Bash supports 2 malloc implementations: its internal one, or the one from the system C library.

This commit changes to use the system one instead of the internal one, as is already done on distributions like Debian, Fedora or Ubuntu.


The change in itself seems relatively safe, and it seems to me like the right thing to do in any case, given what major Linux distributions are doing.

As for #263 (closed), I have been trying for a week to test whether this change would fix the issue, without success. My laptop is x86_64, so I wanted to try running the ARM Flatpak Sdk, but:

  • the CI builds everything in all branches, but only exports the Flatpak runtimes on master;
  • a bug in BuildStream makes it not want to pull from the artifacts cache when I try to build for ARM on my laptop;
  • building for ARM on my x86_64 laptop (through qemu/binfmt) takes way too long; (it takes ~4h in average to run the typical configure script)
  • I tried to get the CI to export the Flatpak runtimes to the cache server, under advice from @jjardon, but without success;

So at this point, I think the change is sane, but I have no idea whether it will fix #263 (closed) or not. And I don't think I'll be able to test that any more until after this is merged into master, and I can just pull the ARM Sdk/Platform from the release repository.

If someone else wants to try, then by all means, do it. 🙂

Merge request reports