rdp/ruby-prof — Issue #61: ruby-prof occasionally giving impossibly large times
Author: YenTheFirst
Created: 2011-10-26 05:05:31+00:00
State: open

using ruby 1.9.2-p290, running ruby-prof is giving me impossibly large times (on the order of 18446744072.67 seconds)

one way I've found to reproduce the issue:

create a ruby file, test.rb
loop {}

run
ruby-prof test.rb

after a few seconds, ctrl-c to stop the loop. it gives the following graph:

%self total self wait child calls name
100.00 18446744072.67 18446744072.67 0.00 0.00 1 Kernel#loop
0.00 18446744072.67 0.00 0.00 18446744072.67 1 Kernel#load
0.00 18446744072.67 0.00 0.00 18446744072.67 2 Global#[No method]
0.00 0.00 0.00 0.00 0.00 1 Class#new
0.00 0.00 0.00 0.00 0.00 8 Hash#default
0.00 0.00 0.00 0.00 0.00 1 Exception#initialize
0.00 0.00 0.00 0.00 0.00 3 Exception#backtrace
0.00 0.00 0.00 0.00 0.00 2 IO#set_encoding
0.00 0.00 0.00 0.00 0.00 1 Interrupt#initialize
0.00 0.00 0.00 0.00 0.00 1 SignalException#initialize
0.00 0.00 0.00 0.00 0.00 1 Exception#set_backtrace
0.00 0.00 0.00 0.00 0.00 1 #allocate
0.00 0.00 0.00 0.00 0.00 1 Exception#exception

(this is also occurring for me on programs that don't have infinite loops, but this was the most reliable way I had to reproduce the error)

also of note: every time, the impossibly large numbers are very close to 18446744072, i.e., +/- 1