mirror of
https://github.com/MariaDB/server.git
synced 2026-04-19 23:05:32 +02:00
Bug#52884 mysql-test-run does not work with --debug option
Server crashes on 64bit linux with 'double free or corruption' message, on 32bit mysql-test-run silently fails on bootstrap stage. The problem is that FreeState() is called twice for init_settings struct in _db_end_ function. The fix is to remove superfluous FreeState() call. Additional fix: fixed discrepancy of result file when debug & valgrind options are enabled for MTR. dbug/dbug.c: The problem is that FreeState() is called twice for init_settings struct in _db_end_ function. The fix is to remove superfluous FreeState() call. mysql-test/r/variables_debug.result: fixed discrepancy of result file when debug & valgrind options are enabled for MTR. mysql-test/t/variables_debug.test: fixed discrepancy of result file when debug & valgrind options are enabled for MTR. sql/set_var.cc: fixed discrepancy of result file when debug & valgrind options are enabled for MTR.
This commit is contained in:
parent
7e889a8dc9
commit
b8af4ab216
4 changed files with 12 additions and 5 deletions
|
|
@ -1,5 +1,7 @@
|
|||
--source include/have_debug.inc
|
||||
|
||||
SET @old_debug = @@GLOBAL.debug;
|
||||
|
||||
#
|
||||
# Bug#34678 @@debug variable's incremental mode
|
||||
#
|
||||
|
|
@ -21,5 +23,6 @@ SELECT @@global.debug;
|
|||
SET GLOBAL debug='';
|
||||
SELECT @@global.debug;
|
||||
|
||||
SET GLOBAL debug=@old_debug;
|
||||
|
||||
--echo End of 5.1 tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue