[ruby-core:112869] [Ruby master Bug#19527] Object allocation during garbage collection phase
From:
"alanwu (Alan Wu) via ruby-core" <ruby-core@...>
Date:
2023-03-13 22:46:58 UTC
List:
ruby-core #112869
Issue #19527 has been updated by alanwu (Alan Wu). Status changed from Open to Third Party's Issue Unfortunately, the traces are not very helpful. But I agree, it's likely an issue with the [IBM gem](https://github.com/ibm= db/ruby-ibmdb) and not a Ruby issue. Here is a guess as to what's happening: the traces indicate that it's crash= ing soon after a new Ruby thread starts up, and for "Object allocation during garbage collection phase" to happen at th= at timing, maybe someone is running Ruby code without holding the global VM lock. Any = code paths in the gem that terminates in `rb_thread_call_without_gvl()`, such as ones inv= olving `_ruby_ibm_db_check_sql_errors()`, can have this class of bugs. You can try asking IBM to check this. ---------------------------------------- Bug #19527: Object allocation during garbage collection phase https://bugs.ruby-lang.org/issues/19527#change-102383 * Author: hjimenez89rb (Hugo Alberto Jim=E9nez Santos) * Status: Third Party's Issue * Priority: Normal * ruby -v: 3.2.1 * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- We are currently developing a Ruby based web application which connects to = a DB2 Database and we have been using ibm_db-5.4.0 to establish a connectio= n, suddenly we got a error related to RUBY garbage collector PHASE. We have checked the issue with IBM_team to make sure that It was not a IBM_= GEM problem but as a result of their tests, IBM_GEM is working in different= cases but for us we face up with those errors even with those versions (2.= 7.6, 3.1.2, 3.2.1): *0x0/usr/local/rvm/gems/ruby-3.1.2/gems/ibm_db-5.4.0/lib/active_record/conn= ection_adapters/ibm_db_adapter.rb:760: [BUG] object allocation during garba= ge collection phase ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux] *Exception occurred on Step thread ID #SID:34117;RSEQ:911723; wrong instanc= e allocation; backtrace: /usr/local/rvm/gems/ruby-3.1.2/gems/ibm_db-5.4.0/l= ib/active_record/connection_adapters/ibm_db_adapter.rb:760:in server_info' = (RuntimeError) /usr/local/rvm/gems/ruby-3.1.2/gems/ibm_db-5.4.0/lib/active_= record/connection_adapters/ibm_db_adapter.rb:760:in initialize'. (all trace is attached in this ticket) OS name: "CentOS" version: "8" architecture: "x86_64" rvm: version: "1.29.12 (latest)" ---Files-------------------------------- LOGS3.txt (12.5 KB) LOGS4.txt (127 KB) LOGS2.txt (9.62 KB) LOGS1.txt (123 KB) --=20 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/postorius/lists/ruby-c= ore.ml.ruby-lang.org/