This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] Avoid deadlock in malloc on backtrace


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

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]