summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@mysql.com>2009-03-24 14:44:21 +0100
committerVladislav Vaintroub <vvaintroub@mysql.com>2009-03-24 14:44:21 +0100
commitb446a256e4a15f2d4c03652e5ee1e9930e6702f5 (patch)
tree7e3c4a0685240562c95a1bd7b7b22f4ad9d177ee
parentca3db65c9f2776fff2ecd62f9e51fff0acec6507 (diff)
downloadmariadb-git-b446a256e4a15f2d4c03652e5ee1e9930e6702f5.tar.gz
change order of cdb parameters to workaround a bug , where command (-c) is not evaluated if -i ,-y or -z contains an invalid path.
cdb would hang then waiting for user input, which is bad for use in scripts
-rw-r--r--mysql-test/lib/My/CoreDump.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/lib/My/CoreDump.pm b/mysql-test/lib/My/CoreDump.pm
index 0591602d365..3ac9e385070 100644
--- a/mysql-test/lib/My/CoreDump.pm
+++ b/mysql-test/lib/My/CoreDump.pm
@@ -232,7 +232,7 @@ sub _cdb {
my $cdb_cmd = "!sym prompts off; !analyze -v; .ecxr; !for_each_frame dv /t;!uniqstack -p;q";
my $cdb_output=
- `cdb -z $core_name -i "$image_path" -y "$symbol_path" -t 0 -lines -c "$cdb_cmd" 2>&1`;
+ `cdb -c "$cdb_cmd" -z $core_name -i "$image_path" -y "$symbol_path" -t 0 -lines 2>&1`;
return if $? >> 8;
return unless $cdb_output;