[ruby-core:26523] [Bug #2330] Non systematic segmentation fault with autoload rubyspec

View: New views
4 Messages — Rating Filter:   Alert me  

[ruby-core:26523] [Bug #2330] Non systematic segmentation fault with autoload rubyspec

by Marc-Andre Lafortune-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bug #2330: Non systematic segmentation fault with autoload rubyspec
http://redmine.ruby-lang.org/issues/show/2330

Author: Marc-Andre Lafortune
Status: Open, Priority: Urgent
Assigned to: Yukihiro Matsumoto, Category: core, Target version: 1.9.2
ruby -v: ruby 1.9.2dev (2009-11-04 trunk 25641) [x86_64-darwin10.0.0]

Starting from r25601, the following rubyspec will crash about half of the time (just repeat a couple of times):

$ mspec -t rubydev core/kernel/autoload_spec.rb
ruby 1.9.2dev (2009-11-04 trunk 25641) [x86_64-darwin10.0.0]
.........../Users/work/mspec/lib/mspec/mocks/proxy.rb:8: [BUG] Segmentation fault
ruby 1.9.2dev (2009-11-04 trunk 25641) [x86_64-darwin10.0.0]

-- control frame ----------
c:0036 p:0024 s:0121 b:0121 l:000120 d:000120 METHOD /Users/work/mspec/lib/mspec/mocks/proxy.rb:8
c:0035 p:---- s:0115 b:0115 l:000114 d:000114 FINISH
c:0034 p:---- s:0113 b:0113 l:000112 d:000112 CFUNC  :autoload
c:0033 p:0057 s:0108 b:0108 l:000208 d:000107 BLOCK  /Users/work/ruby/dev/spec/rubyspec/core/kernel/autoload_spec.rb:105
c:0032 p:---- s:0105 b:0105 l:000104 d:000104 FINISH
c:0031 p:---- s:0103 b:0103 l:000102 d:000102 CFUNC  :instance_eval
c:0030 p:0017 s:0100 b:0100 l:000099 d:000099 METHOD /Users/work/mspec/lib/mspec/runner/mspec.rb:67
c:0029 p:0021 s:0094 b:0094 l:000081 d:000093 BLOCK  /Users/work/mspec/lib/mspec/runner/context.rb:135
c:0028 p:---- s:0091 b:0091 l:000090 d:000090 FINISH
c:0027 p:---- s:0089 b:0089 l:000084 d:000088 IFUNC  :instance_variable_get
c:0026 p:---- s:0087 b:0087 l:000086 d:000086 CFUNC  :each
c:0025 p:---- s:0085 b:0085 l:000084 d:000084 CFUNC  :all?
c:0024 p:0053 s:0082 b:0082 l:000081 d:000081 METHOD /Users/work/mspec/lib/mspec/runner/context.rb:135
c:0023 p:0101 s:0076 b:0076 l:000065 d:000075 BLOCK  /Users/work/mspec/lib/mspec/runner/context.rb:163
c:0022 p:---- s:0071 b:0071 l:000070 d:000070 FINISH
c:0021 p:---- s:0069 b:0069 l:000068 d:000068 CFUNC  :each
c:0020 p:0127 s:0066 b:0066 l:000065 d:000065 METHOD /Users/work/mspec/lib/mspec/runner/context.rb:155
c:0019 p:0109 s:0063 b:0063 l:000062 d:000062 METHOD /Users/work/mspec/lib/mspec/runner/mspec.rb:36
c:0018 p:0029 s:0056 b:0056 l:000055 d:000055 METHOD /Users/work/mspec/lib/mspec/runner/object.rb:11
c:0017 p:0167 s:0049 b:0049 l:000208 d:000208 TOP    /Users/work/ruby/dev/spec/rubyspec/core/kernel/autoload_spec.rb:69
c:0016 p:---- s:0047 b:0047 l:000046 d:000046 FINISH
<hangs>

mspec version: 1.5.12
rubyspec: current


----------------------------------------
http://redmine.ruby-lang.org


[ruby-core:26524] Re: [Bug #2330] Non systematic segmentation fault with autoload rubyspec

by Nobuyoshi Nakada-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

At Wed, 4 Nov 2009 14:36:14 +0900,
Marc-Andre Lafortune wrote in [ruby-core:26523]:
> Starting from r25601, the following rubyspec will crash about half of the time (just repeat a couple of times):
>
> $ mspec -t rubydev core/kernel/autoload_spec.rb
> ruby 1.9.2dev (2009-11-04 trunk 25641) [x86_64-darwin10.0.0]
> .........../Users/work/mspec/lib/mspec/mocks/proxy.rb:8: [BUG] Segmentation fault
> ruby 1.9.2dev (2009-11-04 trunk 25641) [x86_64-darwin10.0.0]

Worked fine 20 times.

$ make MSPECOPT=core/kernel/autoload_spec.rb test-rubyspec
./miniruby -I../src/lib -I../ext/common  ../src/tool/runruby.rb --extout=../ext  -- ../src/spec/mspec/bin/mspec run -B ../src/spec/default.mspec core/kernel/autoload_spec.rb
ruby 1.9.2dev (2009-11-02 trunk 25629) [x86_64-darwin9.8.0]
..............

Finished in 0.038309 seconds

1 file, 14 examples, 16 expectations, 0 failures, 0 errors

--
Nobu Nakada


[ruby-core:26537] [Bug #2330] Non systematic segmentation fault with autoload rubyspec

by Marc-Andre Lafortune-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue #2330 has been updated by Marc-Andre Lafortune.

Priority changed from Urgent to High

Can't reproduce on PowerBook with Leopard, nor on a MacBook Pro with Leopard.

On my Mac Pro with Snow Leopard, though, it's pretty systematic. I rebuilt the nightly download from scratch and got the same crash  Maybe a strange 64 bit issue?

I'll try tomorrow on a different machine with Snow Leopard.
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2330

----------------------------------------
http://redmine.ruby-lang.org


[ruby-core:26553] [Bug #2330] Non systematic segmentation fault with autoload rubyspec

by Marc-Andre Lafortune-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Issue #2330 has been updated by Marc-Andre Lafortune.


Reproduced on a MacBook Pro (thus a different processor) running Snow Leopard, same error.

Is there a compile option I can use to compile ruby in 32 bit instead of 64?
----------------------------------------
http://redmine.ruby-lang.org/issues/show/2330

----------------------------------------
http://redmine.ruby-lang.org