diff options
author | Bjorn Munch <Bjorn.Munch@sun.com> | 2009-03-20 16:39:06 +0100 |
---|---|---|
committer | Bjorn Munch <Bjorn.Munch@sun.com> | 2009-03-20 16:39:06 +0100 |
commit | dd6356acca1cb6aaca995c6d3619af89681aef99 (patch) | |
tree | d245eca54bb1a84957e9e8d52bf7a504af5de929 /mysql-test/mysql-test-run.pl | |
parent | 776bb04abfed3f3fc3b1b63ffaab804f9603e139 (diff) | |
download | mariadb-git-dd6356acca1cb6aaca995c6d3619af89681aef99.tar.gz |
Bug #43074 MTR2 is not accessing core dumps when a path is too long
Executable path is truncated in core
If we see truncated path, try to guess using strings and grep
If that doesn't work either, use known mysqld path
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index c5a68662d5b..221cbedc89f 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -429,6 +429,7 @@ sub run_test_server ($$$) { my $completed= []; my %running; my $result; + my $exe_mysqld= find_mysqld($basedir) || ""; # Used as hint to CoreDump my $suite_timeout_proc= My::SafeProcess->timer(suite_timeout()); @@ -500,7 +501,7 @@ sub run_test_server ($$$) { mtr_report(" - found '$core_name'", "($num_saved_cores/$opt_max_save_core)"); - My::CoreDump->show($core_file); + My::CoreDump->show($core_file, $exe_mysqld); if ($num_saved_cores >= $opt_max_save_core) { mtr_report(" - deleting it, already saved", |