bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bash's malloc does not work within qemu-user when compiled with PIE


From: Chet Ramey
Subject: Re: Bash's malloc does not work within qemu-user when compiled with PIE enabled
Date: Tue, 13 Feb 2018 10:03:07 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 2/13/18 6:41 AM, Raphael Hertzog wrote:
> 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.

Does sbrk(2) work in a PIE-enabled environment?

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]