Skip to content
Tcl Source Code Artifact [4cd497f459]
Login

Artifact [4cd497f459]

Artifact 4cd497f45931ac5b90a23b1154e5bdcc606e3af7:

Ticket change [4cd497f459] - Ticket [2005794fffffffff|2005794fff] <i>tpool::create freezes when using minworkers</i> status still Open with 4 other changes by nathanjett on 2008-10-22 04:41:33.
D 2008-10-22T04:41:33
J icomment I've\salso\sexperienced\sthis\sissue\swith\sthe\sfollowing\scode:\n\npackage\srequire\sThread\nset\sworkers\s10\nset\spoolId\s[tpool::create\s-minworkers\s$workers\s-maxworkers\s$workers]\n\nThis\scode\sworks\sfine\son\sWindows\sXP\sbut\son\smy\sGentoo\sLinux\sinstall\sand\sa\sco-workers\sUbuntu\sinstall\sthe\slast\sline\shangs\sindefinitely.\s\sIf\sI\sset\sworkers\sto\s2\sit\sworks\sfine,\sas\sI\sincrease\sthe\snumber\sit\sfails\smore\sfrequently\sand\swhen\sI\sget\sto\s10\sit\sfails\severy\stime.\s\sIf\sI\sdon't\sspecify\sthe\sminworkers\sthe\scommand\sfinished\sfine,\sbut\sthen\swhen\sI\sassign\sa\slarge\snumber\sof\sjobs\sto\sthe\spool,\sonly\s7\sor\s8\sthreads\send\sup\sworking\sthem.\n\nI'm\susing\sTcl\s8.5.1\swith\sthread\s2.6.5.\s\sI\shave\stried\sthe\sActiveState\sbinaries\sand\shad\sthe\ssame\strouble,\salso\stried\swith\sTcl\s8.4.18\sand\sstill\sno\sluck.\s\sBelow\sis\sare\sstrace\sand\sgdb\soutput\sfor\sthe\sscript\snoted\sabove.\n\nnathan@NJPC\s~\s$\sstrace\s-p\s6315\s-t\s-tt\nProcess\s6315\sattached\s-\sinterrupt\sto\squit\n1224606735.015121\sfutex(0x8094d1c,\sFUTEX_WAIT,\s34,\sNULL)\s=\s-1\sEAGAIN\s(Resource\stemporarily\sunavailable)\n1224606735.015288\sfutex(0x8094d1c,\sFUTEX_WAIT,\s36,\sNULL^C\s<unfinished\s...>\nProcess\s6315\sdetached\n\nnathan@NJPC\s~\s$\sgdb\nGNU\sgdb\s6.7.1\nCopyright\s(C)\s2007\sFree\sSoftware\sFoundation,\sInc.\nLicense\sGPLv3+:\sGNU\sGPL\sversion\s3\sor\slater\s<http://gnu.org/licenses/gpl.html>\nThis\sis\sfree\ssoftware:\syou\sare\sfree\sto\schange\sand\sredistribute\sit.\nThere\sis\sNO\sWARRANTY,\sto\sthe\sextent\spermitted\sby\slaw.\s\sType\s"show\scopying"\nand\s"show\swarranty"\sfor\sdetails.\nThis\sGDB\swas\sconfigured\sas\s"i686-pc-linux-gnu".\n(gdb)\sattach\s6315\nAttaching\sto\sprocess\s6315\nReading\ssymbols\sfrom\s/usr/bin/tclsh8.5...(no\sdebugging\ssymbols\sfound)...done.\nUsing\shost\slibthread_db\slibrary\s"/lib/libthread_db.so.1".\nReading\ssymbols\sfrom\s/usr/lib/libtcl8.5.so...(no\sdebugging\ssymbols\sfound)...done.\nLoaded\ssymbols\sfor\s/usr/lib/libtcl8.5.so\nReading\ssymbols\sfrom\s/lib/libdl.so.2...(no\sdebugging\ssymbols\sfound)...done.\nLoaded\ssymbols\sfor\s/lib/libdl.so.2\nReading\ssymbols\sfrom\s/lib/libpthread.so.0...(no\sdebugging\ssymbols\sfound)...done.\n[Thread\sdebugging\susing\slibthread_db\senabled]\n[New\sThread\s0xb7c8d6c0\s(LWP\s6315)]\n[New\sThread\s0xb4c53b90\s(LWP\s6322)]\n[New\sThread\s0xb5454b90\s(LWP\s6321)]\n[New\sThread\s0xb5c55b90\s(LWP\s6320)]\n[New\sThread\s0xb6456b90\s(LWP\s6319)]\n[New\sThread\s0xb6c57b90\s(LWP\s6318)]\n[New\sThread\s0xb7458b90\s(LWP\s6317)]\n[New\sThread\s0xb7c8cb90\s(LWP\s6316)]\nLoaded\ssymbols\sfor\s/lib/libpthread.so.0\nReading\ssymbols\sfrom\s/lib/libm.so.6...\n(no\sdebugging\ssymbols\sfound)...done.\nLoaded\ssymbols\sfor\s/lib/libm.so.6\nReading\ssymbols\sfrom\s/lib/libc.so.6...(no\sdebugging\ssymbols\sfound)...done.\nLoaded\ssymbols\sfor\s/lib/libc.so.6\nReading\ssymbols\sfrom\s/lib/ld-linux.so.2...(no\sdebugging\ssymbols\sfound)...done.\nLoaded\ssymbols\sfor\s/lib/ld-linux.so.2\nReading\ssymbols\sfrom\s/lib/libnss_compat.so.2...(no\sdebugging\ssymbols\sfound)...done.\nLoaded\ssymbols\sfor\s/lib/libnss_compat.so.2\nReading\ssymbols\sfrom\s/lib/libnsl.so.1...\n(no\sdebugging\ssymbols\sfound)...done.\nLoaded\ssymbols\sfor\s/lib/libnsl.so.1\nReading\ssymbols\sfrom\s/lib/libnss_nis.so.2...(no\sdebugging\ssymbols\sfound)...done.\nLoaded\ssymbols\sfor\s/lib/libnss_nis.so.2\nReading\ssymbols\sfrom\s/lib/libnss_files.so.2...(no\sdebugging\ssymbols\sfound)...done.\nLoaded\ssymbols\sfor\s/lib/libnss_files.so.2\nReading\ssymbols\sfrom\s/usr/lib/thread2.6.5/libthread2.6.5.so...(no\sdebugging\ssymbols\sfound)...done.\nLoaded\ssymbols\sfor\s/usr/lib/thread2.6.5/libthread2.6.5.so\n\n(no\sdebugging\ssymbols\sfound)\n0xffffe424\sin\s__kernel_vsyscall\s()\n(gdb)\sthread\sapply\sall\sbt\n\nThread\s8\s(Thread\s0xb7c8cb90\s(LWP\s6316)):\n#0\s\s0xffffe424\sin\s__kernel_vsyscall\s()\n#1\s\s0xb7d497d1\sin\sselect\s()\sfrom\s/lib/libc.so.6\n#2\s\s0xb7ef7dbd\sin\s??\s()\sfrom\s/usr/lib/libtcl8.5.so\n\nThread\s7\s(Thread\s0xb7458b90\s(LWP\s6317)):\n#0\s\s0xffffe424\sin\s__kernel_vsyscall\s()\n#1\s\s0xb7dee576\sin\spthread_cond_wait@@GLIBC_2.3.2\s()\sfrom\s/lib/libpthread.so.0\n#2\s\s0xb7ef6bb3\sin\sTcl_ConditionWait\s()\sfrom\s/usr/lib/libtcl8.5.so\n\nThread\s6\s(Thread\s0xb6c57b90\s(LWP\s6318)):\n#0\s\s0xffffe424\sin\s__kernel_vsyscall\s()\n#1\s\s0xb7dee576\sin\spthread_cond_wait@@GLIBC_2.3.2\s()\sfrom\s/lib/libpthread.so.0\n#2\s\s0xb7ef6bb3\sin\sTcl_ConditionWait\s()\sfrom\s/usr/lib/libtcl8.5.so\n\nThread\s5\s(Thread\s0xb6456b90\s(LWP\s6319)):\n#0\s\s0xffffe424\sin\s__kernel_vsyscall\s()\n#1\s\s0xb7dee576\sin\spthread_cond_wait@@GLIBC_2.3.2\s()\sfrom\s/lib/libpthread.so.0\n#2\s\s0xb7ef6bb3\sin\sTcl_ConditionWait\s()\sfrom\s/usr/lib/libtcl8.5.so\n\nThread\s4\s(Thread\s0xb5c55b90\s(LWP\s6320)):\n#0\s\s0xffffe424\sin\s__kernel_vsyscall\s()\n#1\s\s0xb7dee576\sin\spthread_cond_wait@@GLIBC_2.3.2\s()\sfrom\s/lib/libpthread.so.0\n#2\s\s0xb7ef6bb3\sin\sTcl_ConditionWait\s()\sfrom\s/usr/lib/libtcl8.5.so\n\nThread\s3\s(Thread\s0xb5454b90\s(LWP\s6321)):\n#0\s\s0xffffe424\sin\s__kernel_vsyscall\s()\n#1\s\s0xb7dee576\sin\spthread_cond_wait@@GLIBC_2.3.2\s()\sfrom\s/lib/libpthread.so.0\n#2\s\s0xb7ef6bb3\sin\sTcl_ConditionWait\s()\sfrom\s/usr/lib/libtcl8.5.so\n\nThread\s2\s(Thread\s0xb4c53b90\s(LWP\s6322)):\n#0\s\s0xffffe424\sin\s__kernel_vsyscall\s()\n#1\s\s0xb7df0c2e\sin\s__lll_mutex_lock_wait\s()\sfrom\s/lib/libpthread.so.0\n#2\s\s0xb7deca93\sin\s_L_mutex_lock_50\s()\sfrom\s/lib/libpthread.so.0\n#3\s\s0xb7dec47d\sin\spthread_mutex_lock\s()\sfrom\s/lib/libpthread.so.0\n#4\s\s0xb7ef6c42\sin\sTcl_MutexLock\s()\sfrom\s/usr/lib/libtcl8.5.so\n#5\s\s0x080ad3a0\sin\s??\s()\n#6\s\s0x080c3ff0\sin\s??\s()\n#7\s\s0xb4c534b8\sin\s??\s()\n#8\s\s0xb7e1dff4\sin\s??\s()\sfrom\s/usr/lib/thread2.6.5/libthread2.6.5.so\n#9\s\s0xbf832758\sin\s??\s()\n#10\s0xbf832758\sin\s??\s()\n#11\s0x080a8518\sin\s??\s()\n#12\s0xb7e171b4\sin\sTpoolWorker\s()\sfrom\s/usr/lib/thread2.6.5/libthread2.6.5.so\n#13\s0xb7f14ff4\sin\s??\s()\sfrom\s/usr/lib/libtcl8.5.so\n#14\s0xbf832758\sin\s??\s()\n#15\s0xb7e1e1ec\sin\slistMutex\s()\sfrom\s/usr/lib/thread2.6.5/libthread2.6.5.so\n#16\s0xb7f14ff4\sin\s??\s()\sfrom\s/usr/lib/libtcl8.5.so\n#17\s0xb7f14ff4\sin\s??\s()\sfrom\s/usr/lib/libtcl8.5.so\n#18\s0x08129400\sin\s??\s()\n#19\s0x080c3ff0\sin\s??\s()\n#20\s0xb7edbe38\sin\sTclpFree\s()\sfrom\s/usr/lib/libtcl8.5.so\n#21\s0x00000000\sin\s??\s()\n\nThread\s1\s(Thread\s0xb7c8d6c0\s(LWP\s6315)):\n#0\s\s0xffffe424\sin\s__kernel_vsyscall\s()\n#1\s\s0xb7dee576\sin\spthread_cond_wait@@GLIBC_2.3.2\s()\sfrom\s/lib/libpthread.so.0\n#2\s\s0xb7ef6bb3\sin\sTcl_ConditionWait\s()\sfrom\s/usr/lib/libtcl8.5.so\n#0\s\s0xffffe424\sin\s__kernel_vsyscall\s()\s\n\nThanks\sfor\syour\shelp\son\sthis\sissue.\nNathan\n
J login nathanjett
J mimetype text/plain
J username nathanjett
K 2005794fffffffffffffffffffffffffffffffff
U nathanjett
Z bcbd5f824982fb2e52997870e0c21568