.
D 2011-03-16T11:37:48
J assignee kennykb
J cmimetype text/plain
J comment Shared\slibraries\sproviding\sTcl\sextensions\sare\sloaded\sfor\sthe\sUnix\sfamily\sby\sthe\scode\sin\stclLoadDl.c,\swhich\sinterfaces\sTcl\swith\sthe\sdlopen(<library_path>,flags)\ssystem\scall.\sTcl\schose\sto\sset\sdlopen's\sflags\sargument\sas\sRTLD_NOW\s|\sRTDL_GLOBAL.\sGlobally\sloading\sthe\sextension\ssymbols\s\swas\sfound\sto\scrash\san\sapplication\s(Apache\sRivet)\sthat\sembeds\sa\sTcl\sinterpreter,\swhich\sin\sturn\sgains\saccess\sto\sa\ssubset\sof\sthe\sapplication\scommands\sby\sloading\san\sextension\slibrary.\sThe\sapplication\ssuccessfully\sloads\sthe\slibrary\sby\scalling\sTcl_PkgRequire,\sbut\scrashes\sshortly\safter\sin\sa\sfunction\sunrelated\sto\sthe\sextension\slibrary.\sReplacing\sTcl_PkgRequire\swith\sa\sdirect\scall\sto\sdlopen\sand\spassing\sRTLD_NOW\s|\sRTLD_LOCAL\sas\ssecond\sargument\srestores\smod_rivet\s(and\sApache)\sfull\sfunctionality.\sOn\sthe\sother\shand,\sit\swas\salso\sverified\sthat\ssetting\sin\stclLoadDl.c\sthe\sflags\sargument\sas\sRTLD_NOW\s|\sRTLD_LOCAL\s\sand\sbuilding\sa\scustom\sTcl\sinstallation\sagainst\swhich\sRivet\sgets\slinked,\spreserves\sApache\sfunctioning\seven\swhen\sthe\sextension\sis\sloaded\sby\scalling\sTcl_PkgRequire,\sthus\sfully\sidentifying\sthe\sproblem\swith\sthe\sRTLD_GLOBAL\sflag.
J foundin obsolete:\s8.5.9
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter mxmanghi
J subsystem 40.\sDynamic\sLoading
J title Loading\sextension\slibraries\sfrom\sembedded\sTcl\sapplications
J type Bug
K 3216070fffffffffffffffffffffffffffffffff
U mxmanghi
Z ac65584a65f887741138c07ac2294c4f