1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add a temporal stack dumper for debugging on trunk-mjit

This must be definitely removed after we collect the stack traces :-)
http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2245710
This commit is contained in:
Yusuke Endoh 2019-09-05 22:14:01 +09:00
parent 0036aa3532
commit 433c9c00d9

View file

@ -149,6 +149,9 @@ module EnvUtil
if (!th_stdout || th_stdout.join(timeout)) && (!th_stderr || th_stderr.join(timeout))
timeout_error = nil
else
if File.exist?("/home/ko1/ruby/build-ruby/gdbscript")
system("gdb", "-p", pid.to_s, "-x", "/home/ko1/ruby/build-ruby/gdbscript", "-batch", "-quiet")
end
status = terminate(pid, signal, opt[:pgroup], reprieve)
terminated = Time.now
end