Hello,

On Tue, May 27, 2025 at 04:26:38AM +0200, Samuel Thibault wrote:
> 
> Normally it works but possibly it got broken by some upstream change.
> git bisect welcome to determine what broke it.
> 

Ok, I finally could do a bisection for this issue and the result is the 
following[1]:

    demo@debian:~/dev/hurd/upstream/glibc$ git bisect view
    commit 25d37948c9f3f483d63302b9967b975d3bd74a4e (HEAD, tag: first-bad)
    Author: Wilco Dijkstra <wilco.dijks...@arm.com>
    Date:   Thu May 1 19:58:38 2025 +0000

        malloc: Improve malloc initialization

        Move malloc initialization to __libc_early_init.  Use a hidden 
__ptmalloc_init
        for initialization and a weak call to avoid pulling in the system 
malloc in a
        static binary.  All previous initialization checks can now be removed.

        Reviewed-by: Florian Weimer <fwei...@redhat.com>

There's a follow up commit to this change[2] but it doesn't make any difference 
for Hurd:

    demo@debian:~/dev/hurd/upstream/glibc$ git show 919bf1489a
    commit 919bf1489abe634aefbcf3532617e7c5987c56ab
    Author: Wilco Dijkstra <wilco.dijks...@arm.com>
    Date:   Tue May 27 13:32:45 2025 +0000

        malloc: Fix malloc init order

        __ptmalloc_init was called too early in __libc_early_init: it uses
        __libc_initial which is not set yet.  Fix this by moving initialization
        to the end of __libc_early_init.

        Reviewed-by: Florian Weimer <fwei...@redhat.com>


[1] 
https://sourceware.org/git/?p=glibc.git;a=commit;h=25d37948c9f3f483d63302b9967b975d3bd74a4e
[2] 
https://sourceware.org/git/?p=glibc.git;a=commit;h=919bf1489abe634aefbcf3532617e7c5987c56ab

Thnaks,
Diego

Reply via email to