Overview
| Artifact ID: | 2678c921cf3e100d6f599da4371edf9e8215a5445336ff5435c9fdfa00cdf6e0 |
|---|---|
| Ticket: | e533296a92d890449603ce54a5b1e2f04912e68a
SegFault on [info frame] on apply |
| User & Date: | sebres on 2026-08-27 14:17:31 |
Changes
- icomment:
OK, found and fixed it ultimately: this going to nested invocation of lambda, where by return from child to parent call, the info of lambda that got overwritten within child stack gets broken (or in my previous fix - get lost due to reset). Amend [a7a8993cca8e49c9] avoids this reset of lambda info in frames stack by nested invocations (reserves this info as long as it will be evaluated), so fill this info and reset the artificial command only once (at first/parent invocation); test now adjusted to cover it (lambda shall be in the last frame-info too). This makes it also a bit faster by nested invocations of lambda. However I'd admit that for performance reasons, one could rewrite this to initialize procPtr->cmdPtr only once by first invocation (as long as the lamda exists), but this would expect another clean-up and referring mechanism.<br/> At least it'd explain why invocation of lambdas were always faster in my fork.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"