[PATCH v12 1/2] malloc: add tcache support for large chunk caching
Cupertino Miranda
cupertino.miranda@oracle.com
Tue Jul 8 17:48:31 GMT 2025
Hi Florian,
Thanks for verifying it.
Actually I tried the same with 2.41 release ... hang still happens there.
Any chance this is an actual race in scanimage or other used library ?
Cheers,
Cupertino
On 08-07-2025 18:45, Florian Weimer wrote:
> * Cupertino Miranda:
>
>> Hi everyone,
>>
>> After analyzing my patch, I could not find any location that would
>> justify the hang in scanimage, when !USE_TCACHE was set.
>>
>> I took commit daab2a6d19f8360248289840408e7d2e5c203c2e and built glibc
>> with !USE_TCACHE.
>> I removed any calls to malloc_printerr_tail, which fail to build when
>> !USE_TCACHE.
>> Well, scanimage was still hanging.
>>
>> I get the feeling that my patch might expose the problem but might not
>> be the root cause.
>>
>> In my machine it hangs almost instantly.
>> Florian: Can you please verify this claim ?
>
> Hmm, I did get a hang on 7e10e30e64aa2cc8ba50f2f83cb7cc2cdad134ad, with
> a lot of patience. And with more patience, on
> 404526ee2e58f3c075253943ddc9988f4bd6b80c.
>
> So you are right, it's not your commit. Sorry about that.
>
> The hang goes back much further and may not be due to a glibc change
> after all.
>
> Thanks,
> Florian
>
More information about the Libc-alpha
mailing list