Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

`rake test` segfaults on 1.9.2 #52

Closed
vangberg opened this Issue · 4 comments

2 participants

@vangberg

Running rake test with 1.9.2p0 on Mac OS X 10.6 I get a segfault:

(in /Users/harry/code/sinatra)
Loaded suite /Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
.............................................................................................................................................................................................................................................................................../Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/showexceptions.rb:46: [BUG] Segmentation fault
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]

-- control frame ----------
c:0031 p:---- s:0134 b:0134 l:000133 d:000133 CFUNC  :readlines
c:0030 p:0126 s:0130 b:0130 l:000118 d:000129 BLOCK  /Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/showexceptions.rb:46
c:0029 p:---- s:0124 b:0124 l:000123 d:000123 FINISH
c:0028 p:---- s:0122 b:0122 l:000121 d:000121 CFUNC  :map
c:0027 p:0071 s:0119 b:0119 l:000118 d:000118 METHOD /Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/showexceptions.rb:37
c:0026 p:0072 s:0111 b:0111 l:000107 d:000110 BLOCK  /Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/showexceptions.rb:26
c:0025 p:0016 s:0108 b:0108 l:000107 d:000107 METHOD /Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/showexceptions.rb:24
c:0024 p:0155 s:0102 b:0102 l:000101 d:000101 METHOD /Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/methodoverride.rb:24
c:0023 p:0018 s:0096 b:0096 l:001260 d:000095 BLOCK  /Users/harry/code/sinatra/lib/sinatra/base.rb:995
c:0022 p:0032 s:0094 b:0094 l:000093 d:000093 METHOD /Users/harry/code/sinatra/lib/sinatra/base.rb:1021
c:0021 p:0011 s:0090 b:0090 l:001260 d:001260 METHOD /Users/harry/code/sinatra/lib/sinatra/base.rb:995
c:0020 p:0103 s:0086 b:0086 l:001a20 d:001a20 METHOD /Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lint.rb:48
c:0019 p:0022 s:0080 b:0080 l:000079 d:000079 METHOD /Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lint.rb:36
c:0018 p:0084 s:0076 b:0076 l:000075 d:000075 METHOD /Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-test-0.5.4/lib/rack/mock_session.rb:30
c:0017 p:0068 s:0068 b:0068 l:000067 d:000067 METHOD /Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-test-0.5.4/lib/rack/test.rb:207
c:0016 p:0056 s:0062 b:0062 l:000061 d:000061 METHOD /Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-test-0.5.4/lib/rack/test.rb:57
c:0015 p:0025 s:0055 b:0055 l:000054 d:000054 METHOD /Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/forwardable.rb:182
c:0014 p:0051 s:0050 b:0050 l:001788 d:0006a0 LAMBDA /Users/harry/code/sinatra/test/settings_test.rb:196
c:0013 p:---- s:0047 b:0047 l:000046 d:000046 FINISH
c:0012 p:0063 s:0045 b:0045 l:0014d0 d:0014d0 METHOD /Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:680
c:0011 p:0091 s:0039 b:0039 l:000020 d:000038 BLOCK  /Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:641
c:0010 p:---- s:0034 b:0034 l:000033 d:000033 FINISH
c:0009 p:---- s:0032 b:0032 l:000031 d:000031 CFUNC  :each
c:0008 p:0026 s:0029 b:0029 l:000020 d:000028 BLOCK  /Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:635
c:0007 p:---- s:0026 b:0026 l:000025 d:000025 FINISH
c:0006 p:---- s:0024 b:0024 l:000023 d:000023 CFUNC  :each
c:0005 p:0082 s:0021 b:0021 l:000020 d:000020 METHOD /Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:634
c:0004 p:0188 s:0016 b:0016 l:000015 d:000015 METHOD /Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:594
c:0003 p:0041 s:0007 b:0007 l:0012e8 d:000006 BLOCK  /Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:492
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:001598 d:001598 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
/Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:492:in `block in autorun'
/Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:594:in `run'
/Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:634:in `run_test_suites'
/Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:634:in `each'
/Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:635:in `block in run_test_suites'
/Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:635:in `each'
/Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:641:in `block (2 levels) in run_test_suites'
/Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/minitest/unit.rb:680:in `run'
/Users/harry/code/sinatra/test/settings_test.rb:196:in `block (2 levels) in <class:SettingsTest>'
/Users/harry/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/forwardable.rb:182:in `get'
/Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-test-0.5.4/lib/rack/test.rb:57:in `get'
/Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-test-0.5.4/lib/rack/test.rb:207:in `process_request'
/Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-test-0.5.4/lib/rack/mock_session.rb:30:in `request'
/Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lint.rb:36:in `call'
/Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/lint.rb:48:in `_call'
/Users/harry/code/sinatra/lib/sinatra/base.rb:995:in `call'
/Users/harry/code/sinatra/lib/sinatra/base.rb:1021:in `synchronize'
/Users/harry/code/sinatra/lib/sinatra/base.rb:995:in `block in call'
/Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/methodoverride.rb:24:in `call'
/Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/showexceptions.rb:24:in `call'
/Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/showexceptions.rb:26:in `rescue in call'
/Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/showexceptions.rb:37:in `pretty'
/Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/showexceptions.rb:37:in `map'
/Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/showexceptions.rb:46:in `block in pretty'
/Users/harry/.rvm/gems/ruby-1.9.2-p0/gems/rack-1.2.1/lib/rack/showexceptions.rb:46:in `readlines'

-- C level backtrace information -------------------------------------------

[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

rake aborted!
Command failed with status (): [/Users/harry/.rvm/rubies/ruby-1.9.2-p0/bin...]

(See full trace by running task with --trace)

When I run the tests individually (for x in test/*_test.rb; ruby -Ilib -Itest -I. $x;) there are no segfaults.

I haven't had the change to try this on another machine.

@rkh
Owner
rkh commented

Can reproduce this.

@rkh
Owner
rkh commented

You can run all tests but settings_test.rb at once.

@rkh
Owner
rkh commented

Fixed by #56.

@rkh
Owner

Fix has been merged.

@7stud 7stud referenced this issue from a commit in 7stud/sinatra
@rkh rkh public_directory => public_folder, fixes #52 ea9abb3
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.