Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: dba48e33c2ea68d0fed3baba66ff9bef0f683e2a
Ticket: 1937135fffffffffffffffffffffffffffffffff
crash on interp delete
User & Date: hobbs on 2008-04-07 22:33:15
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Trying to make a test for Tk bug 1936238, I hit this issue (8.5 head build with --enable-symbols=all):
    
    % set i [interp create]
    interp0
    % $i eval { set argc 1 ; set argv -help }
    -help
    % load {} Tk $i
    Command-specific options:
     -colormap: Colormap for main window
     -display:  Display to use
     -geometry: Initial geometry for window
     -name:     Name to use for application
     -sync:     Use synchronous mode for display server
     -visual:   Visual for main window
     -use:      Id of window in which to embed application
     --:        Pass all remaining arguments through to script
    % interp delete $i
    low guard byte 0 is 0x0
    low guard byte 1 is 0x0
    low guard byte 2 is 0x0
    low guard byte 3 is 0x0
    low guard byte 4 is 0x0
    low guard byte 5 is 0x0
    low guard byte 6 is 0x0
    low guard byte 7 is 0x0
    low guard byte 8 is 0x0
    low guard byte 9 is 0x0
    low guard byte 10 is 0x0
    low guard byte 11 is 0x0
    total mallocs                  55672
    total frees                    38606
    current packets allocated      17066
    current bytes allocated      1186474
    maximum packets allocated      17384
    maximum bytes allocated      1233060
    low guard failed at b4f738, /home/jeffh/cvs/tcl/tcl8.5/generic/tclObj.c 852
    12 bytes allocated at (/home/jeffh/cvs/tcl/tcl8.5/generic/tclListObj.c 1820)
    Memory validation failure
    
    another run pointed to the obj holding ::errorCode of list type with byte == "NONE".  It may be mem corruption, but I suspect something in Tcl shutdown that the error in Tk is just exposing.  There was a similar problem I found recently with loading vfs not completely correctly would also cause a seg fault with "alloc ..." failure warning.
    
    Perhaps it is actually in loading?  Too early to say at this point.
    
  4. foundin changed to: "obsolete: 8.5.2"
  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: "hobbs"
  10. subsystem changed to: "10. Objects"
  11. title changed to: "crash on interp delete"
  12. type changed to: "Bug"