Overview
| Artifact ID: | 18bff6e0e9d5d1fba599ca42f6df4ff41ac6cccda2ad16c939dc31fcc040be33 |
|---|---|
| Ticket: | 0b809cd3fc8b6e5e19cd8a9a91357e425472cd69
SIGSEGV on shutdown with TclOO, coroutines, namespaces, and -DPURIFY |
| User & Date: | sebres on 2024-12-04 20:26:12 |
Changes
- icomment:
Thanks for the test and confirmation. > I eagerly await a release with this fix included Don is preparing the release 8.6.16 right now, but I'm unsure whether this fix is not too raw for the merge to it (however I would have included it, since it fixes a memory overwriting with a potential for BO, or even RCE-attack due to predictable matter).<br/> @dgp, @dkf, @TCT any thoughts? > your compiler environment must be different than mine, to automatically overwrite freed memory with `0xfeee`. It is not the env, it was build with `--enable-symbols=mem` (tcl uses it's own memory manager and without that config-option a use-after-free is hard to reproduce. > the need to generate an error message when rewinding a coroutine ... It has basically nothing to do with the coro, it was just an after effect of binding the method (without the object/class) to NRE-data or the callFrame, what were also affected by different approaches in the same way, even without NRE or coros (e. g. if the method would be referenced within an event or some callback or other callFrames, like lambda or proc args etc). Anyway the patch made minimal invasive, without to touch regular cases producing errors via `MethodErrorHandler`, see for instance test `oo-7.7`.
- login: "sebres"
- mimetype: "text/x-markdown"