ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "josh.cheek (Josh Cheek)" <josh.cheek@gmail.com>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:54482] [ruby-trunk - Bug #8303][Open] YAML does not persist Exception#backtrace
Date: Sat, 20 Apr 2013 23:47:43 +0900	[thread overview]
Message-ID: <redmine.issue-8303.20130420234743@ruby-lang.org> (raw)


Issue #8303 has been reported by josh.cheek (Josh Cheek).

----------------------------------------
Bug #8303: YAML does not persist Exception#backtrace
https://bugs.ruby-lang.org/issues/8303

Author: josh.cheek (Josh Cheek)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


require 'yaml'

begin
  raise "omg"
rescue

  # yaml loses the backtrace
  YAML.load(YAML.dump $!).backtrace # => nil
  
  # marshal persists the backtrace
  Marshal.load(Marshal.dump $!).backtrace # => ["-:4:in `<main>'"]

end


-- 
http://bugs.ruby-lang.org/

             reply	other threads:[~2013-04-20 15:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-20 14:47 josh.cheek (Josh Cheek) [this message]
2013-06-04 14:52 ` [ruby-core:55304] [ruby-trunk - Bug #8303][Assigned] YAML does not persist Exception#backtrace ayumin (Ayumu AIZAWA)
2019-01-09 21:54 ` [ruby-core:90952] [Ruby trunk Bug#8303][Closed] " tenderlove

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-8303.20130420234743@ruby-lang.org \
    --to=ruby-core@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).