From: Nobuyoshi Nakada Date: 2012-03-06T11:41:56+09:00 Subject: [ruby-core:43082] [Backport93 - Backport #5415][Open] YAML serialization problem for Exception Issue #5415 has been updated by Nobuyoshi Nakada. Status changed from Closed to Open ---------------------------------------- Backport #5415: YAML serialization problem for Exception https://bugs.ruby-lang.org/issues/5415 Author: Owen Ou Status: Open Priority: Normal Assignee: Category: Target version: The implementation of YAML.object_maker allocates an object and instance_variable_set the instance variables passed as the second argument, while Exception doesn't seem to use such instance variable to return the exception message (Exception#message). This bug can be reproduced by typing YAML::load(YAML::dump(Exception.new('test_message'))) in IRB. this bug can be reproduced in Ruby 1.8 as well -- http://bugs.ruby-lang.org/