Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b7a8b04866c5d13d06d34b41a57d9c696cbb989f
Ticket: 2023112fffffffffffffffffffffffffffffffff
oo-18.3 fails with -singleproc 1
User & Date: dgp on 2008-08-03 11:54:14
Changes

  1. icomment:
    
    
    File Added - 286867: 2023112.patch
    
    Logged In: YES 
    user_id=80530
    Originator: NO
    
    
    The original prescription no longer
    reveals a bug, since NRE.test was
    renamed nre.test, and even sticking
    in the new names has the three tests
    in a different sequence that shows no
    test failure.
    
    Attached patch adds a new test
    oo-18.6 to replace the lucky trio.
    
    Attached patch also includes a fix
    for one of the bugs contributing to
    the test failure.  When an in-progress
    TEBC detects a bump of the compile
    epoch it calls on Tcl_EvalEx to
    evaluate (possibly redefined) commands
    rather than continue executing invalid
    bytecode.  Tcl_EvalEx does its own
    logging of errors to errorInfo.  When
    the Tcl_EvalEx returns though, TEBC
    still routes exceptions through its
    own handling machinery which here
    attempt to log to errorInfo a second
    time, and also replace a carefully
    crafted errorline value.  Fixing that
    is sufficient to make the test pass.
    
    There are other bugs discovered on
    this adventure.
    
    1) This scenario should never get into
    the mid-execution invalid bytecode
    situation to begin with.  The bytecode
    is known invalid before execution begins,
    but OO method body dispatch is currently
    failing to make the epoch check.
    
    2) The trickery with a magic errorline
    value truly is an ugly hack, and at least
    to my eyes should be easy enough to
    replace with something cleaner and more
    robust.
    
    I'll try to craft additional tests to
    reveal these other bugs independently.
    Once I get those filed, I'll be able
    to close this one.
    
    File Added: 2023112.patch
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"