|
2012-04-05
| ||
| 04:08 | • Closed ticket [3514761fff]: Crash (wrong#args inst creation) class command in en... artifact: 22568d936c user: dkf | |
| 03:53 | • Ticket [3514761fff]: 6 changes artifact: 42116dcf23 user: dkf | |
|
2012-04-04
| ||
| 08:43 | • Add attachment crashtrial2.tcl to ticket [3514761fff] artifact: 9d9e0142f5 user: andreas_kupries | |
| 08:43 | • Ticket [3514761fff] Crash (wrong#args inst creation) class command in ensemble</... artifact: ca47173a97 user: andreas_kupries | |
| 08:42 | • Ticket [3514761fff]: 4 changes artifact: 8ce25526bd user: andreas_kupries | |
| 08:42 | • Add attachment crashtrial.tcl to ticket [3514761fff] artifact: 675e73a728 user: andreas_kupries | |
| 01:42 | • New ticket [3514761fff] Crash (wrong#args inst creation) class command in ensemb... artifact: 8ee53bae8e user: andreas_kupries | |
Crash (wrong#args inst creation) class command in ensemble
Closed / Fixed3514761fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2012-04-04 01:42:04
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.
andreas_kupriesplain2012-04-04 08:42:06
File Added - 440236: crashtrial.tcl
andreas_kupriesplain2012-04-04 08:43:06
File Added - 440237: crashtrial2.tcl
dkfplain2012-04-05 03:53:18
Fixed. EEEvil interaction between ensembles and TclOO. Kept open until backported to TclOO package.
dkfplain2012-04-05 04:08:28
allow_comments - 1 Backported as much as practical
Log in (anonymous is fine) to add a comment.
Attachments:
- crashtrial2.tcl [download] added by andreas_kupries on 2012-04-04 08:43:06. [details]
- crashtrial.tcl [download] added by andreas_kupries on 2012-04-04 08:42:05. [details]