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:
parent
0036aa3532
commit
433c9c00d9
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue