From: "Benoit_Tigeot (Benoit Tigeot) via ruby-core" Date: 2025-01-15T22:38:08+00:00 Subject: [ruby-core:120709] [Ruby master Bug#21021] "try to mark T_NONE object" with 3.4.1 Issue #21021 has been updated by Benoit_Tigeot (Benoit Tigeot). tenderlovemaking (Aaron Patterson) wrote in #note-8: > Do you know if any of the code in your Ruby level backtrace are using WeakMaps? I see no matching between the two ``` ~/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems ��� rg WeakMap -g '*.rb' --max-count 1 debug-1.10.0/lib/debug/source_repository.rb 32: @cmap = ObjectSpace::WeakMap.new bundler-2.6.2/lib/bundler/vendor/connection_pool/lib/connection_pool.rb 49: INSTANCES = ObjectSpace::WeakMap.new connection_pool-2.5.0/lib/connection_pool.rb 49: INSTANCES = ObjectSpace::WeakMap.new activerecord-7.2.2.1/lib/active_record/connection_adapters/pool_config.rb 16: INSTANCES = ObjectSpace::WeakMap.new activerecord-7.2.2.1/lib/active_record/connection_adapters/abstract/transaction.rb 190: @lazy_enrollment_records ||= ObjectSpace::WeakMap.new mustermann-3.0.3/lib/mustermann/equality_map.rb 3:[Omitted long line with 1 matches] sorbet-runtime-0.5.11751/lib/types/types/typed_array.rb 32: ObjectSpace::WeakMap.new[1] = 1 sorbet-runtime-0.5.11751/lib/types/types/typed_class.rb 50: ObjectSpace::WeakMap.new[1] = 1 sorbet-runtime-0.5.11751/lib/types/types/simple.rb 81: ObjectSpace::WeakMap.new[1] = 1 activesupport-7.2.2.1/lib/active_support/descendants_tracker.rb 18: # On MRI `ObjectSpace::WeakMap` keys are weak references. drb-2.2.1/lib/drb/weakidconv.rb 17: @map = ObjectSpace::WeakMap.new ``` Thanks Alan for the detailed guide. I was able to use `YJIT dev`, get a crash but the output seems to be quite similar at first sight. I have a valid version ``` $ ruby --yjit -v ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT dev +PRISM [x86_64-linux] ``` Here is a dump https://gist.github.com/benoittgt/74d83534b9a2d8837d643cdcad318367 Thanks ---------------------------------------- Bug #21021: "try to mark T_NONE object" with 3.4.1 https://bugs.ruby-lang.org/issues/21021#change-111543 * Author: Benoit_Tigeot (Benoit Tigeot) * Status: Open * ruby -v: ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [x86_64-linux] ��� * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- Hello We upgraded to 3.4.1 yesterday but we are seeing crash since then. ``` /bundle/ruby/3.4.0/gems/activejob-7.2.2.1/lib/active_job/enqueuing.rb:93: [BUG] try to mark T_NONE object ``` I saw the other issue related to ffi gem https://bugs.ruby-lang.org/issues/20694 But in our case the `C level backtrace information` looks different. https://gist.github.com/benoittgt/13507c2000281aa7740bc782adab68c5 We migrated this part of the code to parallel->concurrent-ruby and we do not see the error yet again but I am a little bit worried we could see the issue again. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/