Open bernardnormier opened 6 months ago
I reverted the test to the previous code:
diff --git a/ruby/test/Ice/objects/AllTests.rb b/ruby/test/Ice/objects/AllTests.rb
index 5d712bc8b5..1bd404c5ce 100644
--- a/ruby/test/Ice/objects/AllTests.rb
+++ b/ruby/test/Ice/objects/AllTests.rb
@@ -40,15 +40,13 @@ end
def allTests(helper, communicator)
factory = MyValueFactory.new
- valueFactoryManager = communicator.getValueFactoryManager()
- test(valueFactoryManager != nil)
- valueFactoryManager.add(factory, '::Test::B')
- valueFactoryManager.add(factory, '::Test::C')
+ communicator.getValueFactoryManager().add(factory, '::Test::B')
+ communicator.getValueFactoryManager().add(factory, '::Test::C')
#communicator.getValueFactoryManager().add(factory, '::Test::D')
- valueFactoryManager.add(factory, '::Test::E')
- valueFactoryManager.add(factory, '::Test::F')
- valueFactoryManager.add(factory, '::Test::I')
- valueFactoryManager.add(factory, '::Test::J')
+ communicator.getValueFactoryManager().add(factory, '::Test::E')
+ communicator.getValueFactoryManager().add(factory, '::Test::F')
+ communicator.getValueFactoryManager().add(factory, '::Test::I')
+ communicator.getValueFactoryManager().add(factory, '::Test::J')
initial = Test::InitialPrx.new(communicator, "initial:#{helper.getTestEndpoint()}")
But I cannot reproduce, tested both debug and release builds with Ruby 3.3.4 macOS arm64
The Ice/objects ruby test occasionally crashes on macos on the first line of adding to the value factory manager: https://github.com/zeroc-ice/ice/blob/94ed83209787d3cb55f60318a9db5de1554a95c1/ruby/test/Ice/objects/AllTests.rb#L59
Reworking this test code slightly prevents the crash. That's what I did in #1923, but that's not a real fix.
Here is the full stack trace: