michaeledgar/laser

Getting stacktrace for anything I do

JoshCheek opened this issue · 0 comments

Hi, I'm on Mac OSX Lion, using Ruby 1.9.2 (tried on p180 and p290)

When I try to do anything (ie laser -h) I wind up with a stack trace.

I want to recommend it to someone on the ML who is wanting static arity analysis in their tests, but I'm not comfortable recommending it if breaks for me.

Here is an example:

$ laser -h
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations/comment_attachment_annotation.rb:40: [BUG] Bus Error
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin11.0.0]

-- control frame ----------
c:0028 p:---- s:0095 b:0095 l:000640 d:000640 CFUNC  :next
c:0027 p:0020 s:0092 b:0092 l:000091 d:000091 METHOD /Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations/comment_attachment_annotatio
c:0026 p:0020 s:0087 b:0087 l:000077 d:000086 BLOCK  /Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations/comment_attachment_annotatio
c:0025 p:---- s:0083 b:0083 l:000082 d:000082 FINISH
c:0024 p:---- s:0081 b:0081 l:000080 d:000080 CFUNC  :each
c:0023 p:0037 s:0078 b:0078 l:000077 d:000077 METHOD /Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations/comment_attachment_annotatio
c:0022 p:0122 s:0071 b:0071 l:000051 d:000070 BLOCK  /Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations.rb:29
c:0021 p:---- s:0065 b:0065 l:000064 d:000064 FINISH
c:0020 p:---- s:0063 b:0063 l:000062 d:000062 CFUNC  :each
c:0019 p:0011 s:0060 b:0060 l:000051 d:000059 BLOCK  /Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations.rb:23
c:0018 p:---- s:0057 b:0057 l:000056 d:000056 FINISH
c:0017 p:---- s:0055 b:0055 l:000054 d:000054 CFUNC  :each
c:0016 p:0017 s:0052 b:0052 l:000051 d:000051 METHOD /Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations.rb:22
c:0015 p:0028 s:0048 b:0048 l:000047 d:000047 METHOD /Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations.rb:14
c:0014 p:0026 s:0043 b:0043 l:000032 d:000042 BLOCK  /Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/bootstrap/bootstrap.rb:255
c:0013 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0012 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC  :tap
c:0011 p:0038 s:0033 b:0033 l:000032 d:000032 METHOD /Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/bootstrap/bootstrap.rb:250
c:0010 p:0873 s:0030 b:0030 l:000029 d:000029 TOP    /Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser.rb:99
c:0009 p:---- s:0028 b:0028 l:000027 d:000027 FINISH
c:0008 p:---- s:0026 b:0026 l:000025 d:000025 CFUNC  :require
c:0007 p:0053 s:0022 b:0022 l:000021 d:000021 METHOD /Users/joshuajcheek/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36
c:0006 p:0054 s:0015 b:0015 l:000014 d:000014 TOP    /Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/bin/laser:6
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC  :load
c:0003 p:0127 s:0007 b:0007 l:0025d8 d:000440 EVAL   /Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/bin/laser:19
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0025d8 d:0025d8 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/bin/laser:19:in `<main>'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/bin/laser:19:in `load'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/bin/laser:6:in `<top (required)>'
/Users/joshuajcheek/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/joshuajcheek/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser.rb:99:in `<top (required)>'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/bootstrap/bootstrap.rb:250:in `load_standard_library'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/bootstrap/bootstrap.rb:250:in `tap'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/bootstrap/bootstrap.rb:255:in `block in load_standard_library'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations.rb:14:in `annotate_inputs'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations.rb:22:in `apply_inherited_attributes'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations.rb:22:in `each'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations.rb:23:in `block in apply_inherited_attributes'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations.rb:23:in `each'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations.rb:29:in `block (2 levels) in apply_inherited_attributes'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations/comment_attachment_annotation.rb:21:in `annotate_with_text'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations/comment_attachment_annotation.rb:21:in `each'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations/comment_attachment_annotation.rb:23:in `block in annotate_with_text'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations/comment_attachment_annotation.rb:40:in `dfs_for_useful_node'
/Users/joshuajcheek/.rvm/gems/ruby-1.9.2-p180/gems/laser-0.7.0.pre2/lib/laser/analysis/annotations/comment_attachment_annotation.rb:40:in `next'

-- C level backtrace information -------------------------------------------
0   libruby.1.9.1.dylib                 0x000000010f82762e rb_vm_bugreport + 110
1   libruby.1.9.1.dylib                 0x000000010f71b493 report_bug + 259
2   libruby.1.9.1.dylib                 0x000000010f71b601 rb_bug + 161
3   libruby.1.9.1.dylib                 0x000000010f7be0a2 sigbus + 18
4   libsystem_c.dylib                   0x00007fff8e81dcfa _sigtramp + 26
5   ???                                 0x0000000000000004 0x0 + 4

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort trap: 6