[PATCH v9 00/10] malloc hooks removal

Florian Weimer fweimer@redhat.com
Mon Jul 19 11:20:54 GMT 2021


* Siddhesh Poyarekar:

> On 7/19/21 4:41 PM, Florian Weimer wrote:
>> * Siddhesh Poyarekar:
>> 
>>> On 7/19/21 4:37 PM, Florian Weimer via Libc-alpha wrote:
>>>> This series break old Emacs binaries (e.g. emacs-24.3-23.el7.x86_64):
>>>> $ bash testrun.sh /usr/bin/emacs
>>>
>>> Do they work if you run with LD_PRELOAD=malloc/libc_malloc_debug.so?
>> Basic testing suggests it works.
>
> The thing is, set_malloc_state will just not be called without the
> preload, so it doesn't matter what it returns.  What we need to make a 
> more graceful exit is to detect the existence of a non-NULL
> __malloc_initialize_hook within libc.so and abort.  I'm not sure if
> it's worth the effort.

We could remove both symbols from libc.so.6.  That would result in error
that can be found with search engines.

Thanks,
Florian



More information about the Libc-alpha mailing list