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] malloc/tst-posix_memalign.c: Tidy up code.


On 9 October 2013 12:11, Andreas Jaeger <aj@suse.com> wrote:
> On 10/03/2013 02:24 PM, Will Newton wrote:
>>
>> Add some comments and call free on all potentially allocated pointers.
>
> Will, does the test work for you?

Yes, it works in my testing so far.

> I get:
>
> *** Error in `/home/aj/build/glibc/x86-64/malloc/tst-posix_memalign':
> free(): invalid next size (normal): 0x00007f7c3ba94010 ***
>
> Note that I use MALLOC_CHECK_=3 in my environment.
>
> Could you fix it the test, please?

The test is working as expected, the problem is caused by a bug in the
malloc check implementation. I have submitted a patch, thanks for
picking this up!

-- 
Will Newton
Toolchain Working Group, Linaro


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