mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
This commit is contained in:
parent
8d83334a69
commit
aacd2295d0
2 changed files with 6 additions and 2 deletions
|
@ -530,7 +530,9 @@ def cleanup_coredump
|
||||||
core_path = "/tmp/bootstraptest-core.#{Time.now.utc.iso8601}"
|
core_path = "/tmp/bootstraptest-core.#{Time.now.utc.iso8601}"
|
||||||
warn "A core file is found. Saving it at: #{core_path.dump}"
|
warn "A core file is found. Saving it at: #{core_path.dump}"
|
||||||
FileUtils.mv('core', core_path)
|
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
|
end
|
||||||
FileUtils.rm_f Dir.glob('core.*')
|
FileUtils.rm_f Dir.glob('core.*')
|
||||||
FileUtils.rm_f @ruby+'.stackdump' if @ruby
|
FileUtils.rm_f @ruby+'.stackdump' if @ruby
|
||||||
|
|
|
@ -357,7 +357,9 @@ module Test
|
||||||
core_path = "/tmp/test-unit-core.#{Time.now.utc.iso8601}"
|
core_path = "/tmp/test-unit-core.#{Time.now.utc.iso8601}"
|
||||||
warn "A core file is found. Saving it at: #{core_path.dump}"
|
warn "A core file is found. Saving it at: #{core_path.dump}"
|
||||||
FileUtils.mv('core', core_path)
|
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
|
end
|
||||||
STDERR.flush
|
STDERR.flush
|
||||||
exit c
|
exit c
|
||||||
|
|
Loading…
Add table
Reference in a new issue