From: <no...@so...> - 2000-11-19 12:34:28
|
Bug #120916, was updated on 2000-Oct-31 17:31 Here is a current snapshot of the bug. Project: Tk Toolkit Category: Other Status: Open Resolution: None Bug Group: 8.3.1 Priority: 8 Summary: Tk commands callable before Tk_Init bombs accessing Tcl stub table Details: OriginalBugID: 5494 Bug Version: 8.3.1 SubmitDate: '2000-05-15' LastModified: '2000-05-15' Severity: SER Status: UnAssn Submitter: techsupp ChangedBy: hobbs RelatedBugIDs: 2269 OS: All Windows Name: Per Mildner ReproducibleScript: There are Tk_ routines that can reasonably be called before Tk_Init (and thus Tcl_InitStubs) is called. In particular Tk_GetNumMainWindows (should return zero) and Tk_MainWindow (explicitly documented as callable on non-Tk interpreters), perhaps there are more. When Tk is built using TCL stubs (always the case on Windows) these routines will crash while trying to access Tcl_GetThreadData trough the (NULL) Tcl stub table. The patch for Bug DB ticket#2269 solves this problem in another context and could be adapted. (explicitly check for tclStubsPtr==NULL) For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=120916&group_id=12997 |