Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: db256c77f47038fe17038dfda4032f677d39a68a
Ticket: 1959637fffffffffffffffffffffffffffffffff
Problems with caching of resolution of [my init]
User & Date: kennykb on 2008-05-07 16:32:22
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    This problem has proven difficult to reduce to a small test case; there is a certain Heisenbug aspect to it.
    
    I do have a large case that is consistently failing, though, so that's part of the battle. (And in any case, I'd like to have some of what I've done for TDBC to be tested by someone other than me.)
    
    I have a development snapshot of TDBC located at
    
    http://kbk.is-a-geek.net:2301/zip/6647a04e19.zip
    
    To reproduce the problem:
    
    (1) Build and install the Tcl HEAD, the Tk HEAD, 
        and the TclOO HEAD. (Win32 MinGW+msys build
        preferred; I've not tested any other toolchain.)
    
    (2) Configure and make the 'tdbc' project in the
        supplied archive.
    
    (3) Configure, make, and test the 'tdbcodbc' project.
        All tests are expected to pass.
    
    (4) Change the string 'init2' at line 460 of
        tdbcodbc/generic/tdbcodbc.c and at line
        195 of tdbcodbc/library/tdbcodbc.tcl to
        read simply 'init'.
    
    (5) Make and test again.  Now several tests fail.
        The problem appears to be that the call to
        [my init] in the constructor of
        tdbc::odbc::statement actually arrives into
        the [init] method of tdbc::odbc::typesStatement.
        The behaviour is strongly dependent on
        context; the test cases in question continue
        to pass when run in isolation.
    
    dkf informs me that he suspects that overaggressive
    caching (or indolent clearing of the cache) relating
    to [my] is the culprit, but asked for a test case.
    Alas, I've been at a loss to reduce this to a small
    one.
    
  4. foundin changed to: "obsolete: 8.6a0"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "kennykb"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to: "Problems with caching of resolution of [my init]"
  12. type changed to: "Bug"