[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removal of unexec support from glibc malloc
From: |
Florian Weimer |
Subject: |
Re: Removal of unexec support from glibc malloc |
Date: |
Tue, 19 Jan 2016 11:14:25 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
On 01/19/2016 10:27 AM, Florian Weimer wrote:
> On 01/19/2016 07:31 AM, Paul Eggert wrote:
>
>>> With a bit of luck, newer valgrind versions will even recognize the
>>> interposed malloc, simplifying leak detection.
>>
>> Wow, thanks, I didn't know that. I have been using valgrind only on
>> temacs (the undumped, slow, and hard-to-use Emacs), because valgrind
>> doesn't work on dumped emacs under GNU/Linux.
>
> With the new interposing-aware valgrind, valgrind still works, but
> there's a memory allocation failure because valgrind detects an invalid
> realloc and makes it return NULL, instead of forwarding it to the
> implementation.
>
> We're looking at this to see if it's easy to fix in valgrind.
This will not work until the undumping code iterates over all heap
objects and marks them with VALGRIND_MALLOCLIKE_BLOCK. It's not exactly
trivial (but not that hard, either). There might be secondary breakage
after that.
Florian
- Re: Removal of unexec support from glibc malloc, (continued)
- Re: Removal of unexec support from glibc malloc, Wolfgang Jenkner, 2016/01/18
- Re: Removal of unexec support from glibc malloc, Eli Zaretskii, 2016/01/18
- Re: Removal of unexec support from glibc malloc, Wolfgang Jenkner, 2016/01/18
- Re: Removal of unexec support from glibc malloc, Paul Eggert, 2016/01/18
- Re: Removal of unexec support from glibc malloc, Florian Weimer, 2016/01/18
- Re: Removal of unexec support from glibc malloc, Paul Eggert, 2016/01/19
- Re: Removal of unexec support from glibc malloc, Florian Weimer, 2016/01/19
- Re: Removal of unexec support from glibc malloc,
Florian Weimer <=
- Re: Removal of unexec support from glibc malloc, Wolfgang Jenkner, 2016/01/19
- Re: Removal of unexec support from glibc malloc, Eli Zaretskii, 2016/01/19
- Re: Removal of unexec support from glibc malloc, Paul Eggert, 2016/01/30
- Re: Removal of unexec support from glibc malloc, Florian Weimer, 2016/01/18
- Re: Removal of unexec support from glibc malloc, Eli Zaretskii, 2016/01/18
- Re: Removal of unexec support from glibc malloc, Stefan Monnier, 2016/01/23
- Re: Removal of unexec support from glibc malloc, Eli Zaretskii, 2016/01/23
- Re: Removal of unexec support from glibc malloc, Stefan Monnier, 2016/01/23
- Re: Removal of unexec support from glibc malloc, Eli Zaretskii, 2016/01/23
- Re: Removal of unexec support from glibc malloc, Stefan Monnier, 2016/01/23