[ruby-core:118401] [Ruby master Bug#20599] TypeError: #<BaseMailer:0x00000000008070> is not a symbol nor a string since 4cbc41d5e5cb6793174d5964975fdb4470323ca1 with YJIT enabled

Issue #20599 has been reported by yahonda (Yasuo Honda). ---------------------------------------- Bug #20599: TypeError: #<BaseMailer:0x00000000008070> is not a symbol nor a string since 4cbc41d5e5cb6793174d5964975fdb4470323ca1 with YJIT enabled https://bugs.ruby-lang.org/issues/20599 * Author: yahonda (Yasuo Honda) * Status: Open * ruby -v: ruby 3.4.0dev (2024-06-26T20:01:26Z :detached: 4cbc41d5e5) [x86_64-linux] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- https://buildkite.com/rails/rails-nightly/builds/711#01905b80-6b82-460c-908d... ### Steps to reproduce ``` git clone https://github.com/rails/rails cd rails/actionmailer bundle install RUBY_YJIT_ENABLE=1 bin/test test/base_test.rb --seed 51482 ``` ### Expected behavior It should pass. ### Actual behavior It raises `TypeError: #<BaseMailer:0x00000000006cc0> is not a symbol nor a string` as follows. ```ruby ``` $ RUBY_YJIT_ENABLE=1 bin/test test/base_test.rb --seed 51482 Run options: --seed 51482 # Running: .............................E Error: BaseTest#test_explicit_multipart_with_one_template_has_the_expected_format: TypeError: #<BaseMailer:0x00000000006cc0> is not a symbol nor a string /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action' /home/yahonda/src/github.com/rails/rails/activesupport/lib/active_support/callbacks.rb:101:in 'ActiveSupport::Callbacks#run_callbacks' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process' lib/action_mailer/rescuable.rb:29:in 'block in ActionMailer::Rescuable#process' lib/action_mailer/rescuable.rb:21:in 'ActionMailer::Rescuable#handle_exceptions' lib/action_mailer/rescuable.rb:28:in 'ActionMailer::Rescuable#process' /home/yahonda/src/github.com/rails/rails/actionview/lib/action_view/rendering.rb:40:in 'ActionView::Rendering#process' lib/action_mailer/base.rb:657:in 'block in ActionMailer::Base#process' /home/yahonda/src/github.com/rails/rails/activesupport/lib/active_support/notifications.rb:212:in 'ActiveSupport::Notifications.instrument' lib/action_mailer/base.rb:656:in 'ActionMailer::Base#process' lib/action_mailer/message_delivery.rb:136:in 'block in ActionMailer::MessageDelivery#processed_mailer' <internal:kernel>:91:in 'Kernel#tap' lib/action_mailer/message_delivery.rb:135:in 'ActionMailer::MessageDelivery#processed_mailer' lib/action_mailer/message_delivery.rb:32:in 'ActionMailer::MessageDelivery#__getobj__' /home/yahonda/.rbenv/versions/trunk/lib/ruby/3.4.0+0/delegate.rb:84:in 'Delegator#method_missing' test/base_test.rb:538:in 'block in <class:BaseTest>' bin/test test/base_test.rb:536 E Error: BaseTest#test_explicit_multipart: TypeError: #<BaseMailer:0x00000000006d10> is not a symbol nor a string /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action' /home/yahonda/src/github.com/rails/rails/activesupport/lib/active_support/callbacks.rb:101:in 'ActiveSupport::Callbacks#run_callbacks' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process' lib/action_mailer/rescuable.rb:29:in 'block in ActionMailer::Rescuable#process' lib/action_mailer/rescuable.rb:21:in 'ActionMailer::Rescuable#handle_exceptions' lib/action_mailer/rescuable.rb:28:in 'ActionMailer::Rescuable#process' /home/yahonda/src/github.com/rails/rails/actionview/lib/action_view/rendering.rb:40:in 'ActionView::Rendering#process' lib/action_mailer/base.rb:657:in 'block in ActionMailer::Base#process' /home/yahonda/src/github.com/rails/rails/activesupport/lib/active_support/notifications.rb:212:in 'ActiveSupport::Notifications.instrument' lib/action_mailer/base.rb:656:in 'ActionMailer::Base#process' lib/action_mailer/message_delivery.rb:136:in 'block in ActionMailer::MessageDelivery#processed_mailer' <internal:kernel>:91:in 'Kernel#tap' lib/action_mailer/message_delivery.rb:135:in 'ActionMailer::MessageDelivery#processed_mailer' lib/action_mailer/message_delivery.rb:32:in 'ActionMailer::MessageDelivery#__getobj__' /home/yahonda/.rbenv/versions/trunk/lib/ruby/3.4.0+0/delegate.rb:84:in 'Delegator#method_missing' test/base_test.rb:468:in 'block in <class:BaseTest>' bin/test test/base_test.rb:466 .E ... snip ... 100 runs, 119 assertions, 1 failures, 52 errors, 0 skips ``` According to git bisect, this type error reported since 4cbc41d5e5cb6793174d5964975fdb4470323ca1 It does not reproduce without YJIT enabled like `$ bin/test test/base_test.rb --seed 51482` -- https://bugs.ruby-lang.org/

Issue #20599 has been updated by byroot (Jean Boussier). Assignee set to tenderlovemaking (Aaron Patterson) ---------------------------------------- Bug #20599: TypeError: #<BaseMailer:0x00000000008070> is not a symbol nor a string since 4cbc41d5e5cb6793174d5964975fdb4470323ca1 with YJIT enabled https://bugs.ruby-lang.org/issues/20599#change-108917 * Author: yahonda (Yasuo Honda) * Status: Open * Assignee: tenderlovemaking (Aaron Patterson) * ruby -v: ruby 3.4.0dev (2024-06-26T20:01:26Z :detached: 4cbc41d5e5) [x86_64-linux] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- https://buildkite.com/rails/rails-nightly/builds/711#01905b80-6b82-460c-908d... ### Steps to reproduce ``` git clone https://github.com/rails/rails cd rails/actionmailer bundle install RUBY_YJIT_ENABLE=1 bin/test test/base_test.rb --seed 51482 ``` ### Expected behavior It should pass. ### Actual behavior It raises `TypeError: #<BaseMailer:0x00000000006cc0> is not a symbol nor a string` as follows. ``` $ RUBY_YJIT_ENABLE=1 bin/test test/base_test.rb --seed 51482 Run options: --seed 51482 # Running: .............................E Error: BaseTest#test_explicit_multipart_with_one_template_has_the_expected_format: TypeError: #<BaseMailer:0x00000000006cc0> is not a symbol nor a string /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action' /home/yahonda/src/github.com/rails/rails/activesupport/lib/active_support/callbacks.rb:101:in 'ActiveSupport::Callbacks#run_callbacks' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process' lib/action_mailer/rescuable.rb:29:in 'block in ActionMailer::Rescuable#process' lib/action_mailer/rescuable.rb:21:in 'ActionMailer::Rescuable#handle_exceptions' lib/action_mailer/rescuable.rb:28:in 'ActionMailer::Rescuable#process' /home/yahonda/src/github.com/rails/rails/actionview/lib/action_view/rendering.rb:40:in 'ActionView::Rendering#process' lib/action_mailer/base.rb:657:in 'block in ActionMailer::Base#process' /home/yahonda/src/github.com/rails/rails/activesupport/lib/active_support/notifications.rb:212:in 'ActiveSupport::Notifications.instrument' lib/action_mailer/base.rb:656:in 'ActionMailer::Base#process' lib/action_mailer/message_delivery.rb:136:in 'block in ActionMailer::MessageDelivery#processed_mailer' <internal:kernel>:91:in 'Kernel#tap' lib/action_mailer/message_delivery.rb:135:in 'ActionMailer::MessageDelivery#processed_mailer' lib/action_mailer/message_delivery.rb:32:in 'ActionMailer::MessageDelivery#__getobj__' /home/yahonda/.rbenv/versions/trunk/lib/ruby/3.4.0+0/delegate.rb:84:in 'Delegator#method_missing' test/base_test.rb:538:in 'block in <class:BaseTest>' bin/test test/base_test.rb:536 E Error: BaseTest#test_explicit_multipart: TypeError: #<BaseMailer:0x00000000006d10> is not a symbol nor a string /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action' /home/yahonda/src/github.com/rails/rails/activesupport/lib/active_support/callbacks.rb:101:in 'ActiveSupport::Callbacks#run_callbacks' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process' lib/action_mailer/rescuable.rb:29:in 'block in ActionMailer::Rescuable#process' lib/action_mailer/rescuable.rb:21:in 'ActionMailer::Rescuable#handle_exceptions' lib/action_mailer/rescuable.rb:28:in 'ActionMailer::Rescuable#process' /home/yahonda/src/github.com/rails/rails/actionview/lib/action_view/rendering.rb:40:in 'ActionView::Rendering#process' lib/action_mailer/base.rb:657:in 'block in ActionMailer::Base#process' /home/yahonda/src/github.com/rails/rails/activesupport/lib/active_support/notifications.rb:212:in 'ActiveSupport::Notifications.instrument' lib/action_mailer/base.rb:656:in 'ActionMailer::Base#process' lib/action_mailer/message_delivery.rb:136:in 'block in ActionMailer::MessageDelivery#processed_mailer' <internal:kernel>:91:in 'Kernel#tap' lib/action_mailer/message_delivery.rb:135:in 'ActionMailer::MessageDelivery#processed_mailer' lib/action_mailer/message_delivery.rb:32:in 'ActionMailer::MessageDelivery#__getobj__' /home/yahonda/.rbenv/versions/trunk/lib/ruby/3.4.0+0/delegate.rb:84:in 'Delegator#method_missing' test/base_test.rb:468:in 'block in <class:BaseTest>' bin/test test/base_test.rb:466 .E ... snip ... 100 runs, 119 assertions, 1 failures, 52 errors, 0 skips ``` According to git bisect, this type error reported since 4cbc41d5e5cb6793174d5964975fdb4470323ca1 It does not reproduce without YJIT enabled like `$ bin/test test/base_test.rb --seed 51482` -- https://bugs.ruby-lang.org/

Issue #20599 has been updated by yahonda (Yasuo Honda). This issue does not reproduce since a2c27bae9653a817b4e5f699f421836f8f97410b . However, similar issue like 20588 happened again. https://buildkite.com/rails/rails-nightly/builds/727#01907019-eb31-495b-9b48... I'll file another issue later. ---------------------------------------- Bug #20599: TypeError: #<BaseMailer:0x00000000008070> is not a symbol nor a string since 4cbc41d5e5cb6793174d5964975fdb4470323ca1 with YJIT enabled https://bugs.ruby-lang.org/issues/20599#change-108928 * Author: yahonda (Yasuo Honda) * Status: Open * Assignee: tenderlovemaking (Aaron Patterson) * ruby -v: ruby 3.4.0dev (2024-06-26T20:01:26Z :detached: 4cbc41d5e5) [x86_64-linux] * Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED ---------------------------------------- https://buildkite.com/rails/rails-nightly/builds/711#01905b80-6b82-460c-908d... ### Steps to reproduce ``` git clone https://github.com/rails/rails cd rails/actionmailer bundle install RUBY_YJIT_ENABLE=1 bin/test test/base_test.rb --seed 51482 ``` ### Expected behavior It should pass. ### Actual behavior It raises `TypeError: #<BaseMailer:0x00000000006cc0> is not a symbol nor a string` as follows. ``` $ RUBY_YJIT_ENABLE=1 bin/test test/base_test.rb --seed 51482 Run options: --seed 51482 # Running: .............................E Error: BaseTest#test_explicit_multipart_with_one_template_has_the_expected_format: TypeError: #<BaseMailer:0x00000000006cc0> is not a symbol nor a string /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action' /home/yahonda/src/github.com/rails/rails/activesupport/lib/active_support/callbacks.rb:101:in 'ActiveSupport::Callbacks#run_callbacks' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process' lib/action_mailer/rescuable.rb:29:in 'block in ActionMailer::Rescuable#process' lib/action_mailer/rescuable.rb:21:in 'ActionMailer::Rescuable#handle_exceptions' lib/action_mailer/rescuable.rb:28:in 'ActionMailer::Rescuable#process' /home/yahonda/src/github.com/rails/rails/actionview/lib/action_view/rendering.rb:40:in 'ActionView::Rendering#process' lib/action_mailer/base.rb:657:in 'block in ActionMailer::Base#process' /home/yahonda/src/github.com/rails/rails/activesupport/lib/active_support/notifications.rb:212:in 'ActiveSupport::Notifications.instrument' lib/action_mailer/base.rb:656:in 'ActionMailer::Base#process' lib/action_mailer/message_delivery.rb:136:in 'block in ActionMailer::MessageDelivery#processed_mailer' <internal:kernel>:91:in 'Kernel#tap' lib/action_mailer/message_delivery.rb:135:in 'ActionMailer::MessageDelivery#processed_mailer' lib/action_mailer/message_delivery.rb:32:in 'ActionMailer::MessageDelivery#__getobj__' /home/yahonda/.rbenv/versions/trunk/lib/ruby/3.4.0+0/delegate.rb:84:in 'Delegator#method_missing' test/base_test.rb:538:in 'block in <class:BaseTest>' bin/test test/base_test.rb:536 E Error: BaseTest#test_explicit_multipart: TypeError: #<BaseMailer:0x00000000006d10> is not a symbol nor a string /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/base.rb:226:in 'AbstractController::Base#process_action' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/callbacks.rb:261:in 'block in AbstractController::Callbacks#process_action' /home/yahonda/src/github.com/rails/rails/activesupport/lib/active_support/callbacks.rb:101:in 'ActiveSupport::Callbacks#run_callbacks' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/callbacks.rb:260:in 'AbstractController::Callbacks#process_action' /home/yahonda/src/github.com/rails/rails/actionpack/lib/abstract_controller/base.rb:163:in 'AbstractController::Base#process' lib/action_mailer/rescuable.rb:29:in 'block in ActionMailer::Rescuable#process' lib/action_mailer/rescuable.rb:21:in 'ActionMailer::Rescuable#handle_exceptions' lib/action_mailer/rescuable.rb:28:in 'ActionMailer::Rescuable#process' /home/yahonda/src/github.com/rails/rails/actionview/lib/action_view/rendering.rb:40:in 'ActionView::Rendering#process' lib/action_mailer/base.rb:657:in 'block in ActionMailer::Base#process' /home/yahonda/src/github.com/rails/rails/activesupport/lib/active_support/notifications.rb:212:in 'ActiveSupport::Notifications.instrument' lib/action_mailer/base.rb:656:in 'ActionMailer::Base#process' lib/action_mailer/message_delivery.rb:136:in 'block in ActionMailer::MessageDelivery#processed_mailer' <internal:kernel>:91:in 'Kernel#tap' lib/action_mailer/message_delivery.rb:135:in 'ActionMailer::MessageDelivery#processed_mailer' lib/action_mailer/message_delivery.rb:32:in 'ActionMailer::MessageDelivery#__getobj__' /home/yahonda/.rbenv/versions/trunk/lib/ruby/3.4.0+0/delegate.rb:84:in 'Delegator#method_missing' test/base_test.rb:468:in 'block in <class:BaseTest>' bin/test test/base_test.rb:466 .E ... snip ... 100 runs, 119 assertions, 1 failures, 52 errors, 0 skips ``` According to git bisect, this type error reported since 4cbc41d5e5cb6793174d5964975fdb4470323ca1 It does not reproduce without YJIT enabled like `$ bin/test test/base_test.rb --seed 51482` -- https://bugs.ruby-lang.org/
participants (2)
-
byroot (Jean Boussier)
-
yahonda (Yasuo Honda)