Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f1131517edb8c08fed188fa8e3888389d347b0c0
Ticket: 571385ffffffffffffffffffffffffffffffffff
segfaults in execution tracing.
User & Date: dgp on 2002-06-20 21:42:31
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    several responses:
    
    1) The Command structure has its own refCount field, so
    Tcl_Preserve
        should not be used on pointers to it.
    
    2) We should put Hemang on the list of maintainers who can
    be assigned
         Tcl Bugs.
    
    3) I agree that (cmdPtr->flags & CMD_HAS_EXEC_TRACES) should
        not be true if the code was correct.  By the time that
    expression is
        computed, though, it seems that the Command structure
    pointed to
        has been freed and the memory re-allocated to another
    purpose.
        I see a (faulty) value of cmdPtr->flags == 1852793951 @
    line 3022
        of tclBasic.c just before a segfault in
    TclCheckExecutionTraces().
    
    4) if cmdPtr is NULL, I expect cmdPtr->flags access to segfault.
    
    5) Sadly I have not been able to create a short demo script,
    though
        I can reliably reproduce the problem with OOMMF.  The proc
        example was just meant to illustrate the kind of thing
    that's going
        on.  It is not a demo script.
    
    6) As far as correct behavior goes, whatever was specified
    in the TIP.
    
    7) SF won't let you attach the patch, will it? Grrrr.....
    can you mail it?
        [email protected]  I'm happy to try it, but the form
    mangled by
        comment processing is nearly unusable.
    
    8) This is a total showstopper for OOMMF.  It will be very
    bad if this
        bug gets into the Tcl 8.4b1 release.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"