[PATCH v2] Avoid deadlock in malloc on backtrace
Mike Frysinger
vapier@gentoo.org
Mon May 18 17:03:00 GMT 2015
On 18 May 2015 15:05, Siddhesh Poyarekar wrote:
> This is take two of the patch. I've fixed up the hardcoding in the
> test case.
seems reasonable
> --- /dev/null
> +++ b/malloc/tst-malloc-backtrace.c
>
> +int
> +do_test (void)
> +{
> + void *ptr1 = malloc (SIZE);
> + void *ptr2 = malloc (SIZE);
> +
> + call_free ((void *) ptr1);
ptr1 is already a void*
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150518/23b10b06/attachment.sig>
More information about the Libc-alpha
mailing list