Issue #11658 has been updated by Hiroshi Shirosaki.


I found a test that causes deadlock.

~~~
diff --git a/test/ruby/test_autoload.rb b/test/ruby/test_autoload.rb
index 719502d..a672e0b 100644
--- a/test/ruby/test_autoload.rb
+++ b/test/ruby/test_autoload.rb
@@ -215,6 +215,25 @@ p Foo::Bar
     end
   end

+  def test_autoload_while_autoloading
+    ruby_impl_require do |called_with|
+      Tempfile.create(%w(a .rb)) do |a|
+        Tempfile.create(%w(b .rb)) do |b|
+          a.puts "require '#{b.path}'; class AutoloadTest; end"
+          b.puts "class AutoloadTest; module B; end; end"
+          [a, b].each(&:flush)
+          add_autoload(a.path)
+          begin
+            assert(Object::AutoloadTest)
+          ensure
+            remove_autoload_constant
+          end
+          assert_equal [a.path, b.path], called_with
+        end
+      end
+    end
+  end
+
   def add_autoload(path)
     (@autoload_paths ||= []) << path
     ::Object.class_eval {autoload(:AutoloadTest, path)}
~~~

----------------------------------------
Bug #11658: Segmentation fault with activeadmin test suite
https://bugs.ruby-lang.org/issues/11658#change-54760

* Author: Hiroshi SHIBATA
* Status: Assigned
* Priority: Normal
* Assignee: Eric Wong
* ruby -v: ruby 2.3.0dev (2015-11-04 trunk 52452) [x86_64-darwin15]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
I detect causes of SEGV with Ruby 2.3.0 HEAD and activeadmin-1.0.0.pre2 after r52332.

Please try following instructions with ruby of r52332.

```sh
$ gem install bundler
$ git clone --branch v1.0.0.pre2 https://github.com/activeadmin/activeadmin
$ cd activeadmin
$ bundle exec rspec spec/unit/active_admin_spec.rb
```

this segv is happened at launching rails server too. I attached crash log.

Please investigate this.



---Files--------------------------------
ruby_2015-11-05-115449_osx.crash (19.2 KB)


-- 
https://bugs.ruby-lang.org/