Artifacts Associated With Ticket 5da26d4760
Ticket change [6e74898724] (rid 143406) by rkeene on 2015-10-05 16:37:39:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- 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> - foundin initialized to: "8.6.3"
- is_private initialized to: "0"
- login: "rkeene"
- priority initialized to: "5 Medium"
- private_contact initialized to: "1dad915564694f09d87e0c4dedb8bdba082b5626"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "rkeene"
- subsystem initialized to: "40. Dynamic Loading"
- title initialized to: "Tcl_LoadFile() segfaults if "interp" is NULL"
- type initialized to: "Bug"
Ticket change [4be37560ba] (rid 143453) by jan.nijtmans on 2015-10-07 13:16:44:
- assignee changed to: "jan.nijtmans"
- icomment:
Should be fixed by [5034c136a8039265]. Please confirm. Thanks for the report.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Pending"
Ticket change [838a6fb9b6] (rid 143878) by jan.nijtmans on 2015-11-11 14:14:02:
- closedate changed to: "2457338.09308747"
- closer changed to: "jan.nijtmans"
- login: "jan.nijtmans"
- mimetype: "text/plain"
- status changed to: "Closed"