mariadb/dbug
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
..
CMakeLists.txt Bug#473914: mysql_client_test fail with in debug compilaton on windows x64 2010-12-06 12:52:06 +01:00
dbug.c Merge with MySQL 5.1.53 2010-11-25 00:57:34 +02:00
dbug_add_tags.pl dbug_add_tags.pl: 2007-10-13 20:26:32 +02:00
dbug_analyze.c dbug/dbug_analyze.c : Avoid the unresolved symbol "my_thread_global_init()" 2007-04-23 13:36:18 +02:00
dbug_long.h dbug: DBUG_EXECUTE_IF macro, build user manual automatically, document all features 2004-11-04 22:29:00 +01:00
example1.c document DBUG_OUTPUT() 2004-11-11 14:42:35 +01:00
example2.c document DBUG_OUTPUT() 2004-11-11 14:42:35 +01:00
example3.c document DBUG_OUTPUT() 2004-11-11 14:42:35 +01:00
factorial.c Bug#26243 mysql command line crash after control-c 2008-03-28 14:02:27 -04:00
main.c document DBUG_OUTPUT() 2004-11-11 14:42:35 +01:00
Makefile.am MWL#74: Shared libmysqld.so library. 2010-11-17 13:24:20 +01:00
monty.doc dbug changes: 2006-02-14 22:36:11 +01:00
my_main.c Several fixes revelaled by Intel compiler. 2005-09-23 16:47:08 +03:00
remove_function_from_trace.pl Fixed bug LP#605798 "wrong data in bitmap" after recovery. 2010-09-10 02:42:12 +03:00
sanity.c Changed to use my_global.h 2001-09-14 02:54:33 +03:00
tests-t.pl Bug#42735: dbug treated duplicate keywords (-#d,kw,kw) incorrectly 2009-02-10 19:13:24 +01:00
tests.c skip dbug tests if DBUG_OFF 2008-02-13 20:29:29 +01:00
user.r Merge MySQL->MariaDB 2009-09-08 00:50:10 +04:00