From: Owen Ou Date: 2011-10-06T11:14:54+09:00 Subject: [ruby-core:39979] [Ruby 1.9 - Bug #5415] YAML serialization problem for Exception Issue #5415 has been updated by Owen Ou. I have fixed this problem with a pull request on August 09 2011 which hasn't been merged in till now: https://github.com/ruby/ruby/pull/41 ---------------------------------------- Bug #5415: YAML serialization problem for Exception http://redmine.ruby-lang.org/issues/5415 Author: Owen Ou Status: Open Priority: Urgent Assignee: Category: Target version: 1.9.2 ruby -v: 1.9 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://redmine.ruby-lang.org