Public bug reported: I have verified that under specific circumstances, 'require' can behave differently between ppc64el and other architectures.
Simple reproducer: $ cat > foo.rb << __EOF__ begin require 'bar' rescue LoadError puts "Caught first LoadError. Continuing..." end puts require 'bar' __EOF__ $ cat > bar.rb << __EOF__ require 'baz' __EOF__ $ ruby3.0 -I . foo.rb On ppc64el, you will see: Caught first LoadError. Continuing... false On non-ppc64el, you will see: Caught first LoadError. Continuing... <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in `require': cannot load such file -- baz (LoadError) Did you mean? bar from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in `require' from /home/ubuntu/bar.rb:1:in `<top (required)>' from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in `require' from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:86:in `require' from foo.rb:7:in `<main>' ** Affects: ruby3.0 (Ubuntu) Importance: High Status: Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1959628 Title: "require" behaves differently on ppc64el during certain conditions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ruby3.0/+bug/1959628/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs