.
D 2003-02-20T15:43:53
J assignee andreas_kupries
J cmimetype text/plain
J comment (Note:\sthis\smay\sbe\sa\slibpthread\sand/or\sRedHat\sbug?\sHigh\nprio\sto\sdiscard\sthat\sit's\sa\stcl\sproblem)\n\nSystem:\slinux\sRH7.3\son\si386\s(up2date'd)\n\s\s\s\s\s\s\s\s\s\s*\sglibc-2.2.4-31\n\s\s\s\s\s\s\s\s\s\s*\sgcc-2.96-112.7.2\n\nTcl:\s\s\s\s\s*\shappens\swith\stcl\s>=\s8.4b1\s(although\sI'm\npretty\ssure\sit\sdid\snot\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\n\s\s\s\s\s\s\s\s\s\s\s\shappen\sa\swhile\sago,\ssuspect\sRH\supdate)\n\s\s\s\s\s\s\s\s\s\s*\sconfigured\sas\s"--enable-threads\n--enable-symbols\s--disable-shared"\n\nSymptom:\ssegfault\sin\sunixNotfy.test,\sapparently\sat\ncleanup\s(see\ssession\sbelow)\n\nNotes:\sI\sfirst\ssuspected\sthe\snew\sallocator,\sbut\sthat's\nnot\sit.\sI\sobserve\sthe\ssame\sbehaviour\scompiling\swith\nthreads\sbut\s-DPURIFY\sinstead\sof\s-DUSE_THREAD_ALLOC\n\n\nSample\ssession:\n\n[mig@mini\sunix]$\s./tcltest\s../tests/unixNotfy.test\s\nunixNotfy.test:\sTotal\s\s\s4\s\s\s\s\s\s\sPassed\s\s2\s\s\s\s\s\s\sSkipped\n2\s\s\s\s\s\s\sFailed\s\s0\nNumber\sof\stests\sskipped\sfor\seach\sconstraint:\n\s\s\s\s\s\s\s\s2\s\s\s\s\s\s\sunixOnly\s&&\s!testthread\nSegmentation\sfault\n[mig@mini\sunix]$\sgdb\stcltest\score.5814\s\nGNU\sgdb\sRed\sHat\sLinux\s(5.2-2)\nCopyright\s2002\sFree\sSoftware\sFoundation,\sInc.\nGDB\sis\sfree\ssoftware,\scovered\sby\sthe\sGNU\sGeneral\sPublic\nLicense,\sand\syou\sare\nwelcome\sto\schange\sit\sand/or\sdistribute\scopies\sof\sit\nunder\scertain\sconditions.\nType\s"show\scopying"\sto\ssee\sthe\sconditions.\nThere\sis\sabsolutely\sno\swarranty\sfor\sGDB.\s\sType\s"show\nwarranty"\sfor\sdetails.\nThis\sGDB\swas\sconfigured\sas\s"i386-redhat-linux"...\nCore\swas\sgenerated\sby\s`./tcltest\s../tests/unixNotfy.test'.\nProgram\sterminated\swith\ssignal\s11,\sSegmentation\sfault.\nReading\ssymbols\sfrom\s/lib/libdl.so.2...done.\nLoaded\ssymbols\sfor\s/lib/libdl.so.2\nReading\ssymbols\sfrom\s/lib/i686/libpthread.so.0...done.\nLoaded\ssymbols\sfor\s/lib/i686/libpthread.so.0\nReading\ssymbols\sfrom\s/lib/i686/libm.so.6...done.\nLoaded\ssymbols\sfor\s/lib/i686/libm.so.6\nReading\ssymbols\sfrom\s/lib/i686/libc.so.6...done.\nLoaded\ssymbols\sfor\s/lib/i686/libc.so.6\nReading\ssymbols\sfrom\s/lib/ld-linux.so.2...done.\nLoaded\ssymbols\sfor\s/lib/ld-linux.so.2\n#0\s\s__pthread_mutex_unlock\s(mutex=0x0)\sat\smutex.c:174\n174\s\s\s\s\smutex.c:\sNo\ssuch\sfile\sor\sdirectory.\n\s\s\s\s\s\s\s\sin\smutex.c\n(gdb)\sbt\n#0\s\s__pthread_mutex_unlock\s(mutex=0x0)\sat\smutex.c:174\n#1\s\s0x080ee585\sin\sTcl_MutexUnlock\s(mutexPtr=0x811c494)\nat\s./../unix/tclUnixThrd.c:440\n#2\s\s0x080640f1\sin\sTclThreadSend\s(interp=0x81977c8,\nid=0x400,\sscript=0x8198970\s"set\sx\sok",\swait=1)\n\s\s\s\sat\s./../generic/tclThreadTest.c:809\n#3\s\s0x080636f5\sin\sTcl_ThreadObjCmd\s(dummy=0x0,\ninterp=0x81977c8,\sobjc=4,\sobjv=0x405c589c)\sat\n./../generic/tclThreadTest.c:354\n#4\s\s0x080689e1\sin\sTclEvalObjvInternal\n(interp=0x81977c8,\sobjc=4,\sobjv=0x405c589c,\s\n\s\s\s\scommand=0x8198912\s'\s'\s<repeats\s12\stimes>,\n"testthread\ssend\s1024\s{set\sx\sok}\\n",\s'\s'\s<repeats\s12\ntimes>,\s"testthread\sexit",\s\n\s\s\s\slength=44,\sflags=0)\sat\s./../generic/tclBasic.c:3081\n#5\s\s0x08069603\sin\sTcl_EvalEx\s(interp=0x81977c8,\s\n\s\s\s\sscript=0x8198908\s"after\s500\\n",\s'\s'\s<repeats\s12\ntimes>,\s"testthread\ssend\s1024\s{set\sx\sok}\\n",\s'\s'\n<repeats\s12\stimes>,\s"testthread\sexit",\snumBytes=81,\nflags=0)\sat\s./../generic/tclBasic.c:3670\n#6\s\s0x08069b11\sin\sTcl_Eval\s(interp=0x81977c8,\s\n\s\s\s\sstring=0x8198908\s"after\s500\\n",\s'\s'\s<repeats\s12\ntimes>,\s"testthread\ssend\s1024\s{set\sx\sok}\\n",\s'\s'\n<repeats\s12\stimes>,\s"testthread\sexit")\sat\n./../generic/tclBasic.c:3868\n#7\s\s0x08063a39\sin\sNewTestThread\s(clientData=0xbfffbcb0)\nat\s./../generic/tclThreadTest.c:512\n#8\s\s0x4002dc3f\sin\spthread_start_thread\s(arg=0x405c5be0)\nat\smanager.c:284\n
J foundin obsolete:\s8.4.1.1
J priority 8
J resolution None
J status Open
J submitter msofer
J subsystem 49.\sThreading
J title threads:\ssegfault\sin\sunixNotfy.test
J type Bug
K 690108ffffffffffffffffffffffffffffffffff
U msofer
Z 797070e49e0bde14e209f34021b1b84a