[PATCH] malloc: Fix attached thread reference count handling [BZ #19243]

Florian Weimer fweimer@redhat.com
Tue Nov 17 12:20:00 GMT 2015


This patch does not address the deadlock scenario around list_lock and
the fork handler.

I tried various different approaches, and there is an immediate
temptation to introduce proper synchronization into the arena selection
logic.  This is why I went with the minimal change for now.

The test, while racy, is extremely reliable in practice.  It usually
crashes within one or two seconds.  I have never seen it succeeding
without the fix.

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-malloc-Fix-attached-thread-reference-count-handling-.patch
Type: text/x-patch
Size: 8342 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151117/bc8683bb/attachment.bin>


More information about the Libc-alpha mailing list