Skip to content
Tcl Source Code Artifact [f98a0f356a]
Login

Artifact [f98a0f356a]

Artifact f98a0f356add132ca0ff6fc38467ff0644738e53:

Ticket change [f98a0f356a] - New ticket [218226ffffffffff|218226ffff] <i>library cores loading under Solaris 2.6 but ok under 2.5.1</i>. by nobody on 2000-10-26 00:54:45.
D 2000-10-26T00:54:45
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2637\sBug\nVersion:\s8.2\nSubmitDate:\s'1999-08-31'\nLastModified:\s'2000-02-02'\nSeverity:\sCRIT\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\sericm\nOS:\sSolaris\nOSVersion:\sV2.6\sand\sV2.5.1\nMachine:\sOther\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-02-02'\n\n\nName:\nDuncan\sWebb\n\nExtensions:\nNone\n\nReproducibleScript:\nWe've\sbuild\sa\sshared\sobject\s(.so)\sto\sinterface\sto\san\sapplication.\sThe\n\s\s\s\scode\sis\swritten\sin\sC++.\sIt\shas\sbeen\scompiled\swith\sthe\sSUNspro\sV4.2\sC++\n\s\s\s\scompiler\sand\sthe\sbuild\sprocess\sis\sperformed\son\sSolaris\sV2.6.\s\n\s\s\s\s\n\s\s\s\sWhen\sthe\sTcl\sload\scommand\sis\sexecuted,\sunder\sTcl8.0.4/Tcl8.1/Tcl8.2\n\s\s\s\srunning\son\sSolaris\sV2.6,\sto\sload\sthe\sshared\sobject\sthe\sprogram\scores\n\s\s\s\swith\san\sillegal\sinstruction\serror.\sWhen\sexactly\sthe\ssame\scode\sis\sloaded\n\s\s\s\sunder\sSolaris\s2.5.1\sthe\sload\sis\ssuccessful.\n\s\s\s\s\n\s\s\s\sThe\score\sfile\sreveals\sthat\sdlopen()\scommand\shas\sbeen\scalled.\n\s\s\s\s\n\s\s\s\sThe\sTcl8.1\sversion\shas\sbeen\sdownloaded\sand\sinstalled\sfrom\sthe\sSun\ssite,\n\s\s\s\sthe\sother\stwo\sversion\sof\sTcl\swere\scompiled\sunder\sSolaris\s2.6.\n\s\s\s\s\n\s\s\s\sI've\swritten\sa\ssmall\stest\sharness\sto\sexecute\sthe\sdlopen()\scommand\sand\n\s\s\s\sthis\sworked\scorrectly\sunder\sboth\sversions\sof\sSolaris.\sThe\stest\sharness\n\s\s\s\sis:\n\s\s\s\s\n\s\s\s\s#include\s<stdio.h>\n\s\s\s\s#include\s<dlfcn.h>\n\s\s\s\s\n\s\s\s\sint\smain(int\sargc,\schar\s*argv[])\n\s\s\s\s{\n\s\s\s\s\s\s\s\schar\s*name\s=\s"/opt2/summit/V2.6/lib/libstktcl1.1.so";\n\s\s\s\s\s\s\s\sfprintf(stderr,\s"about\sto\sload\s\\"%s\\"\\n",\sname);\n\s\s\s\s\s\s\s\svoid\s*p\s=\sdlopen(name,\sRTLD_NOW\s|\sRTLD_GLOBAL);\n\s\s\s\s\s\s\s\sif\s(p\s==\sNULL)\s{\n\s\s\s\s\s\s\s\s\s\s\s\sfprintf(stderr,\s"cannot\sload\s\\"%s\\"\sreason\s\\"%s\\"\\n",\sname,\n\s\s\s\sdlerror());\n\s\s\s\s\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\s\s\s\s\sfprintf(stderr,\s"loaded\s\\"%s\\"\sat\s%p\\n",\sname,\sp);\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\n\s\s\s\s\s\s\s\schar\s*sym1\s=\s"Stktcl_Init";\n\s\s\s\s\s\s\s\svoid\s*addr1\s=\sdlsym(p,\ssym1);\n\s\s\s\s\s\s\s\sif\s(addr1\s==\sNULL)\s{\n\s\s\s\s\s\s\s\s\s\s\s\sfprintf(stderr,\s"cannot\sfind\ssymbol\s\\"%s\\"\sreason\s\\"%s\\"\\n",\n\s\s\s\ssym1,\sdlerror());\n\s\s\s\s\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\s\s\s\s\sfprintf(stderr,\s"found\ssymbol\s\\"%s\\"\sat\s%p\\n",\ssym1,\saddr1);\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\n\s\s\s\s\s\s\s\schar\s*sym2\s=\s"Stktcl_SafeInit";\n\s\s\s\s\s\s\s\svoid\s*addr2\s=\sdlsym(p,\ssym2);\n\s\s\s\s\s\s\s\sif\s(addr2\s==\sNULL)\s{\n\s\s\s\s\s\s\s\s\s\s\s\sfprintf(stderr,\s"cannot\sfind\ssymbol\s\\"%s\\"\sreason\s\\"%s\\"\\n",\n\s\s\s\ssym2,\sdlerror());\n\s\s\s\s\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\s\s\s\s\sfprintf(stderr,\s"found\ssymbol\s\\"%s\\"\sat\s%p\\n",\ssym2,\saddr2);\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\n\s\s\s\s\s\s\s\sint\src\s=\sdlclose(p);\n\s\s\s\s\s\s\s\sif\s(rc)\s{\n\s\s\s\s\s\s\s\s\s\s\s\sfprintf(stderr,\s"cannot\sunload\s\\"%s\\"\sreason\s\\"%s\\"\\n",\sname,\n\s\s\s\sdlerror());\n\s\s\s\s\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\s\s\s\s\sfprintf\s(stderr,\s"unloaded\s\\"%s\\"\\n",\sname);\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\n\s\s\s\s\s\s\s\sreturn\s0;\n\s\s\s\s}\n\nObservedBehavior:\nt@1\s(l@1)\sterminated\sby\ssignal\sILL\s(illegal\sopcode)\n\s\s\s\sCurrent\sfunction\sis\sTclpLoadFile\n\s\s\s\s\s\s\s78\s\s\s\s\s\s\shandle\s=\sdlopen(native,\sRTLD_NOW\s|\sRTLD_GLOBAL);\s\s\s\s/*\sINTL:\n\s\s\s\sNative.\s*/\n\s\s\s\s\n\s\s\s\scurrent\sthread:\st@1\n\s\s\s\s\s\s[1]\s0xed6d68b4(0xed6d5d64,\s0x0,\s0x0,\s0x0,\s0x0,\s0x0),\sat\s0xed6d68b3\n\s\s\s\s\s\s[2]\s_init(0xeddf0c2c,\s0x0,\s0xef7ed130,\s0xef7ed118,\s0xed676ad0,\n\s\s\s\s0xef7c9f18),\sat\s0xed6c315c\n\s\s\s\s\s\s[3]\scall_init(0xed7e1bc4,\s0xef7ed110,\s0xef7ec9c0,\s0x400000,\s0x80000,\n\s\s\s\s0x4201),\sat\s0xef7c9f50\n\s\s\s\s\s\s[4]\self_intp_find_sym(0xed7e1a40,\s0xeddf068c,\s0xed7e1700,\s0x4,\n\s\s\s\s0xed7e16e0,\s0xef7ec9c0),\sat\s0xef7c69c0\n\s\s\s\s\s\s[5]\slookup_sym(0x0,\s0xefffe030,\s0x0,\s0xef7b0148,\s0xedd90ed0,\n\s\s\s\s0x1ff1be4),\sat\s0xef7c47d0\n\s\s\s\s\s\s[6]\self_reloc(0xeddf068c,\s0xeddd2f80,\s0xc,\s0xeddd0000,\s0xeddd2f80,\n\s\s\s\s0xed692078),\sat\s0xef7d0670\n\s\s\s\s\s\s[7]\srelocate_so(0xeddf068c,\s0xef7ed2ac,\s0xef7ec9c0,\s0x4000000,\n\s\s\s\s0xffffbfff,\s0x4000),\sat\s0xef7c3a80\n\s\s\s\s\s\s[8]\sdl_new_so(0xeddf1c24,\s0xefffe244,\s0xef7ed25c,\s0xefffe1cc,\n\s\s\s\s0xef7ed2b8,\s0x0),\sat\s0xef7cd580\n\s\s\s\s\s\s[9]\sdlmopen_core(0xef7ed210,\s0xefffe244,\s0xd02,\s0x102,\s0xefffe1cc,\n\s\s\s\s0xef7b08f4),\sat\s0xef7cd124\n\s\s\s\s\s\s[10]\sdlmopen_lock(0xef7ed210,\s0xefffe244,\s0xd02,\s0xef7b08f4,\n\s\s\s\s0xef7ec9c0,\s0x102),\sat\s0xef7cd270\n\s\s\s\s=>[11]\sTclpLoadFile(interp\s=\s0x239c0,\sfileName\s=\s0xefffe4a0\n\s\s\s\s"/opt2/summit/V2.6/lib/libstktcl1.1.so",\ssym1\s=\s0xefffe648\n\s\s\s\s"Stktcl_Init",\ssym2\s=\s0xefffe574\s"Stktcl_SafeInit",\sproc1Ptr\s=\n\s\s\s\s0xefffe490,\sproc2Ptr\s=\s0xefffe48c,\sclientDataPtr\s=\s0xefffe464),\sline\s78\n\s\s\s\sin\s"tclLoadDl.c"\n\s\s\s\s\s\s[12]\sTcl_LoadObjCmd(dummy\s=\s(nil),\sinterp\s=\s0x239c0,\sobjc\s=\s2,\sobjv\s=\n\s\s\s\s0x25710),\sline\s333\sin\s"tclLoad.c"\n\s\s\s\s\s\s[13]\sTclExecuteByteCode(interp\s=\s0x239c0,\scodePtr\s=\s0x3e8c8),\sline\s844\n\s\s\s\sin\s"tclExecute.c"\n\s\s\s\s\s\s[14]\sTcl_EvalObjEx(interp\s=\s0x239c0,\sobjPtr\s=\s0x2beb8,\sflags\s=\s0),\n\s\s\s\sline\s2698\sin\s"tclBasic.c"\n\s\s\s\s\s\s[15]\sTcl_RecordAndEvalObj(interp\s=\s0x239c0,\scmdPtr\s=\s0x2beb8,\sflags\s=\n\s\s\s\s0),\sline\s142\sin\s"tclHistory.c"\n\s\s\s\s\s\s[16]\sTcl_Main(argc\s=\s1,\sargv\s=\s0xeffff1c4,\sappInitProc\s=\s0x10b20\s=\n\s\s\s\s&Tcl_AppInit(Tcl_Interp\s*interp)),\sline\s236\sin\s"tclMain.c"\n\s\s\s\s\s\s[17]\smain(argc\s=\s1,\sargv\s=\s0xeffff1c4),\sline\s83\sin\s"tclAppInit.c"\n\n\n\nI\sdon't\shave\senough\sinformation\sto\sdebug\sthis\sproblem.\s\sIf\syou\shave\sa\sminimal\stest\scase\s(ie,\sa\ssmall\slibrary\sthat\scauses\sthis\sbehavior),\sthat\swould\sbe\shelpful.\s\sAlso,\shave\syou\stried\scompiling\swith\sgcc/g++?\s\sAn\serror\slike\s"illegal\sopcode"\sprobably\smeans\sthat\ssomething\sis\sgenerating\sbad\smachine\scode,\swhich\smakes\sthe\scompiler\sa\ssuspect.\s\sIf\syou\scould\stry\scompiling\swith\sgcc/g++\sand\sinform\sus\sof\sthe\sresults,\sthat\swould\sbe\squite\shelpful.\s\sAnd\sif\syou\scan\ssend\sus\ssource\sfor\sa\sminimal\stest\scase,\sthat\swould\sbe\sgreat\stoo.\n\nThank\syou,\n\n-\seric\n\n--\s02/01/2000\sericm\n\nFrom\sthe\suser:\n\nI\sfound\sthe\sproblem\sfor\sthis\squite\sa\swhile\sago.\sThe\sproblem\swas\swith\sthe\nthreads\smodel,\sone\slibrary\swas\susing\sa\sdifferent\smodel\sthan\sanother.\sI\scan't\nremember\sexactly\show\sI\sfixed\sit.\n\nRegards,\nDuncan\n\n--\s02/02/2000\sericm\n\n
J foundin obsolete:\s8.2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title library\scores\sloading\sunder\sSolaris\s2.6\sbut\sok\sunder\s2.5.1
J type Bug
K 218226ffffffffffffffffffffffffffffffffff
U nobody
Z 4751c5747a45e400008df81dcde59a3f