[M3devel] AMD64_DARWIN head formsedit sometimes hangs starting up

Jay K jay.krell at cornell.edu
Sun Dec 6 15:31:13 CET 2009


formsedit startup seems to often hang in the debugger, in head.

The one obvious guess is that the thread trying to take the heap lock is waiting forever and not responding to the suspend.
I should probably go back and test I386_DARWIN and PPC_DARWIN instead? (and release branch)

(gdb) thread apply all bt

Thread 7 (process 56120 thread 0x250b):
#0  0x00007fffffe0027d in ?? ()
#1  0x00007fff83444db7 in _pthread_start ()
#2  0x00007fff83444d4d in thread_start ()

Thread 6 (process 56120 thread 0x240b):
#0  0x00007fffffe00278 in ?? ()
#1  0x00007fff83444db7 in _pthread_start ()
#2  0x00007fff83444d4d in thread_start ()

Thread 5 (process 56120 thread 0x2707):
#0  0x00007fffffe00296 in ?? ()
#1  0x00007fff83447ec2 in _pthread_lookup_thread ()
#2  0x00007fff83447e73 in pthread_mach_thread_np ()
#3  0x00000001009aa770 in ThreadPThread__SuspendThread ()
#4  0x00000001009a8db0 in ThreadPThread__StopThread (M3_DMxDjQ_act=0x101618080) at ../src/thread/PTHREAD/ThreadPThread.m3:1014
#5  0x00000001009a8f55 in ThreadPThread__StopWorld () at ../src/thread/PTHREAD/ThreadPThread.m3:1053
#6  0x00000001009a84d6 in RTThread__SuspendOthers () at ../src/thread/PTHREAD/ThreadPThread.m3:819
#7  0x0000000100988858 in RTCollector__CollectSomeInStateZero () at ../src/runtime/common/RTCollector.m3:746
#8  0x0000000100988804 in RTCollector__CollectSome () at ../src/runtime/common/RTCollector.m3:720
#9  0x0000000100988339 in RTHeapRep__CollectEnough () at ../src/runtime/common/RTCollector.m3:654
#10 0x000000010097fa2c in RTAllocator__AllocTraced (M3_Cwb5VA_dataSize=24, M3_Cwb5VA_dataAlignment=8, M3_BSbHbM_thread=0x10162c3e8) at ../src/runtime/common/RTAllocator.m3:365
#11 0x000000010097f2ad in RTAllocator__GetOpenArray (M3_Eic7CK_def=0x1009e1ac8, M3_ANmeAM_s=0x102186b10) at ../src/runtime/common/RTAllocator.m3:294
#12 0x000000010097e454 in RTHooks__AllocateOpenArray (M3_AJWxb1_defn=0x1009e1ac8, M3_ANmeAM_s=0x102186b10) at ../src/runtime/common/RTAllocator.m3:141
#13 0x00000001009a779b in ThreadPThread__XIOWait (M3_DMxDjQ_self=0x10162c370, M3_Cwb5VA_fd=3, M3_AicXUJ_read=1 '\001', M3_CtKayy_interval=-1, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:657
#14 0x00000001009a752e in SchedulerPosix__IOWait (M3_Cwb5VA_fd=3, M3_AicXUJ_read=1 '\001', M3_CtKayy_timeoutInterval=-1) at ../src/thread/PTHREAD/ThreadPThread.m3:631
#15 0x00000001003c0dfa in XInput__WaitForXInput (M3_Bkyxhg_self=0x101787a30) at ../src/xvbt/XInput.m3:63
#16 0x00000001009a6998 in ThreadPThread__RunThread (M3_DMxDjQ_me=0x10162c370) at ../src/thread/PTHREAD/ThreadPThread.m3:483
#17 0x00000001009a6642 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x10162c370) at ../src/thread/PTHREAD/ThreadPThread.m3:457
#18 0x00007fff83444e8b in _pthread_start ()
#19 0x00007fff83444d4d in thread_start ()

Thread 4 (process 56120 thread 0x2103):
#0  0x00007fff83416e3e in semaphore_wait_signal_trap ()
#1  0x00007fff8341e758 in pthread_mutex_lock ()
#2  0x00000001009aa6a3 in ThreadPThread__pthread_mutex_lock ()
#3  0x00000001009a9c39 in RTOS__LockHeap () at ../src/thread/PTHREAD/ThreadPThread.m3:1355
#4  0x000000010098e408 in RTWeakRef__WeakRefToRef (M3_D9M1dT_t=0x102103d50) at ../src/runtime/common/RTCollector.m3:2108
#5  0x00000001009c4147 in WeakRef__ToRef (M3_ArcXsu_w={<No data fields>}) at ../src/weakref/WeakRef.m3:20
#6  0x0000000100075781 in FileBrowserVBT__Watcher (M3_EMTrVz_cl=0x1015e9170) at ../src/lego/FileBrowserVBT.m3:243
#7  0x00000001009a6998 in ThreadPThread__RunThread (M3_DMxDjQ_me=0x1016185f0) at ../src/thread/PTHREAD/ThreadPThread.m3:483
#8  0x00000001009a6642 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1016185f0) at ../src/thread/PTHREAD/ThreadPThread.m3:457
#9  0x00007fff83444e8b in _pthread_start ()
#10 0x00007fff83444d4d in thread_start ()

Thread 3 (process 56120 thread 0x2003):
#0  0x00007fff8341ddc2 in __semwait_signal ()
#1  0x00007fff83445ca9 in _pthread_cond_wait ()
#2  0x00000001009aa5c8 in ThreadPThread__pthread_cond_wait ()
#3  0x00000001009a4e8e in ThreadPThread__XWait (M3_DMxDjQ_self=0x1016184d0, M3_AYIbX3_m=0x1015b5d20, M3_Bl0jv4_c=0x1015b5d38, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:183
#4  0x00000001009a4fb3 in Thread__Wait (M3_AYIbX3_m=0x1015b5d20, M3_Bl0jv4_c=0x1015b5d38) at ../src/thread/PTHREAD/ThreadPThread.m3:204
#5  0x000000010010b258 in VTView__VFontCleanUpThread (M3_EMTrVz_cl=0x1015b5d58) at ../src/vtext/VTView.m3:111
#6  0x00000001009a6998 in ThreadPThread__RunThread (M3_DMxDjQ_me=0x1016184d0) at ../src/thread/PTHREAD/ThreadPThread.m3:483
#7  0x00000001009a6642 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x1016184d0) at ../src/thread/PTHREAD/ThreadPThread.m3:457
#8  0x00007fff83444e8b in _pthread_start ()
#9  0x00007fff83444d4d in thread_start ()

Thread 2 (process 56120 thread 0x313):
#0  0x00007fff8341ddc2 in __semwait_signal ()
#1  0x00007fff83445ca9 in _pthread_cond_wait ()
#2  0x00000001009aa5c8 in ThreadPThread__pthread_cond_wait ()
#3  0x00000001009a4e8e in ThreadPThread__XWait (M3_DMxDjQ_self=0x101618080, M3_AYIbX3_m=0x1015b1940, M3_Bl0jv4_c=0x1015b1958, M3_AicXUJ_alertable=0 '\0') at ../src/thread/PTHREAD/ThreadPThread.m3:183
#4  0x00000001009a4fb3 in Thread__Wait (M3_AYIbX3_m=0x1015b1940, M3_Bl0jv4_c=0x1015b1958) at ../src/thread/PTHREAD/ThreadPThread.m3:204
#5  0x0000000100408cdc in VBTRep__MeterMaid (M3_EMTrVz_self=0x1015b19a8) at ../src/vbt/VBTRep.m3:439
#6  0x00000001009a6998 in ThreadPThread__RunThread (M3_DMxDjQ_me=0x101618080) at ../src/thread/PTHREAD/ThreadPThread.m3:483
#7  0x00000001009a6642 in ThreadPThread__ThreadBase (M3_AJWxb1_param=0x101618080) at ../src/thread/PTHREAD/ThreadPThread.m3:457
#8  0x00007fff83444e8b in _pthread_start ()
#9  0x00007fff83444d4d in thread_start ()

Thread 1 (process 56120 local thread 0x2e03):
#0  0x00007fff83444c48 in pthread_create ()
#1  0x00000001009aa2eb in ThreadPThread__thread_create ()
#2  0x00000001009a6c2d in Thread__Fork (M3_EMTrVz_closure=0x101787b20) at ../src/thread/PTHREAD/ThreadPThread.m3:517
#3  0x00000001003b1356 in XMessenger__Start (M3_AQuuui_trsl=0x102256350, M3_AcxOUs_stackSize=20000) at ../src/xvbt/XMessenger.m3:27
#4  0x00000001003cf42e in XClientF__Connect (M3_Bd56fi_inst=0x1015b7738, M3_AQuuui_trsl=0x0) at ../src/xvbt/XClientF.m3:591
#5  0x00000001003cfc23 in XClientF__DoConnect (M3_BFZe0V_self=0x1022561e0, M3_Bd56fi_inst=0x1015b7738, M3_AicXUJ_localOnly=0 '\0', M3_BBRY3I_t=0x7fff5fbff430) at ../src/xvbt/XClientF.m3:637
#6  0x00000001003ad581 in XClient__DoConnect (M3_BFZe0V_self=0x1022561e0, M3_Bd56fi_inst=0x1015b7738, M3_AicXUJ_localOnly=0 '\0', M3_BBRY3I_t=0x7fff5fbff430) at ../src/xvbt/XClient.m3:1495
#7  0x000000010040c03c in TrestleClass__Connect (M3_Bd56fi_inst=0x1015b7738, M3_AicXUJ_localOnly=0 '\0') at ../src/vbt/TrestleClass.m3:30
#8  0x0000000100471a5f in Trestle__Connect (M3_Bd56fi_inst=0x1015b7738) at ../src/trestle/Trestle.m3:855
#9  0x0000000100007031 in FormsEditVBT__EditorRootInit (M3_EVrIx4_root=0x1015b78a8, M3_CMge0G_frame=0x1015b7780, M3_Bd56fi_Xdisplay=0x1015b7738, M3_Bd56fi_Xgeometry=0x100163230) at ../src/FormsEditVBT.m3:248
#10 0x0000000100014250 in FormsEdit__main () at ../src/FormsEdit.m3:51
#11 0x0000000100014416 in FormsEdit_M3 (M3_AcxOUs_mode=1) at ../src/FormsEdit.m3:62
#12 0x00000001009937d6 in RTLinker__RunMainBody (M3_DjPxE3_m=0x10013c780) at ../src/runtime/common/RTLinker.m3:399
#13 0x0000000100992b1a in RTLinker__AddUnitI (M3_DjPxE3_m=0x10013c780) at ../src/runtime/common/RTLinker.m3:113
#14 0x0000000100992bb8 in RTLinker__AddUnit (M3_DjPxE5_b=0x10001428f) at ../src/runtime/common/RTLinker.m3:122
#15 0x0000000100005e14 in main (argc=1, argv=0x7fff5fbff990, envp=0x7fff5fbff9a0) at _m3main.mc:4
(gdb) cont
Continuing.


 - Jay
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20091206/509aee61/attachment-0001.html>


More information about the M3devel mailing list