Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 57a166e951930b54d5e219df90f356cf912f58af
Ticket: 8ff0cb9fe16b30c7c511976616dc82bcb80dba5c
Tcl_NREvalObj() not as documented.
User & Date: dgp on 2013-08-21 14:16:03
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    proc foo {a b} {catch yield; return 1}
    coroutine demo lsort -command foo {a b}
    
    The [catch] fails to catch, and then a
    few steps later, the program crashes.
    
    The problem is with TclNRCoroutineObjCmd()
    which is written to assume that calls to
    Tcl_NREvalObj() behave as documented, that
    they schedule the evaluation for later.
    In fact, in many situations, T_NREO immediately
    evals.
    
    The branch dgp-purge-NRRunObjProc revises T_NREO
    to behave as documented.  This change introduces
    segfaults elsewhere, however.
    
  5. foundin changed to: "8.6.0"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Critical"
  11. status changed to: "Open"
  12. submitter changed to: "dgp"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to: "Tcl_NREvalObj() not as documented."
  15. type changed to: "Bug"