<i>Tcl_InitStubs() Broken As Designed</i> status still Open with 4 other changes
by
.
D 2012-12-07T21:17:26
J icomment Ok,\syou're\sjust\srepeating\smy\sstarting\spoint.\n\nThe\sroutine\sTcl_InitStubs()\sand\stherefore\sall\ndeployed\sbinary\sstubs-enabled\sextensions\s--\sthe\nones\slinked\sagainst\sthe\s"versioned\sstubs\slib"\n--\ssuffer\sfrom\sa\sfundamentally\sbroken\sdesign.\s\sIf\sany\nof\sthem\spassed\sarguments\srequesting\sor\naccepting\s"Tcl\s9",\sthen\sthose\sdeployed,\sbinaries\nare\sgoing\sto\scrash\sif\sthey\sare\s[load]ed\sinto\snovem.\nIt's\sugly\sand\sit's\sbroken,\sbut\swe\scan't\sturn\sback\stime.\nThis\swas\sbotched,\sand\swe're\sgoing\sto\ssuffer\sfor\sthat\sbotch.\n\nAll\swe\scan\sdo\sis\sget\sa\sfixed\sunversioned\sstubs\slibrary\nout\sand\speople\sstarted\susing\sit\sbefore\sTcl\s9\sloading\nattempts\sget\swidespread.\n\nIf\swe\sreally\smust\smust\smust\sdo\ssomething\sthat\swill\nallows\sany\sold\sfoo.so\slinked\sto\sa\sversioned\sstubs\nlibrary\sthat's\sbeen\slying\saround\suntouched\sto\n[load]\sinto\sTcl\s9\sand\snot\scrash,\sthen\sthe\sonly\ssolution\nis\sto\schange\sTCL_STUB_MAGIC\sin\sTcl\s9\s(for\sall\nplatforms,\swhich\sI\swill\sdemonstrate).\s\sThen\sthe\n[load]\swill\snot\scrash,\sbut\swill\sinstead\sgenerate\sthe\nerror\smessage:\n\n"This\sinterpreter\sdoes\snot\ssupport\sstubs-enabled\sextensions."\n\nand\sas\sa\sconsequence,\sthose\snew\sextensions\slinked\sto\sthe\nnew\sunversioned\sstubs\slibrary\swould\sbe\sunable\sto\sgenerate\sany\nbetter\serror\smessage\sthan:\n\n"interpreter\suses\san\sincompatible\sstubs\smechanism"\n\nConsider,\sthough,\swhich\sfoo.so\sare\sgoing\sto\scrash.\s\sOnly\sthose\nwhich\spassed\sa\s'version"\sstring\sargument\sthat\saccepted\sa\sTcl\s9\ninterp.\s\sI\ssubmit\sthat\sno\sone\shas\sdone\sthis,\sother\sthan\sfolks\nlike\sus\swho\sare\sprobing\sand\sdemonstrating\sthe\sbrokenness\nif\sTcl_InitStubs().\s\sSo,\swe\swould\sbe\ssacrificing\sthe\sability\sto\nproduce\smore\smeaningful\serror\smessages\slike\n\n"version\sconflict\sfor\spackage\s"Tcl":\shave\s9.0a0,\sneed\s8"\n\nfor\speople\sactively\smaking\sextensions\stoday,\susing\sthe\nlatest\stools\sand\sadvice\sfor\sthe\ssake\sof\spreventing\scrashes\nin\sfoo.so\sthat\sdo\snot\sexist\soutside\sthe\slabs\sof\storture\stesters\nlike\sus.\n\nI\sprefer\sthat\swe\skeep\sTCL_STUBS_MAGIC\sunchanged.\nGet\sbetter\serror\smessages.\s\sAnd\sif\sany\sof\sthose\smythical\nfoo.so\sappear,\sthen\sthey\scrash.\s\sSorry.\s\sWe\slimped\salong\nwith\sa\smisdesigned\sTcl_InitStubs\sfor\sa\sdecade,\sand\sthat's\nthe\spain.\n
J login dgp
J mimetype text/plain
J username dgp
K 3588687fffffffffffffffffffffffffffffffff
U dgp
Z 057c7c30fefdcfcaa2ddc019bd69195f