Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cb0d4c23c52a15f236b65f7a8ad12701713e2a0b34bc7080e49d297eb5ea0c7f
Ticket: 0b809cd3fc8b6e5e19cd8a9a91357e425472cd69
SIGSEGV on shutdown with TclOO, coroutines, namespaces, and -DPURIFY
User & Date: andy on 2024-12-04 19:01:46
Changes

  1. icomment:
    First I reproduced the crash with all four of my test scripts, as well as oo-1.25.  Next I built your branch, both with and without `-DPURIFY`, and confirmed my test scripts and oo-1.25 no longer crash.  Looks good, thank you.  I eagerly await a release with this fix included, in fact am considering immediately applying it as a patch on top of my enterprise deployment.
    
    As for you being able to crash without using trace, your compiler environment must be different than mine, to automatically overwrite freed memory with `0xfeee`.  That's quite helpful to find use-after-free.
    
    Probably a topic for another day, but I'm still curious about the need to generate an error message when rewinding a coroutine, given that the error message is at risk of accessing partially dismantled data and has nowhere to go anyway.
    
  2. login: "andy"
  3. mimetype: "text/x-markdown"
  4. username: "andy"