From: SourceForge.net <no...@so...> - 2012-04-04 21:08:29
|
Bugs item #3514761, was opened at 2012-04-03 18:42 Message generated for change (Comment added) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3514761&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 35. TclOO Package Group: development: 8.6b2 >Status: Closed Resolution: Fixed Priority: 9 Private: No Submitted By: Andreas Kupries (andreas_kupries) Assigned to: Donal K. Fellows (dkf) Summary: Crash (wrong#args inst creation) class command in ensemble Initial Comment: TclOO crash during wrong#args instance creation for class command called through ensemble. The attached script (crashtrial) creates an oo::class which is put into an ensemble. An instance is created, with the wrong number of arguments. This crashes deep in ProcNumArgs/Tcl_WrongNumArgs during instance construction, while the arguments to the constructor are checked. The preliminary investigation of the resulting core file showed that something is going wrong with the ensemble rewriting machinery in TclOO, causing it to construct a bogus "desiredObjs" array for Tcl_WrongNumArgs(). This seems to be confirmed by "crashtrial2.tcl" (also attached). The only difference to "crashtrial.tcl" is that the class command is called directly, without going through the ensemble ("k::s" vs. "k s"). This does not crash and properly throws a wrong#args error. ---------------------------------------------------------------------- >Comment By: Donal K. Fellows (dkf) Date: 2012-04-04 14:08 Message: Backported as much as practical ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2012-04-04 13:53 Message: Fixed. EEEvil interaction between ensembles and TclOO. Kept open until backported to TclOO package. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3514761&group_id=10894 |