[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bash's malloc does not work within qemu-user when compiled with PIE enab
From: |
Raphael Hertzog |
Subject: |
Bash's malloc does not work within qemu-user when compiled with PIE enabled |
Date: |
Tue, 13 Feb 2018 12:41:13 +0100 |
User-agent: |
Mutt/1.9.3 (2018-01-21) |
Hello,
in Debian we wanted to build bash with PIE enabled [1], but we discovered that
bash was broken under qemu-user when it was compiled that way [2].
It turns out that it's broken only when it uses bash's malloc
implementation. If we build bash with PIE and --without-bash-malloc then
we don't have the problem.
It would be nice if bash's malloc implementation could be fixed to also
work under qemu-user.
This was all tested with 4.4 patchlevel 18.
[1] https://bugs.debian.org/865599
https://manpages.debian.org/unstable/dpkg-dev/dpkg-buildflags.1.en.html
(see section about "pie", basically we add -fPIE to CFLAGS and -fPIE -pie to
LDFLAGS)
[2] https://bugs.debian.org/889869
--
Raphaël Hertzog ◈ Debian Developer
Support Debian LTS: https://www.freexian.com/services/debian-lts.html
Learn to master Debian: https://debian-handbook.info/get/
- Bash's malloc does not work within qemu-user when compiled with PIE enabled,
Raphael Hertzog <=