From: "zetter (Chris Zetter) via ruby-core" <ruby-core@ml.ruby-lang.org>
To: ruby-core@ml.ruby-lang.org
Cc: "zetter (Chris Zetter)" <noreply@ruby-lang.org>
Subject: [ruby-core:116643] [Ruby master Bug#20250] Crash with "Object ID seen, but not in mapping table: proc" error
Date: Fri, 09 Feb 2024 10:11:17 +0000 (UTC) [thread overview]
Message-ID: <redmine.issue-20250.20240209101117.4138@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-20250.20240209101117.4138@ruby-lang.org
Issue #20250 has been reported by zetter (Chris Zetter).
----------------------------------------
Bug #20250: Crash with "Object ID seen, but not in mapping table: proc" error
https://bugs.ruby-lang.org/issues/20250
* Author: zetter (Chris Zetter)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
Hello, I experienced a crash which I was able to reliably reproduce with the following:
``` ruby
require 'bundler/inline'
gemfile(true) do
source 'https://rubygems.org'
gem 'activesupport', '7.1.3'
end
require 'active_support'
logger = ActiveSupport::Logger.new('log/log.log', 1, 100 * 1024 * 1024)
logger.formatter = proc {|_, _, _, message| "#{message}\n" }
logger = ActiveSupport::TaggedLogging.new(logger)
logger.tagged("TAG").info "hello"
logger.tagged("TAG").info "hello" # usually crashes here
GC.start # sometimes need to trigger crash with GC
```
It looks like this is caused by the interaction with the formatter proc and the tagged logging features of activesupport. Let me know if a more minimal example would be useful.
I can reproduce this with:
* ruby 3.3.0 on arm64-darwin23
* ruby 3.3.0 on x86_64-linux
* latest ruby HEAD (5e12b75716) on arm64-darwin23
I cannot reproduce this on ruby 3.2.2.
Thanks for any help
---Files--------------------------------
ruby-2024-02-09-092829.ips (13.2 KB)
output.log (142 KB)
crash_test_2.rb (465 Bytes)
--
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-core.ml.ruby-lang.org/
next parent reply other threads:[~2024-02-09 10:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-09 10:11 zetter (Chris Zetter) via ruby-core [this message]
2024-02-09 12:30 ` [ruby-core:116648] [Ruby master Bug#20250] Crash with "Object ID seen, but not in mapping table: proc" error byroot (Jean Boussier) via ruby-core
2024-02-09 12:42 ` [ruby-core:116649] " byroot (Jean Boussier) via ruby-core
2024-02-09 13:31 ` [ruby-core:116651] " byroot (Jean Boussier) via ruby-core
2024-03-21 6:59 ` [ruby-core:117278] " naruse (Yui NARUSE) via ruby-core
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.issue-20250.20240209101117.4138@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
--cc=noreply@ruby-lang.org \
--cc=ruby-core@ml.ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).