Ticket #203 (closed defect: fixed)
Marshal.dump does not serialize an Exception's backtrace
| Reported by: | vincent.isambart@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | major | Milestone: | MacRuby 0.11 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
The following code:
begin raise 'test' rescue Exception => e p e.backtrace p Marshal.load(Marshal.dump(e)).backtrace end
displays:
["untitled.rb:2:in `<main>'"] nil
instead of: (Ruby 1.9)
["untitled.rb:2:in `<main>'"] ["untitled.rb:2:in `<main>'"]
If you look at the (binary) result of Marshal.dump(e), you can indeed see that it does not include the backtrace in MacRuby.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


