Overview
| Artifact ID: | 98645273ef341269c8c32a6fac38b023820f2288ff1201eac5870fd757afc37a |
|---|---|
| Ticket: | 7842f33a5cc5eed080a57f8af9ac1e7e3cee444a
TCL crash (core) |
| User & Date: | sebres on 2024-05-22 10:53:03 |
Changes
- icomment:
Well, the case where <code>oPtr->selfCls<code> may be NULL is normal case, related to the code (even fix of dkf for other pieces [8b4a3295ed9e537c] shows such conditions check). The fact that it fails in 8.7+ but not in 8.6 is easy to explain: in 8.6 since [b0e486eaa693a6a6] <code><b>AddSimpleClassChainToCallContext</b><code> checks whether <code>classPtr == NULL<code> (direct after tailRecurse label), where in 8.7+ this check was lost (probably due to some conflicts or because it was backported to <code><b>AddPrivates</b>FromClassChainToCallContext<code> only, which doesn't exist in 8.6)... Therefore the new tests <code>oo-35.7.*</code> didn't fail in 8.6, but in 8.7+ (I guess Donal simply merged it to 8.7 in [de08cf03235f3ce9], but didn't test it there). Now this is fixed everywhere (I also restored the mentioned check in [22966032c2912825]), additionally the invocation of <code>AddSimpleClassChainToCallContext<code> and <code>AddPrivatesFromClassChainToCallContext<code> is avoided completely if <code>oPtr->selfCls<code> is NULL (totally unneeded and wouldn't crash if later both would be rewritten again).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"