Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10936 (closed enhancement: fixed)

Opened 9 months ago

Last modified 8 months ago

[PATCH] in TemplateError move backtrace computation to #initialize

Reported by: Aleksey Kondratenko Assigned to: core
Priority: high Milestone: 2.x
Component: ActionPack Version: edge
Severity: major Keywords:
Cc:

Description

We can't allow any exception in #backtrace. In MRI any raised exception from there becomes fatal (and can't be rescued). This can cause failures in test suite to silently terminate ruby process without any clues.

Attachments

commit-backtrace (1.5 kB) - added by Aleksey Kondratenko on 01/27/08 13:39:12.

Change History

01/27/08 13:39:12 changed by Aleksey Kondratenko

  • attachment commit-backtrace added.

01/27/08 20:45:40 changed by nzkoz

  • status changed from new to closed.
  • resolution set to fixed.

(In [8743]) Precalculate the Backtrace of a template error to avoid raising exceptions in TemplateError#backtrace. These will abort the ruby vm. Closes #10936 [Aleksey Kondratenko]

02/10/08 01:08:08 changed by nzkoz

(In [8835]) 2-0-stable: Precalculate the Backtrace of a template error to avoid raising exceptions in TemplateError#backtrace. These will abort the ruby vm. References #10936 [Aleksey Kondratenko]

Merging [8743]