Closed Bug 619148 Opened 14 years ago Closed 6 years ago

Stack traces in release builds.

Categories

(Tamarin Graveyard :: Virtual Machine, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: kpalacz, Assigned: kpalacz)

References

Details

Attachments

(1 file)

The VM maintains enough runtime information to generate AS stack traces even in release builds.
Walks MethodFrames. Tries to lookup names bound to nonmember functions in "static" scopes. Small enhancements to method name formatting.
Assignee: nobody → kpalacz
I take it we would get the method names but not line numbers?  (no surprise).
(In reply to comment #2)
> I take it we would get the method names but not line numbers?  (no surprise).

We could get at the line numbers if they existed in the original swf, but currently I don't think it will be straightforward to include this information.

We track line numbers by updating a 'status' every time we hit a debugline opcode, which is currently enabled only in debugger builds.   We should be able to concoct a scheme wherein we determine the line number during the construction of the stack trace, rather than during execution.  

In interp, one simple technique would be iterating forward (or possibly backwards) until we hit the relevant debugline.  For jit'd methods we'd have to maintain a mapping structure (or possibly construct one on the fly). 

Both involve work that is most likely outside the scope of this bug.
(In reply to comment #3)
> In interp, one simple technique would be iterating forward (or possibly
> backwards) until we hit the relevant debugline.  For jit'd methods we'd have to
> maintain a mapping structure (or possibly construct one on the fly). 


Or have deoptimization build it for us, and request a deopt point at every debugline.
Flags: flashplayer-qrb+
Flags: flashplayer-injection-
Flags: flashplayer-bug-
Target Milestone: --- → Future
Tamarin is a dead project now. Mass WONTFIX.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: