ruby-changes:64139
From: Takashi <ko1@a...>
Date: Mon, 14 Dec 2020 16:44:53 +0900 (JST)
Subject: [ruby-changes:64139] aacd2295d0 (master): Debug the command used for gdb dump
https://git.ruby-lang.org/ruby.git/commit/?id=aacd2295d0 From aacd2295d0f2c982641229e159ff179462d83a36 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Sun, 13 Dec 2020 23:35:27 -0800 Subject: 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. diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index f8a53ae..2cd91ff 100755 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -530,7 +530,9 @@ def cleanup_coredump https://github.com/ruby/ruby/blob/trunk/bootstraptest/runner.rb#L530 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 diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index b292f25..d76353c 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -357,7 +357,9 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit.rb#L357 core_path = "/tmp/test-unit-core.#{Time.now.utc.iso8601}" warn "A core file is found. Saving it at: #{core_path.dump}" FileUtils.mv('core', core_path) - system('gdb', RbConfig.ruby, '-c', core_path, '-ex', 'bt', '-batch') + cmd = ['gdb', RbConfig.ruby, '-c', core_path, '-ex', 'bt', '-batch'] + p cmd # debugging why it's not working + system(*cmd) end STDERR.flush exit c -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/