<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><span class="Apple-style-span" style="font-size: medium;"><font class="Apple-style-span" color="#0000FF" face="'Gill Sans'">The main thread should never hang here...</font></span></div><div><font class="Apple-style-span" color="#0000FF" face="'Gill Sans'"><span class="Apple-style-span" style="font-size: medium;"><br></span></font></div><div><font class="Apple-style-span" color="#0000FF" face="'Gill Sans'"><span class="Apple-style-span" style="font-size: medium;">Looks like thread 2 is not receiving/responding to the signal to stop.</span></font></div><div><font class="Apple-style-span" color="#0000FF" face="'Gill Sans'"><span class="Apple-style-span" style="font-size: medium;"><br></span></font></div><div><font class="Apple-style-span" color="#0000FF" face="'Gill Sans'"><span class="Apple-style-span" style="font-size: medium;">Something very wrong...</span></font></div></span></span></span></span></span></span></span></span></div></span></div></span> </div><br><div><div>On 31 Aug 2009, at 06:15, Jay K wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">"RandomTest" (that is its name) always hangs on I386_OPENBSD.<br> <br> <br>The main thread never finishes StopWorld:<br> <br> <br>(gdb) bt<br>#0  0x00ba08f1 in poll () from /usr/lib/libc.so.50.1<br>#1  0x04ab5314 in _thread_kern_poll (wait_reqd=1)<br>    at /usr/src/lib/libpthread/uthread/uthread_kern.c:760<br>#2  0x04ab4e53 in _thread_kern_sched (scp=0x0)<br>    at /usr/src/lib/libpthread/uthread/uthread_kern.c:382<br>#3  0x04ab519f in _thread_kern_sched_state (state=615149768,<br>    fname=0x24aa70c8 "", lineno=615149768)<br>    at /usr/src/lib/libpthread/uthread/uthread_kern.c:550<br>#4  0x04aaf085 in nanosleep (time_to_sleep=0xcfbcc1a8,<br>    time_remaining=0xcfbcc1b0)<br>    at /usr/src/lib/libpthread/uthread/uthread_nanosleep.c:84<br>#5  0x0166eafd in ThreadPThread__Nanosleep (req=0xcfbcc1a8, rem=0xcfbcc1b0)<br>    at ../src/thread/PTHREAD/ThreadPThreadC.c:318<br>#6  0x0166b6f4 in ThreadPThread__CommonSleep ()<br>    at ../src/thread/PTHREAD/ThreadPThread.m3:651<br>#7  0x0166d355 in ThreadPThread__StopWorld ()<br>    at ../src/thread/PTHREAD/ThreadPThread.m3:1142<br>#8  0x0166c9c3 in ThreadF__SuspendOthers ()<br>    at ../src/thread/PTHREAD/ThreadPThread.m3:918<br>#9  0x0164e70b in RTCollector__CollectSomeInStateZero ()<br>    at ../src/runtime/common/RTCollector.m3:747<br>#10 0x0164e6ca in RTCollector__CollectSome ()<br>    at ../src/runtime/common/RTCollector.m3:721<br>#11 0x0164e161 in RTCollector__CollectEnough (M3_AicXUJ_allocator=1 '\001')<br>---Type <return> to continue, or q <return> to quit---<br>    at ../src/runtime/common/RTCollector.m3:653<br>#12 0x01650cb7 in RTCollector__LongAlloc (M3_Cwb5VA_dataSize=92,<br>    M3_Cwb5VA_dataAlignment=4, M3_CAzbsM_pool=0x86770ab8)<br>    at ../src/runtime/common/RTCollector.m3:1438<br>#13 0x01650b14 in RTHeapRep__AllocTraced (M3_Cwb5VA_dataSize=92,<br>    M3_Cwb5VA_dataAlignment=4, M3_CAzbsM_pool=0x86770ab8)<br>    at ../src/runtime/common/RTCollector.m3:1400<br>#14 0x01645b47 in RTAllocator__GetOpenArray (M3_Eic7CK_def=0x216259d0,<br>    M3_ANmeAM_s=0xcfbcc4fc) at ../src/runtime/common/RTAllocator.m3:292<br>#15 0x01644e3c in RTHooks__AllocateOpenArray (M3_AJWxb1_defn=0x216259d0,<br>    M3_ANmeAM_s=0xcfbcc4fc) at ../src/runtime/common/RTAllocator.m3:141<br>#16 0x0c4b364f in RandomPerm__HQInit (M3_AMLmtL_t=0x7eed1fb0, M3_Cwb5VA_n=21,<br>    M3_BUCfej_r=0x7eecb0f4) at ../src/random/Common/RandomPerm.m3:55<br>#17 0x1c00489e in RandomTest__TestPerm () at ../src/RandomTest.m3:367<br>#18 0x1c0015f7 in RandomTest__Main () at ../src/RandomTest.m3:64<br>#19 0x1c00595c in RandomTest_M3 (M3_AcxOUs_mode=1) at ../src/RandomTest.m3:458<br>#20 0x01658a19 in RTLinker__RunMainBody (M3_DjPxE3_m=0x3c001660)<br>    at ../src/runtime/common/RTLinker.m3:400<br>#21 0x01657dd3 in RTLinker__AddUnitI (M3_DjPxE3_m=0x3c001660)<br>    at ../src/runtime/common/RTLinker.m3:114<br>#22 0x01657e61 in RTLinker__AddUnit (M3_DjPxE5_b=0x1c00588c)<br>    at ../src/runtime/common/RTLinker.m3:123<br>#23 0x1c001206 in main (argc=2, argv=0xcfbccadc, envp=0xcfbccae8)<br>    at _m3main.mc:4<br> <br> <br>While the other thread is in:<br> <br> <br>Thread 2 (process 5611, thread 0x7fc1d400):<br>#0  _thread_kern_sched (scp=0x0)<br>    at /usr/src/lib/libpthread/uthread/uthread_kern.c:482<br>#1  0x04ab5200 in _thread_kern_sched_state_unlock (state=PS_SIGTHREAD,<br>    lock=0x7fc1d4b0, fname=0x1 <Address 0x1 out of bounds>, lineno=1)<br>    at /usr/src/lib/libpthread/uthread/uthread_kern.c:581<br>#2  0x04ab2bc9 in pthread_cond_wait (cond=0x80dda100, mutex=0x80dda1e0)<br>    at /usr/src/lib/libpthread/uthread/uthread_cond.c:261<br>#3  0x01668b89 in ThreadPThread__XWait (M3_BXP32l_self=0x7eeff13c,<br>    M3_AYIbX3_m=0x7eecb018, M3_Bl0jv4_c=0x7eecb06c,<br>    M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:227<br>#4  0x01669235 in Thread__Wait (M3_AYIbX3_m=0x7eecb018,<br>    M3_Bl0jv4_c=0x7eecb06c) at ../src/thread/PTHREAD/ThreadPThread.m3:278<br>#5  0x0c4c1de7 in AutoFlushWr__Worker (M3_EMTrVz_cl=0x7eeff134)<br>    at ../src/rw/AutoFlushWr.m3:210<br>#6  0x0166acfb in ThreadPThread__RunThread (M3_BeUkBA_me=0x86770b00)<br>    at ../src/thread/PTHREAD/ThreadPThread.m3:547<br>#7  0x0166aa26 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x86770b00)<br>    at ../src/thread/PTHREAD/ThreadPThread.m3:523<br>#8  0x04aac37f in _thread_start ()<br>    at /usr/src/lib/libpthread/uthread/uthread_create.c:240<br>#9  0x0000002b in ?? ()<br>#10 0x00000000 in ?? ()<br> <br> <br>Maybe AutoFlushWr needs more work?<br>(It was crashing on platforms it didn't hang on.)<br> <br>I'll try to dig around more here..<br> <br> <br>  - Jay<br></div></span></blockquote></div><br></body></html>