Overview
| Artifact ID: | 87d2032dbcb264986706467192503a1c4a383365 |
|---|---|
| Ticket: | 804681ffffffffffffffffffffffffffffffffff
traces on errorInfo/errorCode corrupt the evaluation stack |
| User & Date: | msofer on 2003-09-14 21:04:22 |
Changes
- icomment:
Logged In: YES user_id=148712 Explicit bug description, for the record: (a) every call from TEBC to an outside function that may evaluate a bcc'ed script has to be protected by a (DE)CACHE_STACK_INFO() macro pair to insure the stack's integrity - namely, so that the nested TEBC knows where the not-in-use part of the stack starts. Failure to do so corrupts the evaluation stack. (b) due to the trace mechanism, every variable modification may end up evaluating bcc'ed code. Therefore, every call that touches a variable should be protected as above. (c) the error mechanism modifies ::errorInfo. But error reports are not protected in TEBC. Thus, a trace on ::errorInfo that calls a proc corrupts the evaluation stack. One possible fix is to identify every instance at risk and protect it. I have not yet been able to understand why TEBC was immune to this problem before, ie, what (subtle?) pre-existing protection I destroyed. TEBC will be fixed shortly with either a restoration of the previous mechanism, or else a bunch of new macro pairs.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"