Artifacts Associated With Ticket 218661
Ticket change [fe7667fb57] (rid 108596) by nobody on 2000-10-26 01:03:49:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1633 Bug Version: 8.1b2 SubmitDate: '1999-03-25' LastModified: '1999-04-05' Severity: CRIT Status: Released Submitter: pat ChangedBy: redman OS: Linux-Red Hat OSVersion: 4.2 Machine: Other FixedDate: '1999-04-05' ClosedDate: '2000-10-25' Name: Jan Nijtmans CVS: 24/Mar/1998 Extensions: Img 1.2 ReproducibleScript: The first trunk in the patch below solves potential problem if Tcl_PkgProvideEx() is called after Tcl_PkgProvide() with the same package name. When used in that order, a valid stub table pointer still stays unregistered for use by other packages. More important is another problem. If I compile Tcl/Tk8.1b2 from the current CVS database, and try to load Img 1.2, I get the error-message that Tk doesn't have Stub support. The cause for this error is in tclPkg.c, where something terrible went wrong. It seems that a few lines were copied to the wrong place, currupting the Stub table registration for Tk. This makes Img 1.2 totally unusable. The patch below solves both those problems. Patch: *** generic/tclPkg.c.origThu Mar 25 22:50:56 1999 --- generic/tclPkg.cThu Mar 25 23:07:54 1999 *************** *** 109,114 **** --- 109,117 ---- return TCL_OK; } if (ComparePkgVersions(pkgPtr->version, version, (int *) NULL) == 0) { + if (clientData != NULL) { + pkgPtr->clientData = clientData; + } return TCL_OK; } Tcl_AppendResult(interp, "conflicting versions provided for package \"", *************** *** 310,324 **** if (clientDataPtr) { *clientDataPtr = pkgPtr->clientData; } - - if (clientDataPtr) { - *clientDataPtr = pkgPtr->clientData; - } - return pkgPtr->version; } result = ComparePkgVersions(pkgPtr->version, version, &satisfies); if ((satisfies && !exact) || (result == 0)) { return pkgPtr->version; } Tcl_AppendResult(interp, "version conflict for package \"", --- 313,325 ---- if (clientDataPtr) { *clientDataPtr = pkgPtr->clientData; } return pkgPtr->version; } result = ComparePkgVersions(pkgPtr->version, version, &satisfies); if ((satisfies && !exact) || (result == 0)) { + if (clientDataPtr) { + *clientDataPtr = pkgPtr->clientData; + } return pkgPtr->version; } Tcl_AppendResult(interp, "version conflict for package \"", PatchFiles: tclPkg.c 04/05/1999 18:06 - redman - Already applied by Scott Stanton on 3/25/99 - foundin initialized to: "obsolete: 8.1b2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "Stub table registration corrupt"
- type initialized to: "Bug"
Ticket change [57a60b30a0] (rid 117654) by welch on 2000-10-26 08:26:11:
- closedate changed to: "2000-10-26T01:26:11"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [48594c14ba] (rid 99869) by dgp on 2001-04-17 05:44:32:
- closedate changed to: "2001-04-16T22:44:32"
- closer changed to: "dgp"
- subsystem changed to: "39. Package Manager"