[M3devel] report on Windows XP builds/tests

Jay K jay.krell at cornell.edu
Wed Sep 2 06:20:41 CEST 2009


My fear is that I messed up when I factored sizeof(pthread_cond_t), sizeof(pthread_mutex_t), etc. out of the Modula-3 code.
The code looks right, but it is easy to miss a level of indirection, or something.
We also might as well wrap the last few that aren't wrapped, but no reason to believe that will fix anything.
 
 
My dashed hope is/was that the compiler being written in Modula-3, including using multiple threads, for garbage collection, would be a good test of the overall system working.
 
 
The caltech-parser problem looks familiar. I'll have to look again.
 
 
 - Jay


________________________________
> From: hosking at cs.purdue.edu
> To: rcoleburn at scires.com
> Date: Tue, 1 Sep 2009 23:52:39 -0400
> CC: m3devel at elegosoft.com; jay.krell at cornell.edu
> Subject: Re: [M3devel] report on Windows XP builds/tests
>
> mentor (and probably other GUI apps) lock up in ways I have not seen before (it has been a long time since I tried running it, but it always used to work for me without problems about the time that I was bedding down the native threads code so logs there might give the timeframe). I suspect something is quite broken, but don't know when the brokenness got introduced. Here is a backtrace for all threads:
>
> Thread 20 (process 84568 thread 0x4f07):
> #0 0x9634946e in __semwait_signal ()
> #1 0x963492ef in nanosleep$UNIX2003 ()
> #2 0x01022c22 in ThreadPThread__Nanosleep (req=0xb0fbcd9c, rem=0xb0fbcd94) at ../src/thread/PTHREAD/ThreadPThreadC.c:318
> #3 0x0101f32c in ThreadPThread__XPause (M3_BXP32l_self=0x1d7354c, M3_CtKayy_n=1, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:669
> #4 0x0101f8da in Thread__Pause (M3_CtKayy_n=1) at ../src/thread/PTHREAD/ThreadPThread.m3:686
> #5 0x00bc9cf4 in XClientF__MeterMaid (M3_AS2y1X_cl=0x1d7353c) at ../src/xvbt/XClientF.m3:105
> #6 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c299c0) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #7 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c299c0) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #8 0x96373155 in _pthread_start ()
> #9 0x96373012 in thread_start ()
>
> Thread 19 (process 84568 thread 0x4e0b):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1e84134, M3_AYIbX3_m=0x1bd1024, M3_Bl0jv4_c=0x1d37118, M3_AicXUJ_alertable=1 '\001') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01022311 in Thread__AlertWait (M3_AYIbX3_m=0x1bd1024, M3_Bl0jv4_c=0x1d37118) at ../src/thread/PTHREAD/ThreadPThread.m3:267
> #5 0x007ab7f2 in Zeus__WakeZeusAndSleep (M3_CQpoHd_zeus=0x1bce6f0, M3_B74vJ1_view=0x1d37044) at ../src/Zeus.m3:361
> #6 0x007abaa2 in Zeus__ViewThread (M3_BH3Tll_self=0x1e84128) at ../src/Zeus.m3:328
> #7 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c40a40) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #8 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c40a40) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #9 0x96373155 in _pthread_start ()
> #10 0x96373012 in thread_start ()
>
> Thread 18 (process 84568 thread 0x5c0b):
> #0 0x01020e19 in ThreadPThread__UnlockMutex (M3_AYIbX3_m=0x1e840bc) at ../src/thread/PTHREAD/ThreadPThread.m3:189
> #1 0x0101ee7a in ThreadPThread__XTestAlert (M3_BXP32l_self=0x1e840bc) at ../src/thread/PTHREAD/ThreadPThread.m3:324
> #2 0x0101f348 in ThreadPThread__XPause (M3_BXP32l_self=0x1e840bc, M3_CtKayy_n=0.0010560248047113419, M3_AicXUJ_alertable=1 '\001') at ../src/thread/PTHREAD/ThreadPThread.m3:670
> #3 0x0101f77a in Thread__AlertPause (M3_CtKayy_n=0.0010560248047113419) at ../src/thread/PTHREAD/ThreadPThread.m3:700
> #4 0x008f9ea1 in Animate__Do (M3_CCfZY3_t=0x1e8b104, M3_DsL7Zz_mg=0x0, M3_AdEaVQ_v=0x1e880f8, M3_BUucNs_duration=1) at ../src/Animate.m3:71
> #5 0x00909610 in MGV__Animation (M3_AdEaVQ_v=0x1e880f8, M3_BUucNs_duration=1) at ../src/MGV.m3:313
> #6 0x008921f9 in GraphVBT__AnimateGraph (M3_Cj00zi_graph=0x1e8800c, M3_BUucNs_t0=0, M3_BUucNs_t1=1) at ../src/GraphVBT.m3:656
> #7 0x00020798 in ViewIncrementalReal__ShowPixel (M3_BK0xTW_view=0x1da725c, M3_AcxOUs_x=4, M3_AcxOUs_y=2, M3_AcxOUs_p1=-2, M3_AcxOUs_p2=10) at ../src/bresenham/ViewIncrementalReal.m3:567
> #8 0x0001529a in BresenhamIE__OEDispatcher (M3_Ao6Rbg_v=0x1da725c, M3_Af40ku_evt=0x1f4e01c) at ../I386_DARWIN/BresenhamIE.m3:101
> #9 0x007abb9b in Zeus__ViewThread (M3_BH3Tll_self=0x1e840b0) at ../src/Zeus.m3:331
> #10 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c40960) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #11 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c40960) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #12 0x96373155 in _pthread_start ()
> #13 0x96373012 in thread_start ()
>
> Thread 17 (process 84568 thread 0x6f0f):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1e84044, M3_AYIbX3_m=0x1bd1024, M3_Bl0jv4_c=0x1df3bac, M3_AicXUJ_alertable=1 '\001') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01022311 in Thread__AlertWait (M3_AYIbX3_m=0x1bd1024, M3_Bl0jv4_c=0x1df3bac) at ../src/thread/PTHREAD/ThreadPThread.m3:267
> #5 0x007ab7f2 in Zeus__WakeZeusAndSleep (M3_CQpoHd_zeus=0x1bce6f0, M3_B74vJ1_view=0x1df3b00) at ../src/Zeus.m3:361
> #6 0x007abaa2 in Zeus__ViewThread (M3_BH3Tll_self=0x1e84038) at ../src/Zeus.m3:328
> #7 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c40610) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #8 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c40610) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #9 0x96373155 in _pthread_start ()
> #10 0x96373012 in thread_start ()
>
> Thread 16 (process 84568 thread 0x425b):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1d7e534, M3_AYIbX3_m=0x1d4bd28, M3_Bl0jv4_c=0x1d4bd44, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01021d71 in Thread__Wait (M3_AYIbX3_m=0x1d4bd28, M3_Bl0jv4_c=0x1d4bd44) at ../src/thread/PTHREAD/ThreadPThread.m3:278
> #5 0x007baaa1 in ZeusPanel__PanelThread (M3_CvdnuP_pc=0x1d7e524) at ../src/ZeusPanel.m3:1425
> #6 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c3aa10) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #7 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c3aa10) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #8 0x96373155 in _pthread_start ()
> #9 0x96373012 in thread_start ()
>
> Thread 15 (process 84568 thread 0x310b):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1eb9e68, M3_AYIbX3_m=0x1bbc500, M3_Bl0jv4_c=0x1de15d4, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01021d71 in Thread__Wait (M3_AYIbX3_m=0x1bbc500, M3_Bl0jv4_c=0x1de15d4) at ../src/thread/PTHREAD/ThreadPThread.m3:278
> #5 0x00c40602 in Trestle__AwaitDelete (M3_BFdKo9_v=0x1df3b00) at ../src/trestle/Trestle.m3:884
> #6 0x007a98b1 in View__WaiterThread (M3_C7vPGX_waiter=0x1eb9e5c) at ../src/View.m3:74
> #7 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c39760) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #8 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c39760) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #9 0x96373155 in _pthread_start ()
> #10 0x96373012 in thread_start ()
>
> Thread 14 (process 84568 thread 0x3003):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1df32e4, M3_AYIbX3_m=0x1bbc500, M3_Bl0jv4_c=0x1da73c4, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01021d71 in Thread__Wait (M3_AYIbX3_m=0x1bbc500, M3_Bl0jv4_c=0x1da73c4) at ../src/thread/PTHREAD/ThreadPThread.m3:278
> #5 0x00c40602 in Trestle__AwaitDelete (M3_BFdKo9_v=0x1da725c) at ../src/trestle/Trestle.m3:884
> #6 0x007a98b1 in View__WaiterThread (M3_C7vPGX_waiter=0x1df32d8) at ../src/View.m3:74
> #7 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c395d0) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #8 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c395d0) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #9 0x96373155 in _pthread_start ()
> #10 0x96373012 in thread_start ()
>
> Thread 13 (process 84568 thread 0x2f03):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1d512e4, M3_AYIbX3_m=0x1bbc500, M3_Bl0jv4_c=0x1d3932c, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01021d71 in Thread__Wait (M3_AYIbX3_m=0x1bbc500, M3_Bl0jv4_c=0x1d3932c) at ../src/thread/PTHREAD/ThreadPThread.m3:278
> #5 0x00c40602 in Trestle__AwaitDelete (M3_BFdKo9_v=0x1d37044) at ../src/trestle/Trestle.m3:884
> #6 0x007a98b1 in View__WaiterThread (M3_C7vPGX_waiter=0x1d512d8) at ../src/View.m3:74
> #7 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c39160) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #8 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c39160) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #9 0x96373155 in _pthread_start ()
> #10 0x96373012 in thread_start ()
>
> Thread 12 (process 84568 thread 0x2e03):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1d392a4, M3_AYIbX3_m=0x1d3722c, M3_Bl0jv4_c=0x1d375a4, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01021d71 in Thread__Wait (M3_AYIbX3_m=0x1d3722c, M3_Bl0jv4_c=0x1d375a4) at ../src/thread/PTHREAD/ThreadPThread.m3:278
> #5 0x00bb7962 in XMessenger__Messenger (M3_EVlqQO_self=0x1d39294) at ../src/xvbt/XMessenger.m3:69
> #6 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c38e10) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #7 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c38e10) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #8 0x96373155 in _pthread_start ()
> #9 0x96373012 in thread_start ()
>
> Thread 11 (process 84568 thread 0x2d03):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1d39254, M3_AYIbX3_m=0x1d3722c, M3_Bl0jv4_c=0x1d375c4, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01021d71 in Thread__Wait (M3_AYIbX3_m=0x1d3722c, M3_Bl0jv4_c=0x1d375c4) at ../src/thread/PTHREAD/ThreadPThread.m3:278
> #5 0x00bbdbc2 in XInput__FilterXInput (M3_DSd60P_self=0x1d39244) at ../src/xvbt/XInput.m3:102
> #6 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c38d40) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #7 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c38d40) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #8 0x96373155 in _pthread_start ()
> #9 0x96373012 in thread_start ()
>
> Thread 10 (process 84568 thread 0x2a2b):
> #0 0x963916fa in select$DARWIN_EXTSN ()
> #1 0x01023463 in Unix__select (nfds=7, readfds=0x1d356f4, writefds=0x1d35704, exceptfds=0x1d35714, timeout=0x0) at ../src/unix/Common/UnixC.c:301
> #2 0x0101dba2 in ThreadPThread__XIOWait__CallSelect.770 (M3_Cwb5VA_nfd=, M3_A4bqCj_timeout=0x0) at ../src/thread/PTHREAD/ThreadPThread.m3:788
> #3 0x0101f155 in ThreadPThread__XIOWait (M3_BXP32l_self=0x1d39204, M3_Cwb5VA_fd=, M3_AicXUJ_read=1 '\001', M3_CtKayy_interval=-1, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:827
> #4 0x0101f62c in SchedulerPosix__IOWait (M3_Cwb5VA_fd=, M3_AicXUJ_read=1 '\001', M3_CtKayy_timeoutInterval=-1) at ../src/thread/PTHREAD/ThreadPThread.m3:730
> #5 0x00bbf20b in XInput__WaitForXInput (M3_Bkyxhg_self=0x1d391f4) at ../src/xvbt/XInput.m3:63
> #6 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c38c70) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #7 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c38c70) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #8 0x96373155 in _pthread_start ()
> #9 0x96373012 in thread_start ()
>
> Thread 9 (process 84568 thread 0x29f3):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1bd1164, M3_AYIbX3_m=0x1bd1024, M3_Bl0jv4_c=0x1bd1030, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01021d71 in Thread__Wait (M3_AYIbX3_m=0x1bd1024, M3_Bl0jv4_c=0x1bd1030) at ../src/thread/PTHREAD/ThreadPThread.m3:278
> #5 0x007ab312 in Zeus__AlgToViews (M3_CQpoHd_zeus=0x1bce6f0, M3_Ao6Rbg_initiator=0x1bd1cc8, M3_BMhQCx_dispatchProc=0x150e0, M3_Af40ku_evtArgs=0x1f4e01c) at ../src/Zeus.m3:306
> #6 0x007ac1f0 in Zeus__Dispatch (M3_Ao6Rbg_initiator=0x1bd1cc8, M3_DsvzJ6_style=0 '\0', M3_AcxOUs_priority=1, M3_Bd56fi_eventName=0x1d9d60, M3_BMhQCx_dispatchProc=0x150e0, M3_Af40ku_evtArgs=0x1f4e01c) at ../src/Zeus.m3:246
> #7 0x000149a7 in BresenhamIE__ShowPixel (M3_CfiRBL_initiator=0x1bd1cc8, M3_AcxOUs_x=4, M3_AcxOUs_y=2, M3_AcxOUs_p1=-2, M3_AcxOUs_p2=10) at ../I386_DARWIN/BresenhamIE.m3:227
> #8 0x000175b7 in AlgBresenham__DrawLine (M3_ECecEc_alg=0x1bd1cc8, M3_AcxOUs_x1=0, M3_AcxOUs_y1=0, M3_AcxOUs_x2=10, M3_AcxOUs_y2=6) at ../src/bresenham/AlgBresenham.m3:55
> #9 0x0001788f in AlgBresenham__Run (M3_ECecEc_alg=0x1bd1cc8) at ../src/bresenham/AlgBresenham.m3:86
> #10 0x007bb729 in ZeusPanel__AlgThread (M3_Dijbki_ac=0x1bd1150) at ../src/ZeusPanel.m3:1534
> #11 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c2a110) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #12 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c2a110) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #13 0x96373155 in _pthread_start ()
> #14 0x96373012 in thread_start ()
>
> Thread 8 (process 84568 thread 0x2803):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1d6200c, M3_AYIbX3_m=0x1d43fb4, M3_Bl0jv4_c=0x1d43fc0, M3_AicXUJ_alertable=1 '\001') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01022311 in Thread__AlertWait (M3_AYIbX3_m=0x1d43fb4, M3_Bl0jv4_c=0x1d43fc0) at ../src/thread/PTHREAD/ThreadPThread.m3:267
> #5 0x00e3bdf2 in Formatter__Allocate (M3_ACp9GL_t=0x1d43658, M3_DBiloZ_this=1 '\001', M3_Cwb5VA_minSize=) at ../src/formatter/Formatter.m3:440
> #6 0x00e3bf0a in Formatter__Probe (M3_ACp9GL_t=0x1d43658, M3_Cwb5VA_i=) at ../src/formatter/Formatter.m3:542
> #7 0x00e3c2b8 in Formatter__Peek (M3_ACp9GL_t=0x1d43658, M3_Cwb5VA_i=) at ../src/formatter/Formatter.m3:592
> #8 0x00e3c2ff in Formatter__PeekOp (M3_ACp9GL_t=0x1d43658, M3_Cwb5VA_i=) at ../src/formatter/Formatter.m3:577
> #9 0x00e3cb25 in Formatter__PrintUntil (M3_ACp9GL_t=0x1d43658, M3_DOUxXw_mode=1 '\001', M3_ElBLGV_pos=0xb038ce90, M3_Cwb5VA_maxL=, M3_CCuODf_op=0x1d44c28) at ../src/formatter/Formatter.m3:708
> #10 0x00e3cfc9 in Formatter__PrintTop (M3_B5Nhtj_self=0x1d43fd0) at ../src/formatter/Formatter.m3:615
> #11 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c29240) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #12 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c29240) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #13 0x96373155 in _pthread_start ()
> #14 0x96373012 in thread_start ()
>
> Thread 7 (process 84568 thread 0x2703):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1d435f0, M3_AYIbX3_m=0x1d435c4, M3_Bl0jv4_c=0x1d435d0, M3_AicXUJ_alertable=1 '\001') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01022311 in Thread__AlertWait (M3_AYIbX3_m=0x1d435c4, M3_Bl0jv4_c=0x1d435d0) at ../src/thread/PTHREAD/ThreadPThread.m3:267
> #5 0x00e3bdf2 in Formatter__Allocate (M3_ACp9GL_t=0x1d42c68, M3_DBiloZ_this=1 '\001', M3_Cwb5VA_minSize=) at ../src/formatter/Formatter.m3:440
> #6 0x00e3bf0a in Formatter__Probe (M3_ACp9GL_t=0x1d42c68, M3_Cwb5VA_i=) at ../src/formatter/Formatter.m3:542
> #7 0x00e3c2b8 in Formatter__Peek (M3_ACp9GL_t=0x1d42c68, M3_Cwb5VA_i=) at ../src/formatter/Formatter.m3:592
> #8 0x00e3c2ff in Formatter__PeekOp (M3_ACp9GL_t=0x1d42c68, M3_Cwb5VA_i=) at ../src/formatter/Formatter.m3:577
> #9 0x00e3cb25 in Formatter__PrintUntil (M3_ACp9GL_t=0x1d42c68, M3_DOUxXw_mode=1 '\001', M3_ElBLGV_pos=0xb030ae90, M3_Cwb5VA_maxL=, M3_CCuODf_op=0x1d44c28) at ../src/formatter/Formatter.m3:708
> #10 0x00e3cfc9 in Formatter__PrintTop (M3_B5Nhtj_self=0x1d435e0) at ../src/formatter/Formatter.m3:615
> #11 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c29060) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #12 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c29060) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #13 0x96373155 in _pthread_start ()
> #14 0x96373012 in thread_start ()
>
> Thread 6 (process 84568 thread 0x2603):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1d449dc, M3_AYIbX3_m=0x1d448d4, M3_Bl0jv4_c=0x1d449c0, M3_AicXUJ_alertable=1 '\001') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01022311 in Thread__AlertWait (M3_AYIbX3_m=0x1d448d4, M3_Bl0jv4_c=0x1d449c0) at ../src/thread/PTHREAD/ThreadPThread.m3:267
> #5 0x0073de32 in WorkerPool__ClericApply (M3_BSwVRC_self=0x1d449d0) at ../src/WorkerPool.m3:152
> #6 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c28e00) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #7 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c28e00) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #8 0x96373155 in _pthread_start ()
> #9 0x96373012 in thread_start ()
>
> Thread 5 (process 84568 thread 0x2313):
> #0 0x963916fa in select$DARWIN_EXTSN ()
> #1 0x01023463 in Unix__select (nfds=4, readfds=0x1d46014, writefds=0x1d46024, exceptfds=0x1d46034, timeout=0xb0206b40) at ../src/unix/Common/UnixC.c:301
> #2 0x0101dba2 in ThreadPThread__XIOWait__CallSelect.770 (M3_Cwb5VA_nfd=, M3_A4bqCj_timeout=0xb0206b40) at ../src/thread/PTHREAD/ThreadPThread.m3:788
> #3 0x0101f155 in ThreadPThread__XIOWait (M3_BXP32l_self=0x1d2a5bc, M3_Cwb5VA_fd=, M3_AicXUJ_read=1 '\001', M3_CtKayy_interval=-1, M3_AicXUJ_alertable=1 '\001') at ../src/thread/PTHREAD/ThreadPThread.m3:827
> #4 0x0101f4ec in SchedulerPosix__IOAlertWait (M3_Cwb5VA_fd=, M3_AicXUJ_read=1 '\001', M3_CtKayy_timeoutInterval=-1) at ../src/thread/PTHREAD/ThreadPThread.m3:743
> #5 0x00dd3cc2 in TCPMisc__AcceptFrom (M3_AahksS_c=0x1d2a594, M3_DoBjMZ_peer=0xb0206cb4) at ../src/POSIX/TCP.m3:458
> #6 0x00dd3da8 in TCP__Accept (M3_AahksS_c=0x1d2a594) at ../src/POSIX/TCP.m3:234
> #7 0x006dbc6b in LocalObjectSpace__SpaceAccept (M3_Dbz8GV_self=0x1d2a5b0) at ../src/LocalObjectSpace.m3:307
> #8 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c29130) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #9 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c29130) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #10 0x96373155 in _pthread_start ()
> #11 0x96373012 in thread_start ()
>
> Thread 4 (process 84568 thread 0x2003):
> #0 0x9634946e in __semwait_signal ()
> #1 0x963492ef in nanosleep$UNIX2003 ()
> #2 0x01022c22 in ThreadPThread__Nanosleep (req=0xb0184dbc, rem=0xb0184db4) at ../src/thread/PTHREAD/ThreadPThreadC.c:318
> #3 0x0101f32c in ThreadPThread__XPause (M3_BXP32l_self=0x1bc7a08, M3_CtKayy_n=1, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:669
> #4 0x0101f8da in Thread__Pause (M3_CtKayy_n=1) at ../src/thread/PTHREAD/ThreadPThread.m3:686
> #5 0x00a11d53 in FileBrowserVBT__Watcher (M3_EMTrVz_cl=0x1bc7a00) at ../src/lego/FileBrowserVBT.m3:259
> #6 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c21830) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #7 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c21830) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #8 0x96373155 in _pthread_start ()
> #9 0x96373012 in thread_start ()
>
> Thread 3 (process 84568 thread 0x1f03):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1bc50d4, M3_AYIbX3_m=0x1bc50b0, M3_Bl0jv4_c=0x1bc50bc, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01021d71 in Thread__Wait (M3_AYIbX3_m=0x1bc50b0, M3_Bl0jv4_c=0x1bc50bc) at ../src/thread/PTHREAD/ThreadPThread.m3:278
> #5 0x00a839e2 in VTView__VFontCleanUpThread (M3_EMTrVz_cl=0x1bc50cc) at ../src/vtext/VTView.m3:111
> #6 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c21310) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #7 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c21310) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #8 0x96373155 in _pthread_start ()
> #9 0x96373012 in thread_start ()
>
> Thread 2 (process 84568 thread 0x313):
> #0 0x0101f32f in ThreadPThread__XPause (M3_BXP32l_self=0x1bbc6c8, M3_CtKayy_n=0.050000000000000003, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:669
> #1 0x0101f8da in Thread__Pause (M3_CtKayy_n=0.050000000000000003) at ../src/thread/PTHREAD/ThreadPThread.m3:686
> #2 0x00bf36ce in VBTRep__MeterMaid (M3_EMTrVz_self=0x1bbc6bc) at ../src/vbt/VBTRep.m3:460
> #3 0x010215d1 in ThreadPThread__RunThread (M3_BeUkBA_me=0x1c21390) at ../src/thread/PTHREAD/ThreadPThread.m3:547
> #4 0x010218d7 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1c21390) at ../src/thread/PTHREAD/ThreadPThread.m3:523
> #5 0x96373155 in _pthread_start ()
> #6 0x96373012 in thread_start ()
>
> Thread 1 (process 84568 local thread 0x2e03):
> #0 0x963422ce in semaphore_wait_signal_trap ()
> #1 0x963742c6 in _pthread_cond_wait ()
> #2 0x963b9539 in pthread_cond_wait ()
> #3 0x01021c08 in ThreadPThread__XWait (M3_BXP32l_self=0x1bbc00c, M3_AYIbX3_m=0x1bbc500, M3_Bl0jv4_c=0x1d7e580, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:227
> #4 0x01021d71 in Thread__Wait (M3_AYIbX3_m=0x1bbc500, M3_Bl0jv4_c=0x1d7e580) at ../src/thread/PTHREAD/ThreadPThread.m3:278
> #5 0x00c40602 in Trestle__AwaitDelete (M3_BFdKo9_v=0x1bfdd44) at ../src/trestle/Trestle.m3:884
> #6 0x007c09eb in ZeusPanel__Interact (M3_Bd56fi_title=0x290db0, M3_DYb95R_path=0x1d758c0) at ../src/ZeusPanel.m3:477
> #7 0x001b0ede in Main_M3 (M3_AcxOUs_mode=1) at ../src/Main.m3:165
> #8 0x0100edbf in RTLinker__RunMainBody (M3_DjPxE3_m=0x1d6060) at ../src/runtime/common/RTLinker.m3:400
> #9 0x00002578 in main (argc=1, argv=0xbfffee00, envp=0xbfffee08) at _m3main.mc:6
>
>
> On 1 Sep 2009, at 22:53, Randy Coleburn wrote:
>
> I tried upgrade.py again, and it seemed to work this time. I think I may have forgotten to run vcvars to setup the Visual C++ command line on my prior attempt. Sorry.
>
> Here is the compiler output for the "caltech-parser\parserlib\parserlib\test" build:
>
> --- processing package "caltech-parser\parserlib\parserlib\test" ---
> --- building in NT386 ---
>
> LIB_INSTALL is C:\cm3\lib
> ignoring ..\src\m3overrides
>
> C:\cm3\caltech-parser\parserlib\ktok\NT386\ktok ..\src\Calc.t -o CalcTok.i3
> C:\cm3\caltech-parser\parserlib\ktok\NT386\ktok ..\src\Calc.t -o CalcTok.i3
> The system cannot find the path specified.
> "C:\cm3\pkg\cit_util\src\generics.tmpl", line 38: quake runtime error: exit 1: C:\cm3\caltech-parser\parserlib\ktok\NT386\ktok ..\src\Calc.t -o CalcTok.i3
>
> --procedure-- -line- -file---
> exec --
> _exec 38 C:\cm3\pkg\cit_util\src\generics.tmpl
> _xCons 37 C:\cm3\pkg\parserlib\src\parser.tmpl
> _tCons 70 C:\cm3\pkg\parserlib\src\parser.tmpl
> _tConsUn 71 C:\cm3\pkg\parserlib\src\parser.tmpl
> token 73 C:\cm3\pkg\parserlib\src\parser.tmpl
> include_dir 4 C:\cm3\Sandbox\cm3\caltech-parser\parserlib\parserlib\test\src\m3makefile
> 4 C:\cm3\Sandbox\cm3\caltech-parser\parserlib\parserlib\test\NT386\m3make.args
>
> Fatal Error: package build failed
>
> I tried running juno and mentor again. I get different results each run. Interestingly, sometimes mentor didn't crash, instead giving me an error message about not having my HOME environment var set. I tried later to set this, but mentor still crashes. Once when I ran juno it complained that it tried to join a thread twice. Sounds like something is broken in the threading or GC, or the program is coded wrongly somehow. See below for some sample runs of mentor and juno:
>
> C:\cm3\Sandbox\cm3\scripts\win>mentor
>
> ***
> *** runtime error:
> *** Exception "FormsVBT.Error" not in RAISES list
> *** file "..\src\FormsVBT.m3", line 73
> ***
>
>
>
> ***
> *** runtime error:
> *** An enumeration or subrange value was out of range.
> *** file "..\src\runtime\common\RTType.m3", line 71
> ***
>
>
> C:\cm3\Sandbox\cm3\scripts\win>mentor
> Error: the HOME environment variable is undefined.
> Please set it to the path of your home directory and try again.
>
> C:\cm3\Sandbox\cm3\scripts\win>mentor
> Error: the HOME environment variable is undefined.
> Please set it to the path of your home directory and try again.
>
> C:\cm3\Sandbox\cm3\scripts\win>mentor
>
> ***
> *** runtime error:
> ***  failed.
> *** file "..\src\thread\WIN32\ThreadWin32.m3", line 453
> ***
>
> Stack trace:
> FP PC Procedure
> --------- --------- -------------------------------
> 0x12fc48 0x84ad19 CheckSlot + 0x28 in ..\src\thread\WIN32\ThreadWin32.m3
> 0x12fc8c 0x84b8ba Fork + 0x2a1 in ..\src\thread\WIN32\ThreadWin32.m3
> 0x12fcc4 0x1221c8c Parse + 0x5c in ..\src\FormsVBT.m3
> 0x12fd7c 0x1247c0c Insert + 0x149 in ..\src\FVRuntime.m3
> 0x12fde8 0x164cd6b UpdateSessionMenu + 0x3c9 in ..\src\ZeusPanel.m3
> 0x12fe18 0x164c997 GetGroupInfo + 0xb5 in ..\src\ZeusPanel.m3
> 0x12fe60 0x164d842 RegisterView + 0xf5 in ..\src\ZeusPanel.m3
> 0x12fe88 0x4e32da RegisterView + 0x30 in ..\NT386\MinimaxViewGameTreeBObliqView.m3
> 0x12fe9c 0x4e43c7 MinimaxViewGameTreeBObliqView_M3 + 0x39 in ..\NT386\MinimaxViewGameTreeBObliqView.m3
>
> Here is another run of Juno. This one dies on a different line number in same module.
>
>
> C:\cm3\Sandbox\cm3\scripts\win>juno
>
> ***
> *** runtime error:
> ***  failed.
> *** file "..\src\runtime\common\RTCollector.m3", line 1087
> ***
>
> Stack trace:
> FP PC Procedure
> --------- --------- -------------------------------
> 0x263fb34 0x5d115f CleanBetween + 0x48 in ..\src\runtime\common\RTCollector.m3
> 0x263fb7c 0x5d4cd9 CheckLoadTracedRef + 0xfa in ..\src\runtime\common\RTCollector.m3
> 0x263fbc4 0x100117f6 AnnotateAtoms.Expr0 + 0x401 in ..\src\JunoCompile.m3
> 0x263fbe8 0x10011f09 AnnotateAtoms.ExprList0 + 0xc0 in ..\src\JunoCompile.m3
> 0x263fc34 0x100121b4 AnnotateAtoms.Cmd0 + 0x253 in ..\src\JunoCompile.m3
> 0x263fc80 0x10012b74 AnnotateAtoms.Cmd0 + 0xc13 in ..\src\JunoCompile.m3
> 0x263fccc 0x100128a2 AnnotateAtoms.Cmd0 + 0x941 in ..\src\JunoCompile.m3
> 0x263fd18 0x10012c4e AnnotateAtoms.Cmd0 + 0xced in ..\src\JunoCompile.m3
> 0x263fd64 0x10012225 AnnotateAtoms.Cmd0 + 0x2c4 in ..\src\JunoCompile.m3
> 0x263fdb0 0x10012a9a AnnotateAtoms.Cmd0 + 0xb39 in ..\src\JunoCompile.m3
> ......... ......... ... more frames ...
>
> Regards,
> Randy Coleburn
>
>>>> Jay K> 9/1/2009 9:33 PM>>>
> Is the message about errno.h correct?
> caltech-parser..hm.. you are up to date? I thought I had either fixed it, or filtered it out.
> Mutex/mentor I'll have to look at.
>
> - Jay
>
> ________________________________
> Date: Tue, 1 Sep 2009 20:09:25 -0400
> From: rcoleburn at scires.com
> To: m3devel at elegosoft.com
> Subject: [M3devel] report on Windows XP builds/tests
>
> Hi, I am back from vacation.
>
> I've updated my sandbox on WindowsXP to be current with the CVS head.
>
> I tried first to run Jay's "upgrade.py", but got the following error:
>
> C:\cm3\Sandbox\cm3\scripts\python>upgrade.py
> using c:\cm3\bin\cm3.exe
> PATH=c:\cm3\bin;%PATH%
> set CM3_TARGET=NT386
> set CM3_INSTALL=c:\cm3
> set M3CONFIG=C:\cm3\Sandbox\cm3\m3-sys\cminstall\src\config-no-install\NT386
> set CM3_ROOT=C:/cm3/Sandbox/cm3
> ERROR: errno.h not found in %INCLUDE%(C:\msdev\80\VC\include;C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include;C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include)
> C:\cm3\Sandbox\cm3\scripts\python>
>
> Next I tried my upgrade script and was successful. Then I used my "do-cm3.cmd" script to rebuild all packages and was successful, except for "m3-sys\m3cc" and "caltech-parser\parserlib\parserlib\test".
>
> In catching up on my email, I noticed Olaf had asked about mentor and juno on Windows, so I tried running these. Juno starts up and puts up a window, but quickly crashes. mentor crashes before any window comes up and I also get a firewall request from Windows asking whether to block the program--I suspect it is trying to access the network, hence the firewall request. Here are the runtime error reports:
>
> C:\cm3\bin>mentor
>
> ***
> *** runtime error:
> *** Attempt to reference an illegal memory location.
> *** pc = 0x849590 = LockMutex + 0x9c in ..\src\thread\WIN32\ThreadWin32.m3
> ***
>
> Stack trace:
> FP PC Procedure
> --------- --------- -------------------------------
> 0x2abf97c 0x846fdd SystemError + 0x66 in ..\src\runtime\NT386\RTSignal.m3
> 0x2abf9b8 0x849590 LockMutex + 0x9c in ..\src\thread\WIN32\ThreadWin32.m3
> 0x2abf9e8 0x1405c72 Be + 0x3e in ..\src\split\TextVBT.m3
> 0x2abfb24 0x1235764 pText + 0x6f4 in ..\src\FormsVBT.m3
> 0x2abfb84 0x12234b1 Item + 0x48b in ..\src\FormsVBT.m3
> 0x2abfbb0 0x124107a OneChild + 0xf8 in ..\src\FormsVBT.m3
> 0x2abfc90 0x1227c9a pMButton + 0x11c in ..\src\FormsVBT.m3
> 0x2abfcf0 0x12234b1 Item + 0x48b in ..\src\FormsVBT.m3
> 0x2abfd1c 0x124107a OneChild + 0xf8 in ..\src\FormsVBT.m3
> 0x2abfe24 0x1227520 pShape + 0x19c in ..\src\FormsVBT.m3
> ......... ......... ... more frames ...
>
>
> C:\cm3\bin>juno
>
> ***
> *** runtime error:
> ***  failed.
> *** file "..\src\runtime\common\RTCollector.m3", line 2284
> ***
>
> Stack trace:
> FP PC Procedure
> --------- --------- -------------------------------
> 0x210f9d8 0x5d4e43 CheckStoreTraced + 0xde in ..\src\runtime\common\RTCollector.m3
> 0x210fa38 0x10041c74 Unnest + 0x124 in ..\src\JunoCompileNF.m3
> 0x210fac8 0x10040a49 B1 + 0x3d0 in ..\src\JunoCompileNF.m3
> 0x210faf4 0x1003f9b6 Normalize + 0x46 in ..\src\JunoCompileNF.m3
> 0x210fb20 0x10016b9f Cmd.C2pp + 0x20 in ..\src\JunoCompile.m3
> 0x210fb70 0x10016ac3 Cmd.C2p + 0x618 in ..\src\JunoCompile.m3
> 0x210fbcc 0x1001594b Cmd.C2 + 0x9c8 in ..\src\JunoCompile.m3
> 0x210fc24 0x100156b8 Cmd.C2 + 0x735 in ..\src\JunoCompile.m3
> 0x210fc7c 0x100151a0 Cmd.C2 + 0x21d in ..\src\JunoCompile.m3
> 0x210fcc8 0x10016b43 Cmd.C2p + 0x698 in ..\src\JunoCompile.m3
> ......... ......... ... more frames ...
>
> C:\cm3\bin>
>
> Juno crashes on an ASSERT in the collector, while mentor seems to be trying to lock a mutex that isn't properly initialized. I have not looked at the source code to try and debug. Let me know if you want me to pursue further.
>
> I've rebuilt some of my own programs and run some very basic tests. So far, no problems detected.
>
> I will try to run some tests on Vista platform tomorrow.
>
> Maybe it would be prudent for me to compile and run some of the tests ya'll have been implementing. I think the scripts for these aren't native Windows, but if you can point me to some of these, I'll try to translate for use on Windows.
>
> Let me know how I can best assist with the release effort.
>
> Regards,
> Randy Coleburn
>


More information about the M3devel mailing list