summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-09-05 22:14:01 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-09-05 22:16:21 +0900
commit433c9c00d96124e3b416d0a20ff795b0ad4273fa (patch)
treeb3dae11a5a2d1102a11dbe47a05f64e195904188
parent0036aa35321b036be6e49e07b19f92c061ca4135 (diff)
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
-rw-r--r--tool/lib/envutil.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/lib/envutil.rb b/tool/lib/envutil.rb
index 2faf48385e..2b943834ac 100644
--- a/tool/lib/envutil.rb
+++ b/tool/lib/envutil.rb
@@ -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