mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
b8af4ab216
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.
27 lines
464 B
Text
27 lines
464 B
Text
SET @old_debug = @@GLOBAL.debug;
|
|
set debug= 'T';
|
|
select @@debug;
|
|
@@debug
|
|
T
|
|
set debug= '+P';
|
|
select @@debug;
|
|
@@debug
|
|
P:T
|
|
set debug= '-P';
|
|
select @@debug;
|
|
@@debug
|
|
T
|
|
#
|
|
# Bug #52629: memory leak from sys_var_thd_dbug in
|
|
# binlog.binlog_write_error
|
|
#
|
|
SET GLOBAL debug='d,injecting_fault_writing';
|
|
SELECT @@global.debug;
|
|
@@global.debug
|
|
d,injecting_fault_writing
|
|
SET GLOBAL debug='';
|
|
SELECT @@global.debug;
|
|
@@global.debug
|
|
|
|
SET GLOBAL debug=@old_debug;
|
|
End of 5.1 tests
|