pry / pry-stack_explorer

Walk the stack in a Pry session
Other
454 stars 28 forks source link

Segfault on 1.9.3p429 when using pry_remote #15

Closed jcamelon closed 4 years ago

jcamelon commented 11 years ago

When I connect with pry-remote on an rspec run, I get the following segfault, 80% of the time.

Let me know if this is enough info.

[pry-remote] Waiting for client on druby://127.0.0.1:9876 [pry-remote] Client received, starting remote session /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-stack_explorer-0.4.9/lib/pry-stack_explorer/when_started_hook.rb:6: [BUG] Segmentation fault ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-darwin12.4.0]

-- Control frame information ----------------------------------------------- c:0040 p:---- s:0160 b:0160 l:000159 d:000159 CFUNC :callers c:0039 p:0017 s:0157 b:0157 l:002708 d:002708 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-stack_explorer-0.4.9/lib/pry-stack_explorer/when_starte c:0038 p:0122 s:0152 b:0152 l:000238 d:000238 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-stack_explorer-0.4.9/lib/pry-stack_explorer/when_starte c:0037 p:0019 s:0145 b:0145 l:000390 d:000470 BLOCK /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-0.9.12.2/lib/pry/hooks.rb:154 c:0036 p:---- s:0140 b:0140 l:000139 d:000139 FINISH c:0035 p:---- s:0138 b:0138 l:000137 d:000137 CFUNC :map c:0034 p:0016 s:0135 b:0135 l:000390 d:0003f8 BLOCK /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-0.9.12.2/lib/pry/hooks.rb:152 c:0033 p:0020 s:0133 b:0133 l:000790 d:000790 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-0.9.12.2/lib/pry/helpers/base_helpers.rb:12 c:0032 p:0049 s:0129 b:0129 l:000390 d:000390 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-0.9.12.2/lib/pry/hooks.rb:151 c:0031 p:0042 s:0123 b:0123 l:0009d8 d:0009d8 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-0.9.12.2/lib/pry/pry_instance.rb:496 c:0030 p:0210 s:0116 b:0116 l:000b38 d:000b38 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-0.9.12.2/lib/pry/pry_class.rb:155 c:0029 p:0015 s:0109 b:0109 l:002678 d:000c78 BLOCK /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-debugger-0.2.2/lib/pry-debugger/pry_ext.rb:15 c:0028 p:0005 s:0107 b:0107 l:000de0 d:000e48 BLOCK /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-debugger-0.2.2/lib/pry-debugger/processor.rb:18 c:0027 p:---- s:0105 b:0105 l:000104 d:000104 FINISH c:0026 p:---- s:0103 b:0103 l:000102 d:000102 CFUNC :catch c:0025 p:0022 s:0099 b:0099 l:000de0 d:000de0 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-debugger-0.2.2/lib/pry-debugger/processor.rb:17 c:0024 p:0100 s:0091 b:0091 l:002678 d:002678 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-debugger-0.2.2/lib/pry-debugger/pry_ext.rb:14 c:0023 p:0062 s:0086 b:0086 l:001148 d:001148 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-remote-0.1.7/lib/pry-remote.rb:199 c:0022 p:0052 s:0083 b:0083 l:001298 d:001298 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/pry-remote-0.1.7/lib/pry-remote.rb:284 c:0021 p:0027 s:0078 b:0078 l:002528 d:001b40 BLOCK /Users/jcamelon/git/feo_tools/spec/models/ghost_status_spec.rb:31 c:0020 p:---- s:0075 b:0075 l:000074 d:000074 FINISH c:0019 p:---- s:0073 b:0073 l:000072 d:000072 CFUNC :instance_eval c:0018 p:0026 s:0070 b:0070 l:000720 d:0014c0 BLOCK /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example.rb:114 c:0017 p:0024 s:0067 b:0067 l:001618 d:001618 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example.rb:254 c:0016 p:0059 s:0062 b:0062 l:000720 d:000720 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example.rb:111 c:0015 p:0071 s:0056 b:0056 l:001840 d:0018c0 BLOCK /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:390 c:0014 p:---- s:0051 b:0051 l:000050 d:000050 FINISH c:0013 p:---- s:0049 b:0049 l:000048 d:000048 CFUNC :map c:0012 p:0023 s:0046 b:0046 l:001840 d:001840 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:386 c:0011 p:0096 s:0042 b:0042 l:001c28 d:001c28 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:371 c:0010 p:0014 s:0035 b:0035 l:001d78 d:001e50 BLOCK /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:28 c:0009 p:---- s:0032 b:0032 l:000031 d:000031 FINISH c:0008 p:---- s:0030 b:0030 l:000029 d:000029 CFUNC :map c:0007 p:0041 s:0027 b:0027 l:001d78 d:001de0 BLOCK /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:28 c:0006 p:0025 s:0024 b:0024 l:0020d8 d:0020d8 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/reporter.rb:34 c:0005 p:0136 s:0019 b:0019 l:001d78 d:001d78 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:25 c:0004 p:0137 s:0014 b:0014 l:002318 d:002318 METHOD /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80 c:0003 p:0054 s:0007 b:0007 l:001828 d:000006 BLOCK /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17 c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH c:0001 p:0000 s:0002 b:0002 l:0013b8 d:0013b8 TOP

-- Ruby level backtrace information ---------------------------------------- /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in block in autorun' /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:inrun' /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:25:in run' /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/reporter.rb:34:inreport' /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:28:in block in run' /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:28:inmap' /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:28:in block (2 levels) in run' /Users/jcamelon/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/rspec-core-2.13.1/lib/rspec/core/example_group.rb:371:inrun'

banister commented 11 years ago

What if you use ruby 2.0 ?

jcamelon commented 11 years ago

Ruby 2.0 works.