diff options
author | Takashi Kokubun <[email protected]> | 2020-12-13 23:35:27 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2020-12-13 23:35:29 -0800 |
commit | aacd2295d0f2c982641229e159ff179462d83a36 (patch) | |
tree | bfbd95a9ddbf6fff1f3fa28332692dfe0bee6981 /bootstraptest/runner.rb | |
parent | 8d83334a695b7454e9b942289eaede843c4c3660 (diff) |
Debug the command used for gdb dump
It's not working
http://ci.rvm.jp/results/trunk-mjit@phosphorus-docker/3288206. I'm
debugging why.
Diffstat (limited to 'bootstraptest/runner.rb')
-rwxr-xr-x | bootstraptest/runner.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index f8a53aedd8..2cd91ffd07 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -530,7 +530,9 @@ def cleanup_coredump core_path = "/tmp/bootstraptest-core.#{Time.now.utc.iso8601}" warn "A core file is found. Saving it at: #{core_path.dump}" FileUtils.mv('core', core_path) - system('gdb', @ruby, '-c', core_path, '-ex', 'bt', '-batch') + cmd = ['gdb', @ruby, '-c', core_path, '-ex', 'bt', '-batch'] + p cmd # debugging why it's not working + system(*cmd) end FileUtils.rm_f Dir.glob('core.*') FileUtils.rm_f @ruby+'.stackdump' if @ruby |