Skip to content
Tcl Source Code History Of Ticket 3547839fffffffffffffffffffffffffffffffff
Login

History Of Ticket 3547839fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 3547839fffffffffffffffffffffffffffffffff

  1. Ticket change [f5c22e6ae4] (rid 130169) by twylite on 2012-07-24 10:03:17:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Hi,
      
      I appear to have a reproducible crash in TclOO.  This needs independent confirmation as I am building using my own CMake script, in the absence of native MSVC build support in the tcloo repo.
      
      Details:
      
      Build setup (32-bit): 'Setting environment for using Microsoft Visual Studio 2010 x86 tools'
      Testing platform: Windows 7 (64-bit), PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 30 Stepping 5, GenuineIntel
      
      Crash in oo-0.7, debugger reveals:
        subclassPtr->thisPtr = 0xdddddddd 
        in ReleaseClassContents(), tclOO.c:831
      
      Minimal script to reproduce (in tclsh85tg.exe):
        package require TclOO
        namespace path oo
        object destroy ;# segfault
      
      
    4. foundin initialized to: "obsolete: 8.5.12"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "twylite"
    10. subsystem initialized to: "35. TclOO Package"
    11. title initialized to: "Crash in oo-0.7"
    12. type initialized to: "Bug"
  2. Ticket change [886d770133] (rid 131863) by dkf on 2012-07-27 02:48:07:

    1. icomment:
      Can't reproduce using a standard build of Tcl 8.5 on OSX, but do hit something with a memdebug build.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [bdd8461d61] (rid 101979) by dkf on 2012-07-27 02:48:24:

    1. priority changed to: "9 Immediate"
  4. Ticket change [d42b609419] (rid 123405) by dkf on 2012-07-27 02:56:12:

    1. icomment:
      Reproduces with:
      
        package require TclOO;::oo::object destroy
      
      Problem is that the structure pointed to by subclassPtr has been released (memdebug builds scribble over deallocated structures deliberately) *before* we've got to the point where we apply checks to ensure that we don't delete it too early. (Indeed, it's crashing in the code that's incrementing the reference counts to prevent this from happening.)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  5. Ticket change [c294278a4f] (rid 111509) by dkf on 2012-07-27 02:58:29:

    1. foundin changed to: "None"
    2. icomment:
      Also, this does *not* 8.6; that gets this protection code correct.
      
      (Dropped the Group to stop confusing dgp.)
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  6. Ticket change [cf2b083123] (rid 112923) by dkf on 2012-07-27 04:11:04:

    1. closedate changed to: "2012-07-26T21:11:04"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      Used the object finalization code from 8.6, which works (and already survives tests very much like this when built in memdebug mode).
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"