Skip to content
Tcl Source Code Artifact [48ef9deae8]
Login

Artifact [48ef9deae8]

Artifact 48ef9deae82552c4bbadce388a69dd6ef3942a72:

Ticket change [48ef9deae8] - New ticket [2005794fffffffff|2005794fff] <i>tpool::create freezes when using minworkers</i>. by rudenstam on 2008-06-29 10:42:07.
D 2008-06-29T10:42:07
J assignee vasiljevic
J cmimetype text/plain
J comment When\strying\sto\suse\s-minworkers\swhen\screating\sa\sthreadpool,\sthe\stcl\sscript\sjust\sfreezes\sup\swhen\sthe\spool\sis\sto\sbe\screated.\sThis\sbehaviour\sis\sirregular\sand\sthe\sfollowing\scode\shas\sbeen\stested\sworking\son\sseveral\splatforms.\sOn\smy\sprevious\slinux\sinstallation,\sit\sworked\s6/10\stimes,\seither\sit\sfroze\swhere\sindicated\snow,\sor\sit\screated\sthe\spool\swithout\strouble.\sThat\sinstallation\swas\sa\sdebian\setch\srunning\stcl\s8.4.\n\nThe\sone\sI\shave\sthis\sproblem\s10/10\stimes\snow,\sis\sa\sdebian\slenny.\sI\sgot\sboth\stcl8.4.19\sand\stcl8.5.2\sinstalled\son\sit,\sand\sI\sget\sthe\sexact\ssame\sbehaviour\swith\sboth\stcl\sversions.\sThread\swas\sbuilt\sfrom\sCVS\sto\sinclude\sthe\srecent\sfix\sthat\sclosed\sbug\s1965721.\n\nI'd\sbe\shappy\sadd\sany\sother\sinformation\syou\smight\sneed\sand\sto\stry\sout\sany\spotential\sfix,\sas\sthis\sprobably\swill\swork\son\syour\send.\n\nCheers\nrudenstam\n\n-----------------------------------------\n\sCode\sused\sto\stest\sthis\n-----------------------------------------\nputs\s"Using\stcl\sversion:\s[info\spatchlevel]"\nputs\s"Loading\sthreads\sversion:\s[package\srequire\sThread]"\n\nset\smin\s5\nputs\s"Creating\sthe\sthreadpool\swith:\sset\spool\s\\[tpool::create\s-minworkers\s$min\\]"\n\nset\spool\s[tpool::create\s-minworkers\s$min]\n\nputs\s"pool\s$pool\screated"\n\n-----------------------------------------\n\sOutput\sof\stclsh\sthread.tcl\n-----------------------------------------\nUsing\stcl\sversion:\s8.4.19\nLoading\sthreads\sversion:\s2.6.5\nCreating\sthe\sthreadpool\swith:\sset\spool\s[tpool::create\s-minworkers\s5]\n\n-----------------------------------------\n\sOutput\sof\sstrace\stclsh\sthread.tcl\n-----------------------------------------\nwrite(1,\s"Creating\sthe\sthreadpool\swith:\sse"...,\s70Creating\sthe\sthreadpool\swith:\sset\spool\s[tpool::create\s-minworkers\s5]\n)\s=\s70\nmmap2(NULL,\s8392704,\sPROT_READ|PROT_WRITE,\sMAP_PRIVATE|MAP_ANONYMOUS,\s-1,\s0)\s=\s0xb6b22000\nmprotect(0xb6b22000,\s4096,\sPROT_NONE)\s\s\s=\s0\nclone(child_stack=0xb73224c4,\sflags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,\sparent_tidptr=0xb7322bd8,\s{entry_number:6,\sbase_addr:0xb7322b90,\slimit:1048575,\sseg_32bit:1,\scontents:0,\sread_exec_only:0,\slimit_in_pages:1,\sseg_not_present:0,\suseable:1},\schild_tidptr=0xb7322bd8)\s=\s14613\nfutex(0x804c4c0,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s1\nfutex(0x809a118,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s1\nfutex(0x809a11c,\s0x80\s/*\sFUTEX_???\s*/,\s1)\s=\s-1\sEAGAIN\s(Resource\stemporarily\sunavailable)\nfutex(0x804c4c0,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s0\nmmap2(NULL,\s8392704,\sPROT_READ|PROT_WRITE,\sMAP_PRIVATE|MAP_ANONYMOUS,\s-1,\s0)\s=\s0xb6321000\nmprotect(0xb6321000,\s4096,\sPROT_NONE)\s\s\s=\s0\nclone(child_stack=0xb6b214c4,\sflags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,\sparent_tidptr=0xb6b21bd8,\s{entry_number:6,\sbase_addr:0xb6b21b90,\slimit:1048575,\sseg_32bit:1,\scontents:0,\sread_exec_only:0,\slimit_in_pages:1,\sseg_not_present:0,\suseable:1},\schild_tidptr=0xb6b21bd8)\s=\s14614\nfutex(0x804c4c0,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s1\nfutex(0x809a118,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s1\nfutex(0x809a11c,\s0x80\s/*\sFUTEX_???\s*/,\s4)\s=\s-1\sEAGAIN\s(Resource\stemporarily\sunavailable)\nfutex(0x804c4c0,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s0\nmmap2(NULL,\s8392704,\sPROT_READ|PROT_WRITE,\sMAP_PRIVATE|MAP_ANONYMOUS,\s-1,\s0)\s=\s0xb5b20000\nmprotect(0xb5b20000,\s4096,\sPROT_NONE)\s\s\s=\s0\nclone(child_stack=0xb63204c4,\sflags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,\sparent_tidptr=0xb6320bd8,\s{entry_number:6,\sbase_addr:0xb6320b90,\slimit:1048575,\sseg_32bit:1,\scontents:0,\sread_exec_only:0,\slimit_in_pages:1,\sseg_not_present:0,\suseable:1},\schild_tidptr=0xb6320bd8)\s=\s14615\nfutex(0x804c4c0,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s1\nfutex(0x809a118,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s1\nfutex(0x809a11c,\s0x80\s/*\sFUTEX_???\s*/,\s9)\s=\s-1\sEAGAIN\s(Resource\stemporarily\sunavailable)\nfutex(0x804c4c0,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s0\nmmap2(NULL,\s8392704,\sPROT_READ|PROT_WRITE,\sMAP_PRIVATE|MAP_ANONYMOUS,\s-1,\s0)\s=\s0xb531f000\nmprotect(0xb531f000,\s4096,\sPROT_NONE)\s\s\s=\s0\nclone(child_stack=0xb5b1f4c4,\sflags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,\sparent_tidptr=0xb5b1fbd8,\s{entry_number:6,\sbase_addr:0xb5b1fb90,\slimit:1048575,\sseg_32bit:1,\scontents:0,\sread_exec_only:0,\slimit_in_pages:1,\sseg_not_present:0,\suseable:1},\schild_tidptr=0xb5b1fbd8)\s=\s14616\nfutex(0x804c4c0,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s1\nfutex(0x809a118,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s1\nfutex(0x809a11c,\s0x80\s/*\sFUTEX_???\s*/,\s16)\s=\s-1\sEAGAIN\s(Resource\stemporarily\sunavailable)\nfutex(0x804c4c0,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s1\nmmap2(NULL,\s8392704,\sPROT_READ|PROT_WRITE,\sMAP_PRIVATE|MAP_ANONYMOUS,\s-1,\s0)\s=\s0xb4b1e000\nmprotect(0xb4b1e000,\s4096,\sPROT_NONE)\s\s\s=\s0\nclone(child_stack=0xb531e4c4,\sflags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID,\sparent_tidptr=0xb531ebd8,\s{entry_number:6,\sbase_addr:0xb531eb90,\slimit:1048575,\sseg_32bit:1,\scontents:0,\sread_exec_only:0,\slimit_in_pages:1,\sseg_not_present:0,\suseable:1},\schild_tidptr=0xb531ebd8)\s=\s14617\nfutex(0x804c4c0,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s1\nfutex(0x809a118,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s1\nfutex(0x809a11c,\s0x80\s/*\sFUTEX_???\s*/,\s25)\s=\s-1\sEAGAIN\s(Resource\stemporarily\sunavailable)\nfutex(0x804c4c0,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s1\nwrite(1,\s"pool\stpool0x8063ed0\screated\\r\\n",\s29pool\stpool0x8063ed0\screated\n)\s=\s29\nfutex(0x809a11c,\s0x84\s/*\sFUTEX_???\s*/,\s1)\s=\s4\nfutex(0x809b598,\s0x81\s/*\sFUTEX_???\s*/,\s1)\s=\s1\nfutex(0x8088e64,\s0x80\s/*\sFUTEX_???\s*/,\s1\n\n
J foundin obsolete:\s8.4.19
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter rudenstam
J subsystem 80.\sThread\sPackage
J title tpool::create\sfreezes\swhen\susing\sminworkers
J type Bug
K 2005794fffffffffffffffffffffffffffffffff
U rudenstam
Z 48cf649540d0baab2a61dc4ee7d4e1ea