Skip to content
Tcl Source Code History Of Ticket 5da26d4760
Login

History Of Ticket 5da26d4760

Artifacts Associated With Ticket 5da26d4760

  1. Ticket change [6e74898724] (rid 143406) by rkeene on 2015-10-05 16:37:39:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      Calling Tcl_LoadFile() with interp as NULL results in Tcl_ResetResult(NULL) being called.  Tcl_ResetResult(NULL) segfaults rather early on after attempting to dereference NULL as if it were a pointer to a (Tcl_Interp).
      
      <hr>
      GDB output:
      <pre><code>
          Program received signal SIGSEGV, Segmentation fault.
          0x00007ffff7b43a29 in ResetObjResult.isra.0 () from /opt/appfs/core.appfs.rkeene.org/tcl/linux-x86_64/8.6.3/lib/libtcl8.6.so
          (gdb) bt
          #0  0x00007ffff7b43a29 in ResetObjResult.isra.0 () from /opt/appfs/core.appfs.rkeene.org/tcl/linux-x86_64/8.6.3/lib/libtcl8.6.so
          #1  0x00007ffff7b444f0 in Tcl_ResetResult () from /opt/appfs/core.appfs.rkeene.org/tcl/linux-x86_64/8.6.3/lib/libtcl8.6.so
          #2  0x00007ffff7b2622b in Tcl_LoadFile () from /opt/appfs/core.appfs.rkeene.org/tcl/linux-x86_64/8.6.3/lib/libtcl8.6.so
          #3  0x00007ffff4c00d5c in tclpkcs11_int_load_module () from /opt/appfs/rkeene.org/tclpkcs11/platform/latest/lib/tclpkcs110.9.10/tclpkcs11.so
      <code></pre>
      
      <hr>
      Code:
      <pre><code>
      MODULE_SCOPE void *tclpkcs11_int_load_module(const char *pathname) {
              int tcl_rv;
              Tcl_Obj *pathnameObj;
              Tcl_LoadHandle *new_handle;
              new_handle = (Tcl_LoadHandle *) ckalloc(sizeof(*new_handle));
              pathnameObj = Tcl_NewStringObj(pathname, -1);
              Tcl_IncrRefCount(pathnameObj);
              tcl_rv = Tcl_LoadFile(NULL, pathnameObj, NULL, 0, NULL, new_handle);
              Tcl_DecrRefCount(pathnameObj);
      ...
      </code></pre>
      
    5. foundin initialized to: "8.6.3"
    6. is_private initialized to: "0"
    7. login: "rkeene"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "1dad915564694f09d87e0c4dedb8bdba082b5626"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "rkeene"
    14. subsystem initialized to: "40. Dynamic Loading"
    15. title initialized to: "Tcl_LoadFile() segfaults if "interp" is NULL"
    16. type initialized to: "Bug"
  2. Ticket change [4be37560ba] (rid 143453) by jan.nijtmans on 2015-10-07 13:16:44:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      Should be fixed by [5034c136a8039265]. Please confirm.
      
      Thanks for the report.
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
    5. resolution changed to: "Fixed"
    6. severity changed to: "Minor"
    7. status changed to: "Pending"
  3. Ticket change [838a6fb9b6] (rid 143878) by jan.nijtmans on 2015-11-11 14:14:02:

    1. closedate changed to: "2457338.09308747"
    2. closer changed to: "jan.nijtmans"
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"