mariadb/client
Vladislav Vaintroub 0eae06c430 Bug#473914: mysql_client_test fail with in debug compilaton on windows x64
Reason: inconsistent compilation, federatedx is compiled without SAFEMALLOC
flag, while anything else is compiled with SAFEMALLOC.

As a consequence, my_hash_init used inside federatedx initialization does not
provide correct caller info parameters (file, line) , so they are initialized with 
whatever is on stack. When info about allocated memory is output in
COM_DEBUG command, the server crashes trying to output string starting at
0xcccccccccccccccc.

The fix is to remove SAFEMALLOC  preprocessor flags 
from every CMakeLists.txt, except the top-level one.

Also, SAFEMALLOC is not defined by default now, instead
there is WITH_DEBUG_FULL CMake option which adds 
-DSAFEMALLOC to C and C++ flags in debug compilation. 
This option is off by  default, because 
1) Debug C runtime already has heap debugging builtin with 
 overwrite and leak detection
2)safemalloc considerably slows down the tests.


Note also  that 
- SAFEMALLOC is gone  in MySQL5.5
- On Windows, heap related overflows can also be found using free pageheap utility
(that is also part of application verifier). This is even more efficient if there are no other layers 
on top of Windows heap allocator, e.g  it is most efficient with release version.
2010-12-06 12:52:06 +01:00
..
.cvsignore
client_priv.h Merge MySQL 5.1.44 into MariaDB. 2010-03-04 09:03:07 +01:00
CMakeLists.txt Bug#473914: mysql_client_test fail with in debug compilaton on windows x64 2010-12-06 12:52:06 +01:00
completion_hash.cc WL#3817: Simplify string / memory area types and make things more consistent (first part) 2007-05-10 12:59:39 +03:00
completion_hash.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
echo.c echo.c: 2007-03-20 18:31:49 +01:00
get_password.c fixes for build failures due to my yesterday's changeset forbidding 2008-02-19 18:45:11 +01:00
Makefile.am MWL#74: Shared libmysqld.so library. 2010-11-17 13:24:20 +01:00
my_readline.h Manual merge. 2009-03-18 11:27:49 +03:00
mysql.cc Merge with MySQL 5.1.53 2010-11-25 00:57:34 +02:00
mysql_upgrade.c Fixed build failures 2010-09-06 02:15:34 +03:00
mysqladmin.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
mysqlbinlog.cc Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
mysqlcheck.c Fixed build failures 2010-09-06 02:15:34 +03:00
mysqldump.c Fixed compiler warnings from Windows compiler 2010-08-11 13:55:54 +03:00
mysqlimport.c Fixed compiler warnings from Windows compiler 2010-08-11 13:55:54 +03:00
mysqlshow.c Merge with MySQL 5.1.50 2010-08-27 17:12:44 +03:00
mysqlslap.c This patch fixes LP#613408 Memory corruption with (M)aria storage engine and virtual columns in MariaDB 5.2 2010-08-07 17:42:30 +03:00
mysqltest.cc Merge with MySQL 5.1.53 2010-11-25 00:57:34 +02:00
readline.cc Manual merge. 2009-03-18 11:27:49 +03:00
sql_string.cc Bug#45288: pb2 returns a lot of compilation warnings on linux 2010-07-09 09:00:17 -03:00
sql_string.h Bug#45288: pb2 returns a lot of compilation warnings 2010-10-19 20:36:59 -02:00