[Vm-dev] Squeak COG v3 hangs during startup

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Tue Feb 28 01:26:11 UTC 2017


Hi,
I can't open an image with recent squeak.cog.v3 builds (at least on macosx).
The VM hangs in a sort of infinite loop with 100% CPU before the window open
If I sample the application I get something like

Call graph:
    2451 Thread_2029969   DispatchQueue_1: com.apple.main-thread  (serial)
    + 2445 start  (in libdyld.dylib) + 1  [0x9ea6c6ad]
    + ! 2445 NSApplicationMain  (in AppKit) + 1630  [0x9b8f9469]
    + !   2445 -[NSApplication run]  (in AppKit) + 1063  [0x9b932b47]
    + !     2445 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
(in AppKit) + 121  [0x9b93f432]
    + !       2445 -[NSApplication
_nextEventMatchingEventMask:untilDate:inMode:dequeue:]
(in AppKit) + 1057  [0x9b93f85b]
    + !         2445 _DPSNextEvent  (in AppKit) + 1053  [0x9b9402e2]
    + !           2445 _BlockUntilNextEventMatchingListInModeWithFilter
(in HIToolbox) + 99  [0x93703eec]
    + !             2445 ReceiveNextEventCommon  (in HIToolbox) + 201
[0x93703fc5]
    + !               2445 RunCurrentEventLoopInMode  (in HIToolbox) + 267
[0x937042f1]
    + !                 2445 CFRunLoopRunInMode  (in CoreFoundation) + 123
[0x9b4db72b]
    + !                   2445 CFRunLoopRunSpecific  (in CoreFoundation) +
390  [0x9b4db8c6]
    + !                     2445 __CFRunLoopRun  (in CoreFoundation) + 946
[0x9b4dbee2]
    + !                       2445 __CFRunLoopDoObservers  (in
CoreFoundation) + 398  [0x9b4fe7be]
    + !                         2445 __CFRUNLOOP_IS_CALLING_OUT_TO_
AN_OBSERVER_CALLBACK_FUNCTION__  (in CoreFoundation) + 30  [0x9b4fe85e]
    + !                           2445 __NSFirePerformWithOrder  (in
Foundation) + 416  [0x9e33e619]
    + !                             2445 -[sqSqueakMainApplication
runSqueak]  (in Squeak) + 439  [0x1518f9]  sqSqueakMainApplication.m:201
    + !                               2445 interpret  (in Squeak) + 641
[0xfcbd5]  gcc3x-cointerp.c:2274
    + !                                 2344 ???  (in <unknown binary>)
[0x1f406c51]
    + !                                 : 2342 primitiveFindHandlerContext
(in Squeak) + 62  [0x12632e]  gcc3x-cointerp.c:52399
    + !                                 : | 1530
findMethodWithPrimitiveFromContextUpToContext  (in Squeak) + 43,48
[0x12a3a1,0x12a3a6]  gcc3x-cointerp.c:42898
    + !                                 : | 217
findMethodWithPrimitiveFromContextUpToContext  (in Squeak) + 78,40,...
[0x12a3c4,0x12a39e,...]  sqMemoryAccess.h:141
    + !                                 : | 157
findMethodWithPrimitiveFromContextUpToContext  (in Squeak) + 84,244
[0x12a3ca,0x12a46a]  gcc3x-cointerp.c:30947
    + !                                 : | 153
findMethodWithPrimitiveFromContextUpToContext  (in Squeak) + 91
[0x12a3d1]  gcc3x-cointerp.c:46233
    + !                                 : | 98
findMethodWithPrimitiveFromContextUpToContext  (in Squeak) + 109,93,...
[0x12a3e3,0x12a3d3,...]  gcc3x-cointerp.c:46234
    + !                                 : | 59
findMethodWithPrimitiveFromContextUpToContext  (in Squeak) + 59,63
[0x12a3b1,0x12a3b5]  gcc3x-cointerp.c:42899
    + !                                 : | 42
findMethodWithPrimitiveFromContextUpToContext  (in Squeak) + 114,111,...
[0x12a3e8,0x12a3e5,...]  gcc3x-cointerp.c:42905
    + !                                 : | 36
findMethodWithPrimitiveFromContextUpToContext  (in Squeak) + 347,349,...
[0x12a4d1,0x12a4d3,...]  gcc3x-cointerp.c:42895
    + !                                 : | 21
findMethodWithPrimitiveFromContextUpToContext  (in Squeak) + 88
[0x12a3ce]  gcc3x-cointerp.c:30951
    + !                                 : | 10
findMethodWithPrimitiveFromContextUpToContext  (in Squeak) + 69,72
[0x12a3bb,0x12a3be]  gcc3x-cointerp.c:42902
    + !                                 : | 10
findMethodWithPrimitiveFromContextUpToContext  (in Squeak) + 134
[0x12a3fc]  gcc3x-cointerp.c:42911
    + !                                 : | + 7 isWidowedContext  (in
Squeak) + 61  [0x103c3c]  sqMemoryAccess.h:141
    + !                                 : | + 2 isWidowedContext  (in
Squeak) + 45  [0x103c2c]  gcc3x-cointerp.c:8819
    + !                                 : | + 1 isWidowedContext  (in
Squeak) + 114  [0x103c71]  gcc3x-cointerp.c:44170
    + !                                 : | 5
findMethodWithPrimitiveFromContextUpToContext
(in Squeak) + 167  [0x12a41d]  gcc3x-cointerp.c:42926
    + !                                 : | 4
findMethodWithPrimitiveFromContextUpToContext
(in Squeak) + 324  [0x12a4ba]  gcc3x-cointerp.c:42969
    + !                                 : 2 primitiveFindHandlerContext
(in Squeak) + 77  [0x12633d]  sqMemoryAccess.h:142
    + !                                 88 ???  (in <unknown binary>)
[0x1f4027f7]
    + !                                 : 88 primitiveNewWithArg  (in
Squeak) + 260  [0x12043b]  gcc3x-cointerp.c:26639
    + !                                 :   80 sufficientSpaceAfterGC  (in
Squeak) + 64  [0x117793]  gcc3x-cointerp.c:35969
    + !                                 :   | 39 fullGC  (in Squeak) + 172
[0x112d0a]  gcc3x-cointerp.c:32931
    + !                                 :   | + 39 markPhase  (in Squeak) +
23  [0x11310c]  gcc3x-cointerp.c:34292
    + !                                 :   | +   39
markAndTraceInterpreterOops  (in Squeak) + 105  [0x129a17]
gcc3x-cointerp.c:45375
    + !                                 :   | +     25
markAndTraceStackPage  (in Squeak) + 89  [0x129efe]  gcc3x-cointerp.c:13328
    + !                                 :   | +     ! 9 markAndTrace  (in
Squeak) + 457,461  [0x117e06,0x117e0a]  gcc3x-cointerp.c:39020
    + !                                 :   | +     ! 6 markAndTrace  (in
Squeak) + 368,379,...  [0x117dad,0x117db8,...]  sqMemoryAccess.h:141
    + !                                 :   | +     ! 3 markAndTrace  (in
Squeak) + 381  [0x117dba]  gcc3x-cointerp.c:38976
    + !                                 :   | +     ! 2 markAndTrace  (in
Squeak) + 593,430  [0x117e8e,0x117deb]  sqMemoryAccess.h:142
    + !                                 :   | +     ! 1 markAndTrace  (in
Squeak) + 387  [0x117dc0]  gcc3x-cointerp.c:38973
    + !                                 :   | +     ! 1 markAndTrace  (in
Squeak) + 436  [0x117df1]  gcc3x-cointerp.c:39008
    + !                                 :   | +     ! 1 markAndTrace  (in
Squeak) + 464  [0x117e0d]  gcc3x-cointerp.c:39030
    + !                                 :   | +     ! 1 markAndTrace  (in
Squeak) + 377  [0x117db6]  gcc3x-cointerp.c:39126
    + !                                 :   | +     ! 1 markAndTrace  (in
Squeak) + 811  [0x117f68]  gcc3x-cointerp.c:39137
    + !                                 :   | +     14
markAndTraceStackPage  (in Squeak) + 131  [0x129f28]  gcc3x-cointerp.c:13336
    + !                                 :   | +       5 markAndTrace  (in
Squeak) + 457  [0x117e06]  gcc3x-cointerp.c:39020
    + !                                 :   | +       3 markAndTrace  (in
Squeak) + 455,536  [0x117e04,0x117e55]  sqMemoryAccess.h:141
    + !                                 :   | +       2 markAndTrace  (in
Squeak) + 370  [0x117daf]  sqMemoryAccess.h:142
    + !                                 :   | +       1 markAndTrace  (in
Squeak) + 387  [0x117dc0]  gcc3x-cointerp.c:38973
    + !                                 :   | +       1 markAndTrace  (in
Squeak) + 446  [0x117dfb]  gcc3x-cointerp.c:39012
    + !                                 :   | +       1 markAndTrace  (in
Squeak) + 671  [0x117edc]  gcc3x-cointerp.c:39049
    + !                                 :   | +       1 markAndTrace  (in
Squeak) + 683  [0x117ee8]  gcc3x-cointerp.c:39050
    + !                                 :   | 27 fullGC  (in Squeak) + 691
[0x112f11]  gcc3x-cointerp.c:32961
    + !                                 :   | + 26 incCompBody  (in Squeak)
+ 354  [0x113375]  gcc3x-cointerp.c:33087
    + !                                 :   | + ! 10
mapPointersInObjectsFromto  (in Squeak) + 1750  [0x12af9a]
gcc3x-cointerp.c:40121
    + !                                 :   | + ! 4
mapPointersInObjectsFromto  (in Squeak) + 1741,1802  [0x12af91,0x12afce]
sqMemoryAccess.h:141
    + !                                 :   | + ! 2
mapPointersInObjectsFromto  (in Squeak) + 1591,1594  [0x12aefb,0x12aefe]
gcc3x-cointerp.c:40070
    + !                                 :   | + ! 2
mapPointersInObjectsFromto  (in Squeak) + 1794  [0x12afc6]
gcc3x-cointerp.c:40137
    + !                                 :   | + ! 2
mapPointersInObjectsFromto  (in Squeak) + 1943  [0x12b05b]
gcc3x-cointerp.c:40191
    + !                                 :   | + ! 2
mapPointersInObjectsFromto  (in Squeak) + 1956  [0x12b068]
gcc3x-cointerp.c:40193
    + !                                 :   | + ! 1
mapPointersInObjectsFromto  (in Squeak) + 1972  [0x12b078]
gcc3x-cointerp.c:40058
    + !                                 :   | + ! 1
mapPointersInObjectsFromto  (in Squeak) + 1628  [0x12af20]
gcc3x-cointerp.c:40078
    + !                                 :   | + ! 1
mapPointersInObjectsFromto  (in Squeak) + 1744  [0x12af94]
gcc3x-cointerp.c:40122
    + !                                 :   | + ! 1
mapPointersInObjectsFromto  (in Squeak) + 150  [0x12a95a]
gcc3x-cointerp.c:45134
    + !                                 :   | + !   1 mapStackPages  (in
Squeak) + 281  [0x12b1a3]  sqMemoryAccess.h:142
    + !                                 :   | + 1 incCompBody  (in Squeak)
+ 557  [0x113440]  gcc3x-cointerp.c:33284
    + !                                 :   | 4 fullGC  (in Squeak) + 415
[0x112dfd]  gcc3x-cointerp.c:36238
    + !                                 :   | 3 fullGC  (in Squeak) + 251
[0x112d59]  gcc3x-cointerp.c:36184
    + !                                 :   | 2 fullGC  (in Squeak) + 376
[0x112dd6]  gcc3x-cointerp.c:36236
    + !                                 :   | 1 fullGC  (in Squeak) + 428
[0x112e0a]  gcc3x-cointerp.c:36179
    + !                                 :   | 1 fullGC  (in Squeak) + 256
[0x112d5e]  gcc3x-cointerp.c:36186
    + !                                 :   | 1 fullGC  (in Squeak) + 336
[0x112dae]  gcc3x-cointerp.c:36227
    + !                                 :   | 1 fullGC  (in Squeak) + 353
[0x112dbf]  gcc3x-cointerp.c:36228
    + !                                 :   | + 1 finalizeReference  (in
Squeak) + 246  [0x113a6f]  gcc3x-cointerp.c:37583
    + !                                 :   | 1 fullGC  (in Squeak) + 412
[0x112dfa]  sqMemoryAccess.h:141
    + !                                 :   8 sufficientSpaceAfterGC  (in
Squeak) + 22  [0x117769]  gcc3x-cointerp.c:35962
    + !                                 :     5 incrementalGC  (in Squeak)
+ 134  [0x113594]  gcc3x-cointerp.c:33373
    + !                                 :     + 5 markPhase  (in Squeak) +
23  [0x11310c]  gcc3x-cointerp.c:34292
    + !                                 :     +   5
markAndTraceInterpreterOops  (in Squeak) + 245  [0x129aa3]
gcc3x-cointerp.c:45365
    + !                                 :     +     5
markAndTraceStackPage  (in Squeak) + 89  [0x129efe]  gcc3x-cointerp.c:13328
    + !                                 :     +       1 markAndTrace  (in
Squeak) + 14  [0x117c4b]  gcc3x-cointerp.c:38821
    + !                                 :     +       1 markAndTrace  (in
Squeak) + 389  [0x117dc2]  gcc3x-cointerp.c:38979
    + !                                 :     +       1 markAndTrace  (in
Squeak) + 450  [0x117dff]  gcc3x-cointerp.c:39019
    + !                                 :     +       1 markAndTrace  (in
Squeak) + 457  [0x117e06]  gcc3x-cointerp.c:39020
    + !                                 :     +       1 markAndTrace  (in
Squeak) + 818  [0x117f6f]  gcc3x-cointerp.c:39140
    + !                                 :     2 incrementalGC  (in Squeak)
+ 573  [0x11374b]  gcc3x-cointerp.c:33389
    + !                                 :     + 2 incCompBody  (in Squeak)
+ 354  [0x113375]  gcc3x-cointerp.c:33087
    + !                                 :     +   1
mapPointersInObjectsFromto  (in Squeak) + 1750  [0x12af9a]
gcc3x-cointerp.c:40121
    + !                                 :     +   1
mapPointersInObjectsFromto  (in Squeak) + 150  [0x12a95a]
gcc3x-cointerp.c:45134
    + !                                 :     +     1 mapStackPages  (in
Squeak) + 281  [0x12b1a3]  sqMemoryAccess.h:142
    + !                                 :     1 incrementalGC  (in Squeak)
+ 83  [0x113561]  gcc3x-cointerp.c:33369
    + !                                 :       1 ioUTCMicrosecondsNow  (in
Squeak) + 0  [0x15324f]  sqUnixHeartbeat.c:198
    + !                                 11 ???  (in <unknown binary>)
[0x1f4002b6]
    + !                                 : 11 ceStackOverflow  (in Squeak) +
105  [0x10869b]  gcc3x-cointerp.c:11069
    + !                                 :   10
checkForEventsMayContextSwitch  (in Squeak) + 577  [0x10566d]
gcc3x-cointerp.c:40834
    + !                                 :   | 10 ioProcessEvents  (in
Squeak) + 35  [0x14f12b]  sqSqueakEventsAPI.m:84
    + !                                 :   |   10 nativeIoProcessEvents
(in Squeak) + 190  [0x14f0da]  sqSqueakEventsAPI.m:67
    + !                                 :   |     8
-[sqSqueakOSXApplication(events) pumpRunLoop]  (in Squeak) + 47
[0x147d2d]  sqSqueakOSXApplication+events.m:126
    + !                                 :   |     + 8
-[sqSqueakMainApplication(events) pumpRunLoop]  (in Squeak) + 85
[0x1510dd]  sqSqueakMainApplication+events.m:61
    + !                                 :   |     +   6
-[NSRunLoop(NSRunLoop) runMode:beforeDate:]  (in Foundation) + 296
[0x9e271c9c]
    + !                                 :   |     +   ! 6
CFRunLoopRunInMode  (in CoreFoundation) + 123  [0x9b4db72b]
    + !                                 :   |     +   !   6
CFRunLoopRunSpecific  (in CoreFoundation) + 390  [0x9b4db8c6]
    + !                                 :   |     +   !     2
__CFRunLoopRun  (in CoreFoundation) + 994  [0x9b4dbf12]
    + !                                 :   |     +   !     : 2
__CFRunLoopDoSources0  (in CoreFoundation) + 112  [0x9b4dc950]
    + !                                 :   |     +   !     :   2
CFSetApplyFunction  (in CoreFoundation) + 169  [0x9b4a9e69]
    + !                                 :   |     +   !     :     1
CFBasicHashApply  (in CoreFoundation) + 89  [0x9b494799]
    + !                                 :   |     +   !     :     | 1
CFBasicHashGetBucket  (in CoreFoundation) + 0  [0x9b47e340]
    + !                                 :   |     +   !     :     1
CFBasicHashApply  (in CoreFoundation) + 130  [0x9b4947c2]
    + !                                 :   |     +   !     :       1
__CFSetApplyFunction_block_invoke  (in CoreFoundation) + 25  [0x9b4a9ec9]
    + !                                 :   |     +   !     :         1
__CFRunLoopCollectSources0  (in CoreFoundation) + 22  [0x9b4dcb66]
    + !                                 :   |     +   !     2
__CFRunLoopRun  (in CoreFoundation) + 1217  [0x9b4dbff1]
    + !                                 :   |     +   !     : 2
mach_port_insert_member  (in libsystem_kernel.dylib) + 31  [0x943dcc1f]
    + !                                 :   |     +   !     :   2
_kernelrpc_mach_port_insert_member_trap  (in libsystem_kernel.dylib) + 10
[0x943d743a]
    + !                                 :   |     +   !     1
__CFRunLoopRun  (in CoreFoundation) + 1521  [0x9b4dc121]
    + !                                 :   |     +   !     : 1
__CFRunLoopServiceMachPort  (in CoreFoundation) + 214  [0x9b4dcd16]
    + !                                 :   |     +   !     :   1 mach_msg
(in libsystem_kernel.dylib) + 68  [0x943d6884]
    + !                                 :   |     +   !     :     1
mach_msg_trap  (in libsystem_kernel.dylib) + 10  [0x943d749a]
    + !                                 :   |     +   !     1
__CFRunLoopRun  (in CoreFoundation) + 1729  [0x9b4dc1f1]
    + !                                 :   |     +   !       1
mach_port_extract_member  (in libsystem_kernel.dylib) + 31  [0x943dcc50]
    + !                                 :   |     +   !         1
_kernelrpc_mach_port_extract_member_trap  (in libsystem_kernel.dylib) + 10
[0x943d7446]
    + !                                 :   |     +   1
-[NSRunLoop(NSRunLoop) runMode:beforeDate:]  (in Foundation) + 191
[0x9e271c33]
    + !                                 :   |     +   ! 1
_CFRunLoopFinished  (in CoreFoundation) + 73  [0x9b50d579]
    + !                                 :   |     +   !   1
__CFRunLoopFindMode  (in CoreFoundation) + 174  [0x9b4a907e]
    + !                                 :   |     +   !     1
CFSetGetValue  (in CoreFoundation) + 123  [0x9b4a961b]
    + !                                 :   |     +   !       1
CFBasicHashFindBucket  (in CoreFoundation) + 514  [0x9b458e72]
    + !                                 :   |     +   !         1
__CFRunLoopModeHash  (in CoreFoundation) + 20  [0x9b4a9684]
    + !                                 :   |     +   !           1 CFHash
(in CoreFoundation) + 85  [0x9b455f25]
    + !                                 :   |     +   1
-[NSRunLoop(NSRunLoop) runMode:beforeDate:]  (in Foundation) + 261
[0x9e271c79]
    + !                                 :   |     +     1
CFAbsoluteTimeGetCurrent  (in CoreFoundation) + 0  [0x9b4aeff0]
    + !                                 :   |     2
-[sqSqueakOSXApplication(events) pumpRunLoop]  (in Squeak) + 67
[0x147d41]  sqSqueakOSXApplication+events.m:127
    + !                                 :   |       2
-[sqSqueakOSXApplication(events) pumpRunLoopEventSendAndSignal:]  (in
Squeak) + 54  [0x147c61]  sqSqueakOSXApplication+events.m:112
    + !                                 :   |         2 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]  (in AppKit) + 121
[0x9b93f432]
    + !                                 :   |           2 -[NSApplication
_nextEventMatchingEventMask:untilDate:inMode:dequeue:]  (in AppKit) + 1057
[0x9b93f85b]
    + !                                 :   |             2 _DPSNextEvent
(in AppKit) + 1053  [0x9b9402e2]
    + !                                 :   |               2 _
BlockUntilNextEventMatchingListInModeWithFilter  (in HIToolbox) + 99
[0x93703eec]
    + !                                 :   |                 1
ReceiveNextEventCommon  (in HIToolbox) + 201  [0x93703fc5]
    + !                                 :   |                 ! 1
RunCurrentEventLoopInMode  (in HIToolbox) + 217  [0x937042bf]
    + !                                 :   |                 !   1
_CFRunLoopSetCurrent  (in CoreFoundation) + 0  [0x9b4fe520]
    + !                                 :   |                 1
ReceiveNextEventCommon  (in HIToolbox) + 225  [0x93703fdd]
    + !                                 :   |                   1
GetCurrentEventQueue  (in HIToolbox) + 90  [0x93703e39]
    + !                                 :   |                     1
GetMainEventQueue  (in HIToolbox) + 26  [0x936edc52]
    + !                                 :   |                       1
_EventThreadLock  (in HIToolbox) + 37  [0x936dab07]
    + !                                 :   |                         1
pthread_once  (in libsystem_pthread.dylib) + 0  [0x9a9f8927]
    + !                                 :   1 checkForEventsMayContextSwitch
(in Squeak) + 530  [0x10563e]  gcc3x-cointerp.c:40832
    + !                                 :     1 ioUTCMicroseconds  (in
Squeak) + 12  [0x1531ea]  sqUnixHeartbeat.c:186
    + !                                 1 ???  (in <unknown binary>)
[0x1f40023e]
    + !                                 : 1 ceStackOverflow  (in Squeak) +
105  [0x10869b]  gcc3x-cointerp.c:11069
    + !                                 :   1 checkForEventsMayContextSwitch
(in Squeak) + 577  [0x10566d]  gcc3x-cointerp.c:40834
    + !                                 :     1 ioProcessEvents  (in
Squeak) + 35  [0x14f12b]  sqSqueakEventsAPI.m:84
    + !                                 :       1 nativeIoProcessEvents
(in Squeak) + 190  [0x14f0da]  sqSqueakEventsAPI.m:67
    + !                                 :         1
-[sqSqueakOSXApplication(events) pumpRunLoop]  (in Squeak) + 47
[0x147d2d]  sqSqueakOSXApplication+events.m:126
    + !                                 :           1
-[sqSqueakMainApplication(events) pumpRunLoop]  (in Squeak) + 85
[0x1510dd]  sqSqueakMainApplication+events.m:61
    + !                                 :             1
-[NSRunLoop(NSRunLoop) runMode:beforeDate:]  (in Foundation) + 296
[0x9e271c9c]
    + !                                 :               1
CFRunLoopRunInMode  (in CoreFoundation) + 123  [0x9b4db72b]
    + !                                 :                 1
CFRunLoopRunSpecific  (in CoreFoundation) + 390  [0x9b4db8c6]
    + !                                 :                   1
__CFRunLoopRun  (in CoreFoundation) + 1729  [0x9b4dc1f1]
    + !                                 :                     1
mach_port_extract_member  (in libsystem_kernel.dylib) + 31  [0x943dcc50]
    + !                                 :                       1
_kernelrpc_mach_port_extract_member_trap  (in libsystem_kernel.dylib) + 10
[0x943d7446]
    + !                                 1 ???  (in <unknown binary>)
[0x1f4002b0]
    + 2 ???  (in <unknown binary>)  [0x1f40a2aa]
    + ! 1 ???  (in <unknown binary>)  [0x1f40a352]
    + ! : 1 ???  (in <unknown binary>)  [0x1f40a53a]
    + ! :   1 ???  (in <unknown binary>)  [0x1f4022c7]
    + ! 1 ???  (in <unknown binary>)  [0x1f40a360]
    + !   1 ???  (in <unknown binary>)  [0x1f40af82]
    + !     1 ???  (in <unknown binary>)  [0x1f40b087]
    + !       1 ???  (in <unknown binary>)  [0x1f40b256]
    + !         1 ???  (in <unknown binary>)  [0x1f40b2f0]
    + !           1 ???  (in <unknown binary>)  [0x1f40b3b5]
    + !             1 ???  (in <unknown binary>)  [0x1f40b540]
    + !               1 ???  (in <unknown binary>)  [0x1f40b640]
    + !                 1 ???  (in <unknown binary>)  [0x1f40b6c9]
    + !                   1 ???  (in <unknown binary>)  [0x1f40b8d2]
    + !                     1 ???  (in <unknown binary>)  [0x1f40830f]
    + !                       1 ???  (in <unknown binary>)  [0x1f4084da]
    + !                         1 ???  (in <unknown binary>)  [0x1f40bd73]
    + !                           1 ???  (in <unknown binary>)  [0x1f40be03]
    + !                             1 ???  (in <unknown binary>)
[0x1f40be87]
    + !                               1 ???  (in <unknown binary>)
[0x1f4091af]
    + !                                 1 ???  (in <unknown binary>)
[0x1f407043]
    + !                                   1 ???  (in <unknown binary>)
[0x1f409eb0]
    + !                                     1 ???  (in <unknown binary>)
[0x1f409f40]
    + !                                       1 ???  (in <unknown binary>)
[0x1f4091af]
    + !                                         1 ???  (in <unknown
binary>)  [0x1f407043]
    + !                                           1 ???  (in <unknown
binary>)  [0x1f40a16b]
    + !                                             1 ???  (in <unknown
binary>)  [0x1f40a2aa]
    + !                                               1 ???  (in <unknown
binary>)  [0x1f40a360]
    + !                                                 1 ???  (in <unknown
binary>)  [0x1f40af82]
    + !                                                   1 ???  (in
<unknown binary>)  [0x1f40b087]
    + !                                                     1 ???  (in
<unknown binary>)  [0x1f40b256]
    + !                                                       1 ???  (in
<unknown binary>)  [0x1f40b2f0]
    + !                                                         1 ???  (in
<unknown binary>)  [0x1f40b3f1]
    + 2 ???  (in <unknown binary>)  [0x1f40b540]
    + ! 2 ???  (in <unknown binary>)  [0x1f40b640]
    + !   2 ???  (in <unknown binary>)  [0x1f40b6c9]
    + !     2 ???  (in <unknown binary>)  [0x1f40b8d2]
    + !       2 ???  (in <unknown binary>)  [0x1f40830f]
    + !         1 ???  (in <unknown binary>)  [0x1f4084da]
    + !         : 1 ???  (in <unknown binary>)  [0x1f40bd73]
    + !         :   1 ???  (in <unknown binary>)  [0x1f40be03]
    + !         :     1 ???  (in <unknown binary>)  [0x1f40be87]
    + !         :       1 ???  (in <unknown binary>)  [0x1f4091af]
    + !         :         1 ???  (in <unknown binary>)  [0x1f407043]
    + !         :           1 ???  (in <unknown binary>)  [0x1f409eb0]
    + !         :             1 ???  (in <unknown binary>)  [0x1f409f40]
    + !         :               1 ???  (in <unknown binary>)  [0x1f4091af]
    + !         :                 1 ???  (in <unknown binary>)  [0x1f407043]
    + !         :                   1 ???  (in <unknown binary>)
[0x1f40a16b]
    + !         :                     1 ???  (in <unknown binary>)
[0x1f40a2aa]
    + !         :                       1 ???  (in <unknown binary>)
[0x1f40a352]
    + !         :                         1 ???  (in <unknown binary>)
[0x1f40a56e]
    + !         :                           1 ???  (in <unknown binary>)
[0x1f407c90]
    + !         :                             1 ???  (in <unknown binary>)
[0x1f4020c8]
    + !         1 ???  (in <unknown binary>)  [0x1f40243c]
    + 2 ???  (in <unknown binary>)  [0x1f40be03]
    +   2 ???  (in <unknown binary>)  [0x1f40be87]
    +     2 ???  (in <unknown binary>)  [0x1f4091af]
    +       2 ???  (in <unknown binary>)  [0x1f407043]
    +         1 ???  (in <unknown binary>)  [0x1f409eb0]
    +         : 1 ???  (in <unknown binary>)  [0x1f409f40]
    +         :   1 ???  (in <unknown binary>)  [0x1f4091af]
    +         :     1 ???  (in <unknown binary>)  [0x1f407043]
    +         :       1 ???  (in <unknown binary>)  [0x1f40a16b]
    +         :         1 ???  (in <unknown binary>)  [0x1f40a2aa]
    +         :           1 ???  (in <unknown binary>)  [0x1f40a360]
    +         :             1 ???  (in <unknown binary>)  [0x1f40af82]
    +         :               1 ???  (in <unknown binary>)  [0x1f40b087]
    +         :                 1 ???  (in <unknown binary>)  [0x1f40b256]
    +         :                   1 ???  (in <unknown binary>)  [0x1f40b2f0]
    +         :                     1 ???  (in <unknown binary>)
[0x1f40b3b5]
    +         :                       1 ???  (in <unknown binary>)
[0x1f40b540]
    +         :                         1 ???  (in <unknown binary>)
[0x1f40b640]
    +         :                           1 ???  (in <unknown binary>)
[0x1f40b6c9]
    +         :                             1 ???  (in <unknown binary>)
[0x1f40b8d2]
    +         :                               1 ???  (in <unknown binary>)
[0x1f40830f]
    +         :                                 1 ???  (in <unknown
binary>)  [0x1f4084da]
    +         :                                   1 ???  (in <unknown
binary>)  [0x1f40bd73]
    +         :                                     1 ???  (in <unknown
binary>)  [0x1f40be03]
    +         :                                       1 ???  (in <unknown
binary>)  [0x1f40be87]
    +         :                                         1 ???  (in <unknown
binary>)  [0x1f4091af]
    +         :                                           1 ???  (in
<unknown binary>)  [0x1f400295]
    +         1 ???  (in <unknown binary>)  [0x1f409ea1]
    2451 Thread_2029987   DispatchQueue_2: com.apple.libdispatch-manager
(serial)
    + 2451 _dispatch_mgr_thread  (in libdispatch.dylib) + 52  [0x9b4053be]
    +   2451 _dispatch_mgr_invoke  (in libdispatch.dylib) + 234
[0x9b4057ea]
    +     2451 kevent_qos  (in libsystem_kernel.dylib) + 10  [0x943df7fa]
    2451 Thread_2030323: com.apple.coreaudio.AQClient
    + 2451 thread_start  (in libsystem_pthread.dylib) + 34  [0x9a9f5f7a]
    +   2451 _pthread_start  (in libsystem_pthread.dylib) + 155
[0x9a9f86f6]
    +     2451 _pthread_body  (in libsystem_pthread.dylib) + 138
[0x9a9f8780]
    +       2451 CAPThread::Entry(CAPThread*)  (in AudioToolbox) + 96
[0x929fd2f0]
    +         2451 GenericRunLoopThread::Entry(void*)  (in AudioToolbox) +
200  [0x929fd3ee]
    +           2451 CFRunLoopRunInMode  (in CoreFoundation) + 123
[0x9b4db72b]
    +             2451 CFRunLoopRunSpecific  (in CoreFoundation) + 390
[0x9b4db8c6]
    +               2451 __CFRunLoopRun  (in CoreFoundation) + 1521
[0x9b4dc121]
    +                 2451 __CFRunLoopServiceMachPort  (in CoreFoundation)
+ 214  [0x9b4dcd16]
    +                   2451 mach_msg  (in libsystem_kernel.dylib) + 68
[0x943d6884]
    +                     2451 mach_msg_trap  (in libsystem_kernel.dylib) +
10  [0x943d749a]
    2451 Thread_2030354
    + 2451 thread_start  (in libsystem_pthread.dylib) + 34  [0x9a9f5f7a]
    +   2451 _pthread_start  (in libsystem_pthread.dylib) + 155
[0x9a9f86f6]
    +     2451 _pthread_body  (in libsystem_pthread.dylib) + 138
[0x9a9f8780]
    +       2422 beatStateMachine  (in Squeak) + 106  [0x153686]
sqUnixHeartbeat.c:325
    +       ! 2385 nanosleep$UNIX2003  (in libsystem_c.dylib) + 218
[0x9c6528d1]
    +       ! : 2385 __semwait_signal  (in libsystem_kernel.dylib) + 10
[0x943de7ce]
    +       ! 17 nanosleep$UNIX2003  (in libsystem_c.dylib) + 90
[0x9c652851]
    +       ! : 17 clock_get_time  (in libsystem_kernel.dylib) + 90
[0x943c4aa2]
    +       ! :   17 mach_msg  (in libsystem_kernel.dylib) + 68
[0x943d6884]
    +       ! :     17 mach_msg_trap  (in libsystem_kernel.dylib) + 10
[0x943d749a]
    +       ! 8 __semwait_signal  (in libsystem_kernel.dylib) + 12,24
[0x943de7d0,0x943de7dc]
    +       ! 8 tramp_cerror  (in libsystem_kernel.dylib) + 29  [0x943e0415]
    +       ! : 7 cerror_nocancel  (in libsystem_kernel.dylib) + 27
[0x943d7d80]
    +       ! : 1 _pthread_exit_if_canceled  (in libsystem_kernel.dylib) +
17  [0x943c44bd]
    +       ! 3 nanosleep$UNIX2003  (in libsystem_c.dylib) + 75,27,...
[0x9c652842,0x9c652812,...]
    +       ! 1 nanosleep$UNIX2003  (in libsystem_c.dylib) + 40
[0x9c65281f]
    +       !   1 pthread_testcancel$UNIX2003  (in libsystem_pthread.dylib)
+ 51  [0x9a9fb2ae]
    +       !     1 OSSpinLockLock  (in libsystem_platform.dylib) + 0
[0x97b95818]
    +       19 beatStateMachine  (in Squeak) + 241  [0x15370d]
sqUnixHeartbeat.c:280
    +       ! 15 forceInterruptCheck  (in Squeak) + 30  [0x106637]
gcc3x-cointerp.c:43260
    +       ! 1 forceInterruptCheck  (in Squeak) + 0  [0x106619]
gcc3x-cointerp.c:43247
    +       ! 1 forceInterruptCheck  (in Squeak) + 18  [0x10662b]
gcc3x-cointerp.c:43254
    +       ! 1 forceInterruptCheck  (in Squeak) + 55  [0x106650]
gcc3x-cointerp.c:43265
    +       ! 1 forceInterruptCheckFromHeartbeat  (in Squeak) + 35
[0x10975b]  gcc3x-cointerp.c:12249
    +       8 beatStateMachine  (in Squeak) + 159  [0x1536bb]
sqUnixHeartbeat.c:272
    +       ! 4 updateMicrosecondClock  (in Squeak) + 28  [0x153886]
sqUnixHeartbeat.c:101
    +       ! : 2 gettimeofday  (in libsystem_c.dylib) + 45  [0x9c5e4492]
    +       ! : | 2 __commpage_gettimeofday  (in libsystem_kernel.dylib) +
0,11  [0x943d7630,0x943d763b]
    +       ! : 2 gettimeofday  (in libsystem_c.dylib) + 0  [0x9c5e4465]
    +       ! 4 updateMicrosecondClock  (in Squeak) + 157  [0x153907]
sqUnixHeartbeat.c:141
    +       1 DYLD-STUB$$__error  (in Squeak) + 0  [0x1a8ea6]
    +       1 beatStateMachine  (in Squeak) + 109  [0x153689]
sqUnixHeartbeat.c:326
    2451 Thread_2030360: com.apple.NSEventThread
      2451 thread_start  (in libsystem_pthread.dylib) + 34  [0x9a9f5f7a]
        2451 _pthread_start  (in libsystem_pthread.dylib) + 155
[0x9a9f86f6]
          2451 _pthread_body  (in libsystem_pthread.dylib) + 138
[0x9a9f8780]
            2451 _NSEventThread  (in AppKit) + 291  [0x9baa7dde]
              2451 CFRunLoopRunInMode  (in CoreFoundation) + 123
[0x9b4db72b]
                2451 CFRunLoopRunSpecific  (in CoreFoundation) + 390
[0x9b4db8c6]
                  2451 __CFRunLoopRun  (in CoreFoundation) + 1521
[0x9b4dc121]
                    2451 __CFRunLoopServiceMachPort  (in CoreFoundation) +
214  [0x9b4dcd16]
                      2451 mach_msg  (in libsystem_kernel.dylib) + 68
[0x943d6884]
                        2451 mach_msg_trap  (in libsystem_kernel.dylib) +
10  [0x943d749a]

Total number in stack (recursive counted multiple, when >=5):
        7       ???  (in <unknown binary>)  [0x1f4091af]
        6       ???  (in <unknown binary>)  [0x1f407043]
        5       CFRunLoopRunInMode  (in CoreFoundation) + 123  [0x9b4db72b]
        5       CFRunLoopRunSpecific  (in CoreFoundation) + 390
[0x9b4db8c6]

Sort by top of stack, same collapsed (when >= 5):
        mach_msg_trap  (in libsystem_kernel.dylib)        4920
        kevent_qos  (in libsystem_kernel.dylib)        2451
        __semwait_signal  (in libsystem_kernel.dylib)        2393
        findMethodWithPrimitiveFromContextUpToContext  (in Squeak)
2332
        markAndTrace  (in Squeak)        44
        mapPointersInObjectsFromto  (in Squeak)        26
        forceInterruptCheck  (in Squeak)        18
        fullGC  (in Squeak)        13
        isWidowedContext  (in Squeak)        10
        cerror_nocancel  (in libsystem_kernel.dylib)        7


The squeak.stack.v3 still works.

The hang is reproducible in simulator:

| cos |
cos := CogVMSimulator newWithOptions: #(Cogit StackToRegisterMappingCogit ).
cos desiredNumStackPages: 8.
cos openOn: '/some_path_to/Squeak4.6-15102.image'.
cos openAsMorph; run

it hangs around counters 13000/993
and I've got this kind of output:

(130) Looking for primitiveDecompressFromByteArray in MiscPrimitivePlugin
Looking for module MiscPrimitivePlugin ... loaded
Failed ... primitive not in plugin
(276) Looking for primDigitBitShiftMagnitude in LargeIntegers
Looking for module LargeIntegers ... loaded

(1061) Looking for primDigitBitOr in LargeIntegers

(1419) Looking for primDigitAdd in LargeIntegers

(1420) Looking for primNormalizeNegative in LargeIntegers

(1873) Looking for primitiveCopyBits in BitBltPlugin
Looking for module BitBltPlugin ... loaded

(9872) Looking for primitiveStringHash in MiscPrimitivePlugin
(12180) Looking for primitiveCompareString in MiscPrimitivePlugin
GC number 0    grow memory from 30872064 by 3747856

GC number 1    grow memory from 34619896 by 4091568

GC number 2    grow memory from 38711440 by 4438096

GC number 3    grow memory from 43149512 by 4814368

GC number 4    grow memory from 47963856 by 5223272

GC number 5    grow memory from 53187104 by 5667072

GC number 6    grow memory from 58854152 by 6148112

each time I interrupt the VM, it seems to loop in findMethodWithPrimitive:
FromFP:UpToContext:

I did not try to bissect when this happened, but the red status of
continuous integration may well be related to this.

We can't live forever with this red status, it's like not having CI
feedback at all. Either we declare cog.v3 as unsupported or we fix it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20170228/b9db631c/attachment-0001.html>


More information about the Vm-dev mailing list