Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e4e2ea1fbab8512972ac81b0e19c0d8b350a58c0
Ticket: 2903011fffffffffffffffffffffffffffffffff
Segv from calling destructor within constructor
User & Date: coldstore on 2009-11-24 10:01:08
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    [oo::class create foo {constructor {} {my destroy}}] new
    
    Sometimes results in a segv in Tcl_GetCommandFullName (interp=0x8053f58, command=0x10b15a98,\
     objPtr=0x1254a650) [example from gdb] called from CallCommandTraces (iPtr=0x8053f58, cmdPtr=0x10b15a98, oldName\
    =0x0, newName=0x0, flags=16512) [op cit]
    
    The proximate cause is a bogus cmdPtr->nsPtr which is full of random.
    
    Edited gdb session attached.
    
    Colin.
    
    
  4. foundin changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "9 Immediate"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "coldstore"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to: "Segv from calling destructor within constructor"
  12. type changed to: "Bug"