evilsong / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

make check mail fail malloc_extension_c_test sometimes #506

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. just ./configure --enable-minimal --disable-static --enable-shared && make 
check on recent GNU/Linux box. My gcc is gcc (Debian 4.7.2-5) 4.7.2
2.
3.

What is the expected output? What do you see instead?
All tests should pass, but malloc_extension_c_test fails

Please use labels and text to provide additional information.

I've found that my gcc is too smart and replaces free(malloc(N)) with nothing. 
Patch below fixes the problem.

Original issue reported on code.google.com by alkondratenko on 11 Mar 2013 at 7:22

Attachments:

GoogleCodeExporter commented 9 years ago
Just merged this trivial fix

Original comment by alkondratenko on 11 Mar 2013 at 7:25