<i>exit causes segmentation violation with Oratcl extension</i> status still Open with 4 other changes
by
.
D 2004-05-30T21:42:19
J icomment Logged\sIn:\sYES\s\nuser_id=92123\n\nI\shave\sfound\ssome\sadditional\sinformation\sfrom\soracle..\n\n---------------\n\nsymptom:\sDynamically\sunloading\sshared\slibrary\sfails\s\nsymptom:\sSIGSEGV\s11*\ssegmentation\sviolation\s\nsymptom:\sCore\sdump\sis\sgenerated\s\n\ncause:\sA\sprogram,\seither\sPro*C\sor\sOCI,\sthat\sdynamically\s\nloads\sand\sunloads\sa\sshared\slibrary\sthat\sincludes\slibclntsh.so\s\nwill\scause\sa\score\sdump\son\sexit\safter\sdynamically\sunloading\sthe\s\nshared\slibrary.\sThis\swill\sonly\soccur\sif\sa\sconnect\sand\s\ndisconnect\sto\sOracle\sis\sperformed.\s\n\nThis\sdocumented\sin\s<bug:2012268>:CORE\sDUMP\sON\sEXIT\sOF\s\nPRO*C\sPROGRAM\sUSING\sDLCLOSE().\sThe\sdlopen\sloads\sthe\s\nusers\sshared\sobject,\sand\sthis\sin\sturn\scauses\slibclntsh.so\sto\sbe\s\nloaded\sinto\sthe\sprogram.\sThe\sOracle\strace\scode\sin\sthe\sclient\s\nregisters\san\sexit\shandler\sby\scalling\s"atexit()".\sThis\sregisters\sa\s\nfunction\swhich\sresides\sinside\slibclntsh.so\sto\sbe\scalled\sat\sexit\s\nfrom\sthe\sprocess.\sdlclose()\sunloads\sthe\susers\slibrary\sand\s\nlibclntsh.so.\sexit()\stries\sto\scall\s"epc_exit_handler"\swhich\sis\s\nnow\sunmapped.\s\n\n-------\n\nSince\sTcl\s8.5\snow\scalls\sdlclose\sfor\spackages\swhere\s8.4\s\s\napparently\sdoes\snot.\s\sWould\sit\sbe\stoo\slate\sfor\sa\sfeature\sthat\s\nallows\spackage\swriters\sthe\soption\sto\sskip\sthe\sdlclose\s?\n\nAlso,\sOracle\sprovides\sa\ssolution\s(hack)\sto\sget\saround\sthe\score\s\ndump.\s\sThis\sis\sapparently\sa\sSolaris\sonly\sissue.\n\nWorkaround\s(Solaris\sspecific):\s\n\nBefore\sstarting\sthe\sprocess\swhich\sperforms\sdlopen/dlclose\sof\s\na\smodule\slinked\swith\sOracle\sset\sthe\senvironment\svariable\s\nLD_PRELOAD\sto\spoint\sto\sthe\slibclntsh.so\sfile\sthat\sis\sbeing\s\nused.\sFor\sexample:\s\n\nsetenv\sLD_PRELOAD\s\n$ORACLE_HOME/rdbms/lib/libclntsh.so.8.0\s\n\nThis\smaps\slibclntsh\spermanently\sand\savoids\sthe\score\sdump.\s\nThis\svariable\smust\sonly\sbe\sset\sfor\sprograms\sthat\sencounter\s\nthe\score\sdump\sand\snot\sset\sgenerally.\s\n\n\nSince\sthis\sis\sclearly\sOracle's\sfault,\sWould\ssomeone\skindly\s\nchange\sthe\sclose\sthe\sstatus\sof\sthis\sbug\sreport.\n\nThanks\nTodd\n\n\n
J login tmh
J mimetype text/plain
J username tmh
K 960414ffffffffffffffffffffffffffffffffff
U tmh
Z e0fbdfadffa06bda902d0d64c742998a