Overview
| Artifact ID: | 2f31c69002ac48cec68399a8a56dc54480cdf3d4 |
|---|---|
| Ticket: | 2835313fffffffffffffffffffffffffffffffff
crash in exception handling |
| User & Date: | msofer on 2009-08-22 04:42:06 |
Changes
- icomment:
This cannot be fixed easily without deep changes in the exception range mechanism, or possibly some costly extra functionality in INST_START_CMD. The problem is that the exec stack depth is not recorded on entering an exception range: neither at compile time, which would be iffy, nor at run time (catch does it with INST_BEGIN_CATCH). Given this, there is no way to restore the stack when jumping to one of the special targets (continue or break). The whole mechanism just ASSUMES that the stack is at its proper depth when a jump to one of the targets occurs. That is: a solution to this problem is possible, but it will definitely break in a difficult-to-fix way [tbcloading] old precompiled programs. Some day we might decide to do that.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"