Last active
December 17, 2015 16:29
-
-
Save lmarburger/5639365 to your computer and use it in GitHub Desktop.
rblineprof segfault
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rblineprof' | |
run lambda {|env| | |
lineprof(/./) do | |
(0..10).map do |i| | |
Thread.new(i) do | |
print "#{i}\n" | |
end | |
end.each(&:join) | |
end | |
[200, {}, ['success']] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'rack' | |
gem 'rblineprof', github: 'lmarburger/rblineprof', branch: 'protect-null-frame' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIT | |
remote: git://github.com/lmarburger/rblineprof.git | |
revision: 80b907c485bf17d1a0fd3d1933675fb05031168c | |
branch: protect-null-frame | |
specs: | |
rblineprof (0.3.2) | |
debugger-ruby_core_source (~> 1.2) | |
GEM | |
remote: https://rubygems.org/ | |
specs: | |
debugger-ruby_core_source (1.2.2) | |
rack (1.5.2) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
rack | |
rblineprof! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ruby -v | |
ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-darwin12.3.0] | |
$ rackup | |
[2013-05-23 22:02:33] INFO WEBrick 1.3.1 | |
[2013-05-23 22:02:33] INFO ruby 1.9.3 (2013-05-15) [x86_64-darwin12.3.0] | |
[2013-05-23 22:02:33] INFO WEBrick::HTTPServer#start: pid=84004 port=9292 | |
2 | |
5 | |
7 | |
8 | |
0 | |
1 | |
/Users/Larry/tmp/rblineprof-puma/config.ru:4: [BUG] Segmentation fault | |
ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-darwin12.3.0] | |
-- Control frame information ----------------------------------------------- | |
c:0020 p:---- s:0106 b:0106 l:001c10 d:000105 IFUNC | |
c:0019 p:---- s:0104 b:0104 l:000103 d:000103 CFUNC :each | |
c:0018 p:0020 s:0101 b:0101 l:000b18 d:002188 BLOCK /Users/Larry/tmp/rblineprof-puma/config.ru:4 | |
c:0017 p:---- s:0099 b:0099 l:000098 d:000098 FINISH | |
c:0016 p:---- s:0097 b:0097 l:000096 d:000096 CFUNC :lineprof | |
c:0015 p:0011 s:0093 b:0093 l:000b18 d:000040 LAMBDA /Users/Larry/tmp/rblineprof-puma/config.ru:3 | |
c:0014 p:---- s:0090 b:0090 l:000089 d:000089 FINISH | |
c:0013 p:---- s:0088 b:0088 l:000087 d:000087 CFUNC :call | |
c:0012 p:0103 s:0084 b:0084 l:000ef0 d:000ef0 METHOD /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/lint.rb:49 | |
c:0011 p:0022 s:0078 b:0078 l:000077 d:000077 METHOD /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/lint.rb:37 | |
c:0010 p:0015 s:0074 b:0074 l:000073 d:000073 METHOD /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/showexceptions.rb:24 | |
c:0009 p:0032 s:0066 b:0066 l:000065 d:000065 METHOD /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/commonlogger.rb:33 | |
c:0008 p:0015 s:0058 b:0058 l:000057 d:000057 METHOD /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/chunked.rb:43 | |
c:0007 p:0015 s:0051 b:0051 l:000050 d:000050 METHOD /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/content_length.rb:14 | |
c:0006 p:0356 s:0042 b:0042 l:000041 d:000041 METHOD /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60 | |
c:0005 p:0257 s:0030 b:0030 l:000029 d:000029 METHOD /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpserver.rb:138 | |
c:0004 p:0393 s:0020 b:0020 l:000019 d:000019 METHOD /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpserver.rb:94 | |
c:0003 p:0126 s:0009 b:0009 l:002138 d:000008 BLOCK /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/server.rb:191 | |
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH | |
c:0001 p:---- s:0002 b:0002 l:000001 d:000001 TOP | |
-- Ruby level backtrace information ---------------------------------------- | |
/Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread' | |
/Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run' | |
/Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service' | |
/Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service' | |
/Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call' | |
/Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/chunked.rb:43:in `call' | |
/Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:in `call' | |
/Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/showexceptions.rb:24:in `call' | |
/Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/lint.rb:37:in `call' | |
/Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/lint.rb:49:in `_call' | |
/Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/lint.rb:49:in `call' | |
/Users/Larry/tmp/rblineprof-puma/config.ru:3:in `block (2 levels) in <main>' | |
/Users/Larry/tmp/rblineprof-puma/config.ru:3:in `lineprof' | |
/Users/Larry/tmp/rblineprof-puma/config.ru:4:in `block (3 levels) in <main>' | |
/Users/Larry/tmp/rblineprof-puma/config.ru:4:in `each' | |
-- C level backtrace information ------------------------------------------- | |
See Crash Report log file under ~/Library/Logs/CrashReporter or | |
/Library/Logs/CrashReporter, for the more detail of. | |
-- Other runtime information ----------------------------------------------- | |
* Loaded script: ./vendor/bundle/bin/rackup | |
* Loaded features: | |
0 enumerator.so | |
1 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/x86_64-darwin12.3.0/enc/encdb.bundle | |
2 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/x86_64-darwin12.3.0/enc/trans/transdb.bundle | |
3 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/defaults.rb | |
4 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/x86_64-darwin12.3.0/rbconfig.rb | |
5 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/deprecate.rb | |
6 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/exceptions.rb | |
7 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/custom_require.rb | |
8 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems.rb | |
9 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/bundler/setup.rb | |
10 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/x86_64-darwin12.3.0/etc.bundle | |
11 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/fileutils.rb | |
12 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/set.rb | |
13 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/delegate.rb | |
14 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/tmpdir.rb | |
15 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/thread.rb | |
16 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/tempfile.rb | |
17 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/multipart.rb | |
18 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/x86_64-darwin12.3.0/date_core.bundle | |
19 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/date/format.rb | |
20 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/date.rb | |
21 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/time.rb | |
22 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/uri/common.rb | |
23 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/utils.rb | |
24 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack.rb | |
25 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/optparse.rb | |
26 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/server.rb | |
27 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/builder.rb | |
28 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/bundler/gems/rblineprof-80b907c485bf/lib/rblineprof.bundle | |
29 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/content_length.rb | |
30 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/chunked.rb | |
31 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/ostruct.rb | |
32 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/x86_64-darwin12.3.0/strscan.bundle | |
33 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/erb.rb | |
34 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/request.rb | |
35 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/showexceptions.rb | |
36 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/forwardable.rb | |
37 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/lint.rb | |
38 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/handler.rb | |
39 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/version.rb | |
40 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/requirement.rb | |
41 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/platform.rb | |
42 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/specification.rb | |
43 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/path_support.rb | |
44 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/rubygems/dependency.rb | |
45 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/compat.rb | |
46 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/version.rb | |
47 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpversion.rb | |
48 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/x86_64-darwin12.3.0/socket.bundle | |
49 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/socket.rb | |
50 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httputils.rb | |
51 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/x86_64-darwin12.3.0/fcntl.bundle | |
52 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/timeout.rb | |
53 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/singleton.rb | |
54 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/utils.rb | |
55 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/log.rb | |
56 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/config.rb | |
57 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/server.rb | |
58 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/accesslog.rb | |
59 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/htmlutils.rb | |
60 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/cookie.rb | |
61 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpstatus.rb | |
62 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/uri/generic.rb | |
63 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/uri/ftp.rb | |
64 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/uri/http.rb | |
65 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/uri/https.rb | |
66 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/uri/ldap.rb | |
67 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/uri/ldaps.rb | |
68 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/uri/mailto.rb | |
69 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/uri.rb | |
70 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httprequest.rb | |
71 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpresponse.rb | |
72 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpservlet/abstract.rb | |
73 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpservlet/filehandler.rb | |
74 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpservlet/cgihandler.rb | |
75 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpservlet/erbhandler.rb | |
76 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpservlet/prochandler.rb | |
77 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpservlet.rb | |
78 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpserver.rb | |
79 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpauth/authenticator.rb | |
80 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpauth/basicauth.rb | |
81 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/x86_64-darwin12.3.0/digest.bundle | |
82 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/digest.rb | |
83 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/x86_64-darwin12.3.0/digest/md5.bundle | |
84 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/x86_64-darwin12.3.0/digest/sha1.bundle | |
85 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpauth/digestauth.rb | |
86 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpauth/userdb.rb | |
87 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpauth/htpasswd.rb | |
88 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpauth/htdigest.rb | |
89 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpauth/htgroup.rb | |
90 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick/httpauth.rb | |
91 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/webrick.rb | |
92 /Users/Larry/.rbenv/versions/1.9.3-p429/lib/ruby/1.9.1/x86_64-darwin12.3.0/stringio.bundle | |
93 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/handler/webrick.rb | |
94 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/body_proxy.rb | |
95 /Users/Larry/tmp/rblineprof-puma/vendor/bundle/gems/rack-1.5.2/lib/rack/commonlogger.rb | |
[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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment