Skip to content

Commit

Permalink
Add a temporal stack dumper for debugging on trunk-mjit
Browse files Browse the repository at this point in the history
This must be definitely removed after we collect the stack traces :-)
http://ci.rvm.jp/results/trunk-mjit@silicon-docker/2245710
  • Loading branch information
mame committed Sep 5, 2019
1 parent 0036aa3 commit 433c9c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tool/lib/envutil.rb
Expand Up @@ -149,6 +149,9 @@ def invoke_ruby(args, stdin_data = "", capture_stdout = false, capture_stderr =
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
Expand Down

0 comments on commit 433c9c0

Please sign in to comment.