Skip to content
Tcl Source Code Artifact [f9118d31c3]
Login

Artifact [f9118d31c3]

Artifact f9118d31c33b6cc6d4438e9533456d307e32ff58:

Ticket change [f9118d31c3] - New ticket [2059262fffffffff|2059262fff] <i>regression: crash after unloading proprietary library</i>. by nijtmans on 2008-08-19 08:23:53.
D 2008-08-19T08:23:53
J assignee nobody
J cmimetype text/plain
J comment Some\slibraries,\se.g.\sthe\sMbx\slibrary\sfrom\sthe\ssecs\sproject,\slet\sTcl\scrash\swhen\sthe\slibrary\sis\sunloaded.\nThis\sis\srelated\sto\stip\s#239.\nThere\shas\sbeen\sa\sprivate\sdiscusson\sabout\sthat,\nhere\sare\sjust\ssome\scopies\sof\sthe\srelevant\sparts:\n\n=================================================\n\nThe\sreason\swe\sneed\sthe\sTcl-level\sextras\sis\sthat\sit\sintroduces\sat\sleast\sone\skey\sfeature\s-\sper-library\sopt-out\sof\sbeing\sclosed/unloaded.\s\sThis\sis\svery\simportant\sfor\ssome\slibraries\sthat\shave\satexit\shandlers\sand\ssimilar\sweird\sissues\s(like\sOracle's\sstuff).\n\nJeff\n\n==================================================\n\nYes,\sI\sencountered\sa\sproprierary\slibrary\sas\swell\nwhich\shas\sproblems\swith\sunloading\sin\sTcl\s8.5\nbut\sworked\sperfectly\sin\sTcl\s8.4\s;-(.\sShouln't\nlibraries\sreport\sby\sitself\sif\sthey\ssupport\nunloading\sor\snot,\sin\sstead\sof\sbuilding\sit\sin\nin\sthe\sload\scommand?\sWe\scould\ssimply\scheck\nif\sthe\slibrary\shas\san\sunloadproc,\sand\sonly\nunload\sit\sif\sit\shas\sone.\sSomething\slike\sthe\npatch\sbelow.\sThen\sany\slibrary\swhich\swants\nthe\sunload\sfeature\sonly\shas\sto\sdefine\sthe\s\nsymbol,\sthat's\sit.\n\nThis\spatch\sseems\sto\sfix\smy\sproblem\s(but\nit\sis\sbarely\stested,\sso\syour\scomments\sare\nwelcome....)\n\nRegards,\n\s\s\s\s\s\s\s\s\s\sJan\sNijtmans\n==================================================\nThe\sproblem\swith\sthat\sis\sthat\sit\sthen\sadds\sthe\sburden\sof\screating\sthe\sunload\sproc\sfor\sall\sthe\swell-behaved\slibraries.\s\sIt\smight\sbe\sworth\sconsidering\sspecial\svalues\slike\sTcl_EventuallyFree\sdoes,\swhereby\sTCL_UNLOAD_OK\scould\sbe\sspecific\sas\sthe\sunloadProc\s(meaning\sit\sshould\sunload\swith\sthe\susual\snative\sstuff).\n\nAny\sway\syou\scut\sit,\sthat\sjust\sadds\ssome\sspecial\scasing\sfor\ssomething\sI\swant\sto\sbe\sgeneralized.\s\sIf\sit\smeans\swe\sneed\sTcl_Load*\sAPIs,\sI\sthink\sthat's\sacceptable.\n\nJeff\n==================================================\nThinking\smore\sabout\sit,\sI\sthink\swe\sare\sdealing\nwith\stwo\sdifferent\sthings\shere:\n1)\sA\sregression\sin\sTcl\s8.5\scompared\sto\s8.4.\sThe\n\s\s\smbx\spackage\sI\swrote\sfor\sthe\ssecs\sproject\suses\n\s\s\sa\sproprietary\slibrary\slibCw.a.\sThis\slibrary\n\s\s\scrashes\swhen\sTcl\s8.5\sexits,\sbut\swith\sTcl\s8.4\n\s\s\sit\sworks\sperfectly.\n2)\sExtend\sthe\sAPI\sin\sboth\sTcl\sand\sC\sto\sallow\n\s\s\smore\scontrol\sover\sthe\sunloading\sof\slibraries.\n\nBoth\sshould\sbe\sconsidered\sseparately.\sI\spropose\nto\ssubmit\sa\sbug\sticket\sfor\s1),\swhich\scan\sbe\nsolved\swithout\sa\sTIP,\sand\sbackported\sto\sTcl\n8.4.\sThis\sprivate\sdiscussion\scan\sthen\sbe\ncontinued\sthere.\sIt\sis\sindeed\sa\sburden\sto\ncreate\san\sunload\sproc\sfor\swell-behaved\nlibraries,\sbut\sthat's\ssmall\sand\seasy\sand\nit\srestores\sthe\sTcl\s8.4\sbehaviour\sfor\nill-behaved\slibraries.\sWe\sonly\shave\sto\ndo\sthat\sfor\sa\ssmall\snumber\sof\slibraries\n(the\sones\sin\sthe\score),\sand\sonly\nthe\sextension\swriters\swho\swant\sto\ssupport\nunloading\sneed\sto\sdo\sit\sas\swell.\nI\svolunteer\sto\sdo\sthat,\sas\ssoon\sas\swe\nreach\sagreement.\n\nA\sseparate\sissue\sis\s2),\swhich\sneeds\sa\sTIP\nand\scannot\sbe\sbackported\sto\sTcl\s8.5.\sPersonally,\nfor\sthe\sC\sapi\sI\swould\sjust\suse\sdlopen,\sso\swe\ndon't\shave\sto\sdo\sanything\sfor\sLinux\sand\sfriends.\nBut\sI\scan\slive\svery\swell\swith\sthe\sproposed\nTcl_Load*\sAPI\sas\swell.\n\nRegards,\n\s\s\s\s\s\s\s\sJan\sNijtmans
J foundin obsolete:\s8.5.4
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nijtmans
J subsystem None
J title regression:\scrash\safter\sunloading\sproprietary\slibrary
J type Bug
K 2059262fffffffffffffffffffffffffffffffff
U nijtmans
Z 65c40775e81dfce11804a918612be6f3