gtoolkit icon indicating copy to clipboard operation
gtoolkit copied to clipboard

Segmentation fault due to an inspected semaphore

Open JurajKubelka opened this issue 3 years ago • 5 comments

Steps To Reproduce

Use GToolkit version: DEV v0.8.1111 OS: macOS Monterey 12.1 (21C52)

Open a Playground with the following snippets

aSemaphore := Semaphore new
aProcessOne := [
	NonInteractiveTranscript stdout show: ' 1 - process one entering semaphore'; cr.
	aSemaphore wait.
	NonInteractiveTranscript stdout show: ' 2 - process one left semaphore'; cr.
] forkAt: Processor userBackgroundPriority
aProcessTwo := [
	NonInteractiveTranscript stdout show: ' 3 - process two entering semaphore'; cr.
	aSemaphore wait.
	NonInteractiveTranscript stdout show: ' 4 - process two left semaphore'; cr.
] forkAt: Processor userBackgroundPriority
aSemaphore signal.

Execute First Three Snippets

  • execute and inspect the first one
  • execute (just play button) the second and the third snippet
  • refresh the a Semaphore Items list using the update button
Screen Shot 2021-12-16 at 13 36 49

Execute Twice the Fourth Snippet

  • execute (just play button) twice the aSemaphore signal snippet.
  • after the second execution, I observe a segmentation fault.

JurajKubelka avatar Dec 16 '21 16:12 JurajKubelka

Apple Report

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               GlamorousToolkit [12839]
Path:                  /Users/USER/*/GlamorousToolkit.app/Contents/MacOS/GlamorousToolkit
Identifier:            com.gtoolkit
Version:               0.0.1 (0.0.1)
Code Type:             X86-64 (Native)
Parent Process:        Exited process [12838]
Responsible:           Terminal [5668]
User ID:               501

Date/Time:             2021-12-16 13:39:41.3472 -0300
OS Version:            macOS 12.1 (21C52)
Report Version:        12
Bridge OS Version:     3.0 (14Y910)
Anonymous UUID:        E5F5C310-9203-F746-829A-314CFE7311F7

Sleep/Wake UUID:       85E66DE0-CBA9-4198-AB77-50F5B4803327

Time Awake Since Boot: 44000 seconds
Time Since Wake:       2085 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000009
Exception Codes:       0x0000000000000001, 0x0000000000000009
Exception Note:        EXC_CORPSE_NOTIFY

VM Region Info: 0x9 is not in any region.  Bytes before following region: 4306391031
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      100ae5000-100b91000    [  688K] r-x/r-x SM=COW  ...morousToolkit

Application Specific Information:
abort() called


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	    0x7ff81c7f1112 __pthread_kill + 10
1   libsystem_pthread.dylib       	    0x7ff81c827214 pthread_kill + 263
2   libsystem_c.dylib             	    0x7ff81c773d10 abort + 123
3   libPharoVMCore.dylib          	       0x100ef0292 sigsegv + 258
4   libsystem_platform.dylib      	    0x7ff81c83ce2d _sigtramp + 29
5   ???                           	               0x0 ???
6   libPharoVMCore.dylib          	       0x100eca72a primitiveSignal + 42
7   libPharoVMCore.dylib          	       0x100e941a0 executeNewMethod + 368
8   libPharoVMCore.dylib          	       0x100e954e9 ceSendsupertonumArgs + 1177
9   ???                           	       0x12409b0b3 ???
10  ???                           	       0x12409c3e0 ???
11  ???                           	       0x12419c1f2 ???
12  ???                           	       0x12409cdc1 ???
13  ???                           	       0x12409c3e0 ???
14  ???                           	       0x12be3826f ???
15  ???                           	       0x12be38508 ???
16  ???                           	       0x12be38827 ???
17  ???                           	       0x12be38ad5 ???
18  ???                           	       0x12bf42619 ???
19  ???                           	       0x12bf4285e ???

Thread 1:
0   libsystem_kernel.dylib        	    0x7ff81c7ed3da __semwait_signal + 10
1   libsystem_c.dylib             	    0x7ff81c7028a9 nanosleep + 196
2   libPharoVMCore.dylib          	       0x100e2f109 beatStateMachine + 281
3   libsystem_pthread.dylib       	    0x7ff81c8274f4 _pthread_start + 125
4   libsystem_pthread.dylib       	    0x7ff81c82300f thread_start + 15

Thread 2:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	    0x7ff81c7eaaba mach_msg_trap + 10
1   libsystem_kernel.dylib        	    0x7ff81c7eae2b mach_msg + 59
2   CoreFoundation                	    0x7ff81c8eeaf2 __CFRunLoopServiceMachPort + 319
3   CoreFoundation                	    0x7ff81c8ed1cb __CFRunLoopRun + 1325
4   CoreFoundation                	    0x7ff81c8ec5dd CFRunLoopRunSpecific + 563
5   AppKit                        	    0x7ff81f489d98 _NSEventThread + 132
6   libsystem_pthread.dylib       	    0x7ff81c8274f4 _pthread_start + 125
7   libsystem_pthread.dylib       	    0x7ff81c82300f thread_start + 15

Thread 3:
0   libsystem_pthread.dylib       	    0x7ff81c822fec start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib       	    0x7ff81c822fec start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib       	    0x7ff81c822fec start_wqthread + 0


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00000001049c6600  rcx: 0x00007ff7bf3d6ae8  rdx: 0x0000000000000000
  rdi: 0x0000000000000103  rsi: 0x0000000000000006  rbp: 0x00007ff7bf3d6b10  rsp: 0x00007ff7bf3d6ae8
   r8: 0x00007ff85e050558   r9: 0x0000000000000000  r10: 0x0000000000000000  r11: 0x0000000000000246
  r12: 0x0000000000000103  r13: 0x0000000100ef5837  r14: 0x0000000000000006  r15: 0x0000000000000016
  rip: 0x00007ff81c7f1112  rfl: 0x0000000000000246  cr2: 0x00000034004f8000
  
Logical CPU:     0
Error Code:      0x02000148 
Trap Number:     133

Thread 0 instruction stream:
  53 50 49 89 fe 4c 8b 7f-08 4c 3b 3d d0 df 04 00  SPI..L...L;=....
  75 41 49 8b 46 18 89 c1-83 e1 07 83 f9 01 75 4a  uAI.F.........uJ
  48 c1 f8 03 48 ff c0 48-89 c1 48 c1 e9 3c ff c1  H...H..H..H..<..
  f6 c1 0e 74 4f 48 83 3d-13 80 05 00 00 0f 85 94  ...tOH.=........
  01 00 00 48 c7 05 02 80-05 00 01 00 00 00 e9 84  ...H............
  01 00 00 41 f7 07 f7 ff-3f 00 74 39 49 8b 5f 10  ...A....?.t9I._.
 [f7]03 f7 ff 3f 00 75 4a-eb 76 b8 01 00 00 00 48  ....?.uJ.v.....H	<==
  83 3d d9 7f 05 00 00 75-0b 48 c7 05 cc 7f 05 00  .=.....u.H......
  01 00 00 00 48 8d 04 c5-01 00 00 00 49 89 46 18  ....H.......I.F.
  e9 42 01 00 00 be 01 00-00 00 4c 89 f7 e8 96 db  .B........L.....
  fe ff 4d 8b 7e 08 49 8b-5f 10 f7 03 f7 ff 3f 00  ..M.~.I._.....?.
  74 2e 4d 3b 7e 10 75 62-48 8b 05 21 df 04 00 49  t.M;~.ubH..!...I

Binary Images:
    0x7ff81c7ea000 -     0x7ff81c820fff libsystem_kernel.dylib (*) <5aa1e5be-b5b8-3a02-9885-a8c99e0ca378> /usr/lib/system/libsystem_kernel.dylib
    0x7ff81c821000 -     0x7ff81c82cfff libsystem_pthread.dylib (*) <6c7561b4-4b92-3f45-921e-abe669299844> /usr/lib/system/libsystem_pthread.dylib
    0x7ff81c6f2000 -     0x7ff81c77afff libsystem_c.dylib (*) <e58814cc-dcb7-35a5-badc-e367ed3ac207> /usr/lib/system/libsystem_c.dylib
       0x100e24000 -        0x100ef7fff libPharoVMCore.dylib (*) <ea3909b6-2c67-38f3-af9d-08484eef5308> /Users/USER/*/GlamorousToolkit.app/Contents/MacOS/Plugins/libPharoVMCore.dylib
    0x7ff81c839000 -     0x7ff81c842fff libsystem_platform.dylib (*) <11149c06-9ec7-3af6-bc27-8ffc328845b8> /usr/lib/system/libsystem_platform.dylib
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
    0x7ff81c86e000 -     0x7ff81cd70fff com.apple.CoreFoundation (6.9) <eab0e216-2a9e-31ce-9164-fdf3ebcf7bd3> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7ff81f2dd000 -     0x7ff82016bfff com.apple.AppKit (6.9) <d23b9681-3764-3298-a716-fbb511dd5a7c> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=918.1M resident=0K(0%) swapped_out_or_unallocated=918.1M(100%)
Writable regions: Total=1.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.1G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               512K        4 
Activity Tracing                   256K        1 
CG backing stores                 7568K        8 
CG image                           108K        6 
ColorSync                          224K       25 
CoreAnimation                      300K       12 
CoreGraphics                        16K        3 
CoreUI image data                 1116K        8 
Foundation                          16K        1 
Kernel Alloc Once                    8K        1 
MALLOC                           244.2M      138 
MALLOC guard page                   32K        7 
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
OpenGL GLSL                        384K        5 
STACK GUARD                         20K        5 
Stack                             10.5M        6 
Stack Guard                       56.0M        1 
VM_ALLOCATE                      439.2M      110 
VM_ALLOCATE (reserved)             128K        1         reserved VM address space (unallocated)
__DATA                            33.1M      331 
__DATA_CONST                      13.6M      179 
__DATA_DIRTY                       542K      100 
__FONT_DATA                          4K        1 
__GLSLBUILTINS                    5176K        1 
__LINKEDIT                       646.9M       27 
__OBJC_RO                         81.8M        1 
__OBJC_RW                         3136K        2 
__TEXT                           271.2M      342 
__UNICODE                          588K        1 
dyld private memory               1024K        1 
mapped file                       82.9M       20 
shared memory                      800K       21 
===========                     =======  ======= 
TOTAL                              2.2G     1370 
TOTAL, minus reserved VM space     1.9G     1370 



-----------
Full Report
-----------

{"app_name":"GlamorousToolkit","timestamp":"2021-12-16 13:39:41.00 -0300","app_version":"0.0.1","slice_uuid":"d548529a-6843-3849-8a6d-0651d9b3daae","build_version":"0.0.1","platform":1,"bundleID":"com.gtoolkit","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 12.1 (21C52)","incident_id":"FBF060A2-FF25-42AB-B605-3454AF3C20D6","name":"GlamorousToolkit"}
{
  "uptime" : 44000,
  "procLaunch" : "2021-12-16 13:31:18.7427 -0300",
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro14,3",
  "procStartAbsTime" : 43537991627540,
  "coalitionID" : 1328,
  "osVersion" : {
    "train" : "macOS 12.1",
    "build" : "21C52",
    "releaseType" : "User"
  },
  "captureTime" : "2021-12-16 13:39:41.3472 -0300",
  "incident" : "FBF060A2-FF25-42AB-B605-3454AF3C20D6",
  "bug_type" : "309",
  "pid" : 12839,
  "procExitAbsTime" : 44040584651352,
  "cpuType" : "X86-64",
  "procName" : "GlamorousToolkit",
  "procPath" : "\/Users\/USER\/*\/GlamorousToolkit.app\/Contents\/MacOS\/GlamorousToolkit",
  "bundleInfo" : {"CFBundleShortVersionString":"0.0.1","CFBundleVersion":"0.0.1","CFBundleIdentifier":"com.gtoolkit"},
  "storeInfo" : {"deviceIdentifierForVendor":"204DA237-FB3A-5E65-A093-DB74D8753724","thirdParty":true},
  "parentProc" : "Exited process",
  "parentPid" : 12838,
  "coalitionName" : "com.apple.Terminal",
  "crashReporterKey" : "E5F5C310-9203-F746-829A-314CFE7311F7",
  "responsiblePid" : 5668,
  "responsibleProc" : "Terminal",
  "wakeTime" : 2085,
  "bridgeVersion" : {"build":"14Y910","train":"3.0"},
  "sleepWakeUUID" : "85E66DE0-CBA9-4198-AB77-50F5B4803327",
  "sip" : "enabled",
  "vmRegionInfo" : "0x9 is not in any region.  Bytes before following region: 4306391031\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      100ae5000-100b91000    [  688K] r-x\/r-x SM=COW  ...morousToolkit",
  "isCorpse" : 1,
  "exception" : {"codes":"0x0000000000000001, 0x0000000000000009","rawCodes":[1,9],"type":"EXC_BAD_ACCESS","signal":"SIGABRT","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000009"},
  "vmregioninfo" : "0x9 is not in any region.  Bytes before following region: 4306391031\n      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL\n      UNUSED SPACE AT START\n--->  \n      __TEXT                      100ae5000-100b91000    [  688K] r-x\/r-x SM=COW  ...morousToolkit",
  "asi" : {"libsystem_c.dylib":["abort() called"]},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":460689,"instructionState":{"instructionStream":{"bytes":[83,80,73,137,254,76,139,127,8,76,59,61,208,223,4,0,117,65,73,139,70,24,137,193,131,225,7,131,249,1,117,74,72,193,248,3,72,255,192,72,137,193,72,193,233,60,255,193,246,193,14,116,79,72,131,61,19,128,5,0,0,15,133,148,1,0,0,72,199,5,2,128,5,0,1,0,0,0,233,132,1,0,0,65,247,7,247,255,63,0,116,57,73,139,95,16,247,3,247,255,63,0,117,74,235,118,184,1,0,0,0,72,131,61,217,127,5,0,0,117,11,72,199,5,204,127,5,0,1,0,0,0,72,141,4,197,1,0,0,0,73,137,70,24,233,66,1,0,0,190,1,0,0,0,76,137,247,232,150,219,254,255,77,139,126,8,73,139,95,16,247,3,247,255,63,0,116,46,77,59,126,16,117,98,72,139,5,33,223,4,0,73],"offset":96}},"threadState":{"r13":{"value":4310652983},"rax":{"value":0},"rflags":{"value":582},"cpu":{"value":0},"r14":{"value":6},"rsi":{"value":6},"r8":{"value":140704706004312,"symbolLocation":456,"symbol":"__sFX"},"cr2":{"value":223343509504},"rdx":{"value":0},"r10":{"value":0},"r9":{"value":0},"r15":{"value":22},"rbx":{"value":4372325888,"symbolLocation":0,"symbol":"_main_thread"},"trap":{"value":133},"err":{"value":33554760},"r11":{"value":582},"rip":{"value":140703606706450,"matchesCrashFrame":1},"rbp":{"value":140702042123024},"rsp":{"value":140702042122984},"r12":{"value":259},"rcx":{"value":140702042122984},"flavor":"x86_THREAD_STATE","rdi":{"value":259}},"queue":"com.apple.main-thread","frames":[{"imageOffset":28946,"symbol":"__pthread_kill","symbolLocation":10,"imageIndex":0},{"imageOffset":25108,"symbol":"pthread_kill","symbolLocation":263,"imageIndex":1},{"imageOffset":531728,"symbol":"abort","symbolLocation":123,"imageIndex":2},{"imageOffset":836242,"symbol":"sigsegv","symbolLocation":258,"imageIndex":3},{"imageOffset":15917,"symbol":"_sigtramp","symbolLocation":29,"imageIndex":4},{"imageOffset":0,"imageIndex":5},{"imageOffset":681770,"symbol":"primitiveSignal","symbolLocation":42,"imageIndex":3},{"imageOffset":459168,"symbol":"executeNewMethod","symbolLocation":368,"imageIndex":3},{"imageOffset":464105,"symbol":"ceSendsupertonumArgs","symbolLocation":1177,"imageIndex":3},{"imageOffset":4899582131,"imageIndex":5},{"imageOffset":4899587040,"imageIndex":5},{"imageOffset":4900635122,"imageIndex":5},{"imageOffset":4899589569,"imageIndex":5},{"imageOffset":4899587040,"imageIndex":5},{"imageOffset":5031297647,"imageIndex":5},{"imageOffset":5031298312,"imageIndex":5},{"imageOffset":5031299111,"imageIndex":5},{"imageOffset":5031299797,"imageIndex":5},{"imageOffset":5032388121,"imageIndex":5},{"imageOffset":5032388702,"imageIndex":5}]},{"id":460691,"frames":[{"imageOffset":13274,"symbol":"__semwait_signal","symbolLocation":10,"imageIndex":0},{"imageOffset":67753,"symbol":"nanosleep","symbolLocation":196,"imageIndex":2},{"imageOffset":45321,"symbol":"beatStateMachine","symbolLocation":281,"imageIndex":3},{"imageOffset":25844,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8207,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":460716,"name":"com.apple.NSEventThread","frames":[{"imageOffset":2746,"symbol":"mach_msg_trap","symbolLocation":10,"imageIndex":0},{"imageOffset":3627,"symbol":"mach_msg","symbolLocation":59,"imageIndex":0},{"imageOffset":527090,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":319,"imageIndex":6},{"imageOffset":520651,"symbol":"__CFRunLoopRun","symbolLocation":1325,"imageIndex":6},{"imageOffset":517597,"symbol":"CFRunLoopRunSpecific","symbolLocation":563,"imageIndex":6},{"imageOffset":1756568,"symbol":"_NSEventThread","symbolLocation":132,"imageIndex":7},{"imageOffset":25844,"symbol":"_pthread_start","symbolLocation":125,"imageIndex":1},{"imageOffset":8207,"symbol":"thread_start","symbolLocation":15,"imageIndex":1}]},{"id":465589,"frames":[{"imageOffset":8172,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":465591,"frames":[{"imageOffset":8172,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":465592,"frames":[{"imageOffset":8172,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703606677504,
    "size" : 225280,
    "uuid" : "5aa1e5be-b5b8-3a02-9885-a8c99e0ca378",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703606902784,
    "size" : 49152,
    "uuid" : "6c7561b4-4b92-3f45-921e-abe669299844",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703605661696,
    "size" : 561152,
    "uuid" : "e58814cc-dcb7-35a5-badc-e367ed3ac207",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4309794816,
    "size" : 868352,
    "uuid" : "ea3909b6-2c67-38f3-af9d-08484eef5308",
    "path" : "\/Users\/USER\/*\/GlamorousToolkit.app\/Contents\/MacOS\/Plugins\/libPharoVMCore.dylib",
    "name" : "libPharoVMCore.dylib"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703607001088,
    "size" : 40960,
    "uuid" : "11149c06-9ec7-3af6-bc27-8ffc328845b8",
    "path" : "\/usr\/lib\/system\/libsystem_platform.dylib",
    "name" : "libsystem_platform.dylib"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  },
  {
    "source" : "P",
    "arch" : "x86_64h",
    "base" : 140703607218176,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5255168,
    "uuid" : "eab0e216-2a9e-31ce-9164-fdf3ebcf7bd3",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1856.105"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 140703651713024,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15265792,
    "uuid" : "d23b9681-3764-3298-a716-fbb511dd5a7c",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2113.20.111"
  }
],
  "sharedCache" : {
  "base" : 140703603675136,
  "size" : 15216738304,
  "uuid" : "40432a03-88d3-305f-9c0c-e7549e71d927"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=918.1M resident=0K(0%) swapped_out_or_unallocated=918.1M(100%)\nWritable regions: Total=1.1G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.1G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               512K        4 \nActivity Tracing                   256K        1 \nCG backing stores                 7568K        8 \nCG image                           108K        6 \nColorSync                          224K       25 \nCoreAnimation                      300K       12 \nCoreGraphics                        16K        3 \nCoreUI image data                 1116K        8 \nFoundation                          16K        1 \nKernel Alloc Once                    8K        1 \nMALLOC                           244.2M      138 \nMALLOC guard page                   32K        7 \nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nOpenGL GLSL                        384K        5 \nSTACK GUARD                         20K        5 \nStack                             10.5M        6 \nStack Guard                       56.0M        1 \nVM_ALLOCATE                      439.2M      110 \nVM_ALLOCATE (reserved)             128K        1         reserved VM address space (unallocated)\n__DATA                            33.1M      331 \n__DATA_CONST                      13.6M      179 \n__DATA_DIRTY                       542K      100 \n__FONT_DATA                          4K        1 \n__GLSLBUILTINS                    5176K        1 \n__LINKEDIT                       646.9M       27 \n__OBJC_RO                         81.8M        1 \n__OBJC_RW                         3136K        2 \n__TEXT                           271.2M      342 \n__UNICODE                          588K        1 \ndyld private memory               1024K        1 \nmapped file                       82.9M       20 \nshared memory                      800K       21 \n===========                     =======  ======= \nTOTAL                              2.2G     1370 \nTOTAL, minus reserved VM space     1.9G     1370 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "607844aa04477260f58a8077",
      "factorPackIds" : {
        "SIRI_MORPHUN_ASSETS" : "6103050cbfe6dc472e1c982a"
      },
      "deploymentId" : 240000066
    },
    {
      "rolloutId" : "60da5e84ab0ca017dace9abf",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    },
    {
      "rolloutId" : "602ad4dac86151000cf27e46",
      "factorPackIds" : {
        "SIRI_DICTATION_ASSETS" : "6193d03f2171a2330e561dfc"
      },
      "deploymentId" : 240000290
    },
    {
      "rolloutId" : "5ffde50ce2aacd000d47a95f",
      "factorPackIds" : {

      },
      "deploymentId" : 240000086
    },
    {
      "rolloutId" : "5fc94383418129005b4e9ae0",
      "factorPackIds" : {

      },
      "deploymentId" : 240000185
    },
    {
      "rolloutId" : "601d9415f79519000ccd4b69",
      "factorPackIds" : {
        "SIRI_TEXT_TO_SPEECH" : "6194416f2171a2330e561f05"
      },
      "deploymentId" : 240000341
    }
  ],
  "experiments" : [

  ]
}
}

Model: MacBookPro14,3, BootROM 447.60.3.0.0, 4 processors, Quad-Core Intel Core i7, 3,1 GHz, 16 GB, SMC 2.45f5
Graphics: Radeon Pro 560, Radeon Pro 560, PCIe, 4 GB
Display: Color LCD, 2880 x 1800 Retina, MirrorOff, Online
Display: LG HDR 4K, 6720 x 3780, Main, MirrorOff, Online
Graphics: Intel HD Graphics 630, Intel HD Graphics 630, Built-In
Memory Module: BANK 0/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
Memory Module: BANK 1/DIMM0, 8 GB, LPDDR3, 2133 MHz, 0x802C, 0x4D5435324C31473332443450472D30393320
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x173), Broadcom BCM43xx 1.0 (7.77.111.1 AirPortDriverBrcmNIC-1710.3)
AirPort: 
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB30Bus
USB Device: iPhone
USB Device: USB2.1 Hub
USB Device: Billboard Device
USB Device: Apple T1 Controller
USB Device: USB3.2 Hub
USB Device: USB 10/100/1000 LAN
USB Device: G-DRIVE USB-C
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.5
Thunderbolt Bus: MacBook Pro, Apple Inc., 41.5

JurajKubelka avatar Dec 16 '21 16:12 JurajKubelka

Console Segmentation Fault Output

% run-gt.sh 
[Glutin] Profile #0 worked
[Glutin] Profile #0 worked
[Glutin] Profile #0 worked
 1 - process one entering semaphore
 3 - process two entering semaphore
 2 - process one left semaphore

Segmentation fault Thu Dec 16 13:39:41 2021


/Users/jurajkubelka/Development/Feenk Manual Builds/12-16sociator/glamoroustoolkit/GlamorousToolkit.app/Contents/MacOS/GlamorousToolkit
PharoVM version:5.0-Pharo 9.0.1 built on Dec 13 2021 12:56:25 Compiler: Apple LLVM 12.0.0 (clang-1200.0.32.29) Apple LLVM 12.0.0 (clang-1200.0.32.29) [Production Spur 64-bit VM]
Built from: CoInterpreter * VMMaker-tonel.1 uuid: 92fe8803-6f8f-0d00-8cdc-14400beb40d3 Dec 13 2021
 With:StackToRegisterMappingCogit * VMMaker-tonel.1 uuid: 92fe8803-6f8f-0d00-8cdc-14400beb40d3 Dec 13 2021
 Revision: v8.6.1-134-g80f73e80e - Commit: 80f73e80e - Date: 2021-08-15 11:16:21 +0200

C stack backtrace & registers:
	rax 0x00007ff7bf3dd520 rbx 0x0000000000000009 rcx 0x0000000100eca700 rdx 0x0000000000000020
	rdi 0x000000013dbaa708 rsi 0x000000013dbaa708 rbp 0x00007ff7bf3d7540 rsp 0x00007ff7bf3d7520
	r8  0x000000013dbaa708 r9  0x00000001241c1ac7 r10 0x00000001241c1a20 r11 0x0000000125295f98
	r12 0x0000000000000000 r13 0x00000001241c1ac7 r14 0x000000013dbaa708 r15 0x000000013de620a8
	rip 0x0000000100eba928
*0   libPharoVMCore.dylib                0x0000000100eba928 synchronousSignal + 104
1   libPharoVMCore.dylib                0x0000000100eefee9 reportStackState + 313
2   libPharoVMCore.dylib                0x0000000100ef028d sigsegv + 253
3   libsystem_platform.dylib            0x00007ff81c83ce2d _sigtramp + 29
4   ???                                 0x0000000000000000 0x0 + 0
5   libPharoVMCore.dylib                0x0000000100eca72a primitiveSignal + 42
6   libPharoVMCore.dylib                0x0000000100e941a0 executeNewMethod + 368
7   libPharoVMCore.dylib                0x0000000100e954e9 ceSendsupertonumArgs + 1177
8   ???                                 0x000000012409b0b3 0x0 + 4899582131
9   ???                                 0x000000012409c3e0 0x0 + 4899587040
10  libsystem_c.dylib                   0x00007ff81c775eac asctime_r.wday_name + 12

Can't dump Smalltalk stack(s). Not in VM thread

Most recent primitives
**StackOverflow**
stringHash:initialHash:
at:
stringHash:initialHash:
findElementOrNil:
findElementOrNil:
findElementOrNil:
findElementOrNil:
at:
size
at:
**StackOverflow**
class
format
findSubstring:in:startingAt:matchTable:
class
asciiValue
indexOfAscii:inString:startingAt:
stringHash:initialHash:
stringHash:initialHash:
literalEqual:
pop:
new:
value:
anySatisfy:
species
new:
replaceFrom:to:with:startingAt:
at:put:
copyWith:
copyWith:
copyWith:
copyWith:
copyWith:
copyWith:
copyWith:
value:value:
value:
basicNew
value:
nextPutAll:
position
bytecodeIndex:
size
newMethod:header:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
size
at:
at:put:
basicNew
size
objectAt:
<=
at:put:
at:put:
at:put:
value:value:
objectAt:put:
objectAt:put:
objectAt:put:
objectAt:put:
species
value:
associationsDo:
associationsDo:
at:
value:
inject:into:
inject:into:
inject:into:
header
numTemps
objectAt:put:
new:
objectAt:
at:put:
literalAt:
at:put:
value:
value
basicNew
objectAt:put:
stringHash:initialHash:
objectAt:put:
class
basicNew
basicNew
size
indentString
indentString
value
value
**StackOverflow**
**StackOverflow**
indexOfAscii:inString:startingAt:
indexOf:
indexOf:
indexOfAscii:inString:startingAt:
**StackOverflow**
indexOfAscii:inString:startingAt:

basicNew
asInteger
at:put:
basicNew
class
=
compare:with:collated:
basicNew
value
=
basicNew
stringHash:initialHash:
compare:with:collated:
with:
with:
at:
at:put:
basicNew
value
=
step
basicNew
**StackOverflow**
stringHash:initialHash:
size
\\
=
compare:with:collated:
**StackOverflow**
stringHash:initialHash:
compare:with:collated:
stringHash:initialHash:
compare:with:collated:
basicNew
basicNew
numArgs
at:
between:and:
between:and:
between:and:
class
asciiValue
indexOfAscii:inString:startingAt:
asIntegerArray
asIntegerArray
asIntegerArray
asIntegerArray
stringHash:initialHash:
compare:with:collated:
basicNew
basicNew
basicNew
basicNew
**StackOverflow**
stringHash:initialHash:
**StackOverflow**
stringHash:initialHash:
stringHash:initialHash:
=
stringHash:initialHash:
class
stringHash:initialHash:
class
stringHash:initialHash:
stringHash:initialHash:
basicNew
class
basicNew:
basicAt:put:
basicSize
basicAt:
objectAt:put:
signal
withArgs:executeMethod:
signal

stack page bytes 8192 available headroom 5576 minimum unused headroom 5832

	(Segmentation fault)
/Users/jurajkubelka/bin/run-gt.sh: line 14: 12839 Abort trap: 6           "$BIN_FILE" --image *.image

JurajKubelka avatar Dec 16 '21 16:12 JurajKubelka

I've been experiencing regular VM crashes while doing menial things, like "Do it" or "Print It" in a playground or inspector. I wonder if it's the same issue.

crash.dmp:


Segmentation fault: 11 Wed Aug 31 09:52:24 2022


~/Documents/Reference/Smalltalk/Working Images/GlamorousToolkit-MacOS-aarch64-v0.8.1862/GlamorousToolkit.app/Contents/MacOS/GlamorousToolkit
PharoVM version:5.0-Pharo 9.0.13 built on Jul  5 2022 13:31:41 Compiler: Apple LLVM 12.0.5 (clang-1205.0.22.11) Apple LLVM 12.0.5 (clang-1205.0.22.11) [Production Spur 64-bit VM]
Built from: CoInterpreter * VMMaker-tonel.1 uuid: 5e181eef-739f-0d00-a84b-dba70d373efa Jul  5 2022
 With:StackToRegisterMappingCogit * VMMaker-tonel.1 uuid: 5e181eef-739f-0d00-a84b-dba70d373efa Jul  5 2022
 Revision: v9.0.13-4-ge0b19ce - Commit: e0b19ce - Date: 2022-03-30 09:53:45 +02:00

C stack backtrace & registers:
	 x00 0x0000000000000010 x01 0x000000016b3c5098 x02 0x00006000039ed210 x03 0x0000000107270bc8
	 x04 0x0000000000000001 x05 0x0000000104b20078 x06 0x0000000000000000 x07 0x000000016b3c37a8
	 x08 0x0000000000000000 x09 0x00000001089188d4 x10 0x0000000000000007 x11 0x0000600004cb4dc0
	 x12 0x0000000000000000 x13 0x3a3a3a3a3a3a3a3a x14 0xff3bffff3a450875 x15 0x0000000000000000
	 x16 0x000000019228a7c0 x17 0x00000001195e6a10 x18 0x0000000000000000 x19 0x0000600000e488c0
	 x20 0x0000600000e488f8 x21 0x000000016b3c5428 x22 0x000000014d80df50 x23 0x0000000107270ff8
	 x24 0x0000000000000000 x25 0x0000000000000008 x26 0x0000000000000010 x27 0x0000000000000008
	 x28 0x00006000006d8aa0  FP 0x000000016b3c4fb0  LR 0xb36c000108918930  SP 0x000000016b3c4fb0
	  PC 0x000000019228a7cc  STATE 0x0000000080001000
*0   libsystem_pthread.dylib             0x000000019228a7cc pthread_mutex_lock + 12
1   libPharoVMCore.dylib                0x0000000105154ff8 reportStackState + 300
2   libPharoVMCore.dylib                0x0000000105154e68 doReport + 132
3   libPharoVMCore.dylib                0x000000010515527c sigsegv + 28
4   libsystem_platform.dylib            0x00000001922a74a4 _sigtramp + 56
5   ???                                 0xffff800108918930 0x0 + 18446603340659919152
6   libSkia.dylib                       0x0000000108918930 skia_platform_compositor_draw + 92
7   libWinit.dylib                      0x000000010717c1fc _ZN5Winit18polling_event_loop16PollingEventLoop19on_redraw_requested17h7039d32b37066c49E + 668
8   libWinit.dylib                      0x00000001071716ec _ZN5Winit18polling_event_loop16PollingEventLoop3run28_$u7b$$u7b$closure$u7d$$u7d$17hb8a7ac5cc295b2e6E + 88
9   libWinit.dylib                      0x0000000107175f74 _ZN144_$LT$winit..platform_impl..platform..app_state..EventLoopHandler$LT$T$GT$$u20$as$u20$winit..platform_impl..platform..app_state..EventHandler$GT$20handle_nonuser_event17hdd33e9b2c7d81bb7E + 452
10  libWinit.dylib                      0x0000000107200468 _ZN5winit13platform_impl8platform9app_state7Handler20handle_nonuser_event17h0994ddce7488a11bE + 636
11  libWinit.dylib                      0x00000001072023c0 _ZN5winit13platform_impl8platform9app_state8AppState7cleared17hf2a61ea2c88f2173E + 1652
12  libWinit.dylib                      0x00000001071fbccc _ZN5winit13platform_impl8platform8observer24control_flow_end_handler17ha8463919e2e38b44E + 148
13  CoreFoundation                      0x000000019235c244 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
14  CoreFoundation                      0x000000019235c094 __CFRunLoopDoObservers + 592
15  CoreFoundation                      0x000000019235b6e0 __CFRunLoopRun + 1052
16  CoreFoundation                      0x000000019235ab24 CFRunLoopRunSpecific + 600
17  HIToolbox                           0x000000019af93338 RunCurrentEventLoopInMode + 292
18  HIToolbox                           0x000000019af930b4 ReceiveNextEventCommon + 564
19  HIToolbox                           0x000000019af92e68 _BlockUntilNextEventMatchingListInModeWithFilter + 72
20  AppKit                              0x0000000194ec178c _DPSNextEvent + 860
21  AppKit                              0x0000000194ec0084 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
22  AppKit                              0x0000000194eb2250 -[NSApplication run] + 596
23  libWinit.dylib                      0x000000010717041c _ZN4objc2rc11autorelease15autoreleasepool17hd7bbe13e1957bdcfE + 320
24  libWinit.dylib                      0x0000000107171384 _ZN5winit13platform_impl8platform10event_loop18EventLoop$LT$T$GT$3run17h5890e559ba20a6daE + 316
25  libWinit.dylib                      0x000000010717b474 _ZN5Winit18polling_event_loop16PollingEventLoop3new17ha404fe45a821a6e1E + 0
26  libWinit.dylib                      0x000000010717f7c8 _ZN5Winit18polling_event_loop16PollingEventLoop3run17h7cb7a09d6499c45dE + 456
27  libWinit.dylib                      0x00000001071682d0 _ZN110_$LT$$BP$mut$u20$boxer..value_box..ValueBox$LT$T$GT$$u20$as$u20$boxer..value_box..ValueBoxPointer$LT$T$GT$$GT$13with_not_null17h875dc9f933e86d8aE + 40
28  libWinit.dylib                      0x00000001071775f0 winit_polling_event_loop_run + 28
29  GlamorousToolkit                    0x0000000104b2004c ffi_call_SYSV + 76
30  GlamorousToolkit                    0x0000000104b1e5e8 ffi_call_int + 1228
31  GlamorousToolkit                    0x0000000104a47064 _ZN9vm_client7runtime10event_loop9EventLoop15process_message17h2f9a54b872c2918dE + 156
32  GlamorousToolkit                    0x0000000104a4294c _ZN9vm_client7runtime13constellation13Constellation3run17hc55d36896461208fE + 404
33  GlamorousToolkit                    0x0000000104a568e8 _ZN9vm_client4main17h78fe5c958d41df7aE + 944
34  GlamorousToolkit                    0x0000000104a5559c _ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17hef866d4ea0eb4954E + 12
35  GlamorousToolkit                    0x0000000104a41784 _ZN3std2rt10lang_start28_$u7b$$u7b$closure$u7d$$u7d$17h287413ec4f73a355E + 16
36  GlamorousToolkit                    0x0000000104b3fb48 _ZN3std2rt19lang_start_internal17h609ce79df789091fE + 684
37  GlamorousToolkit                    0x0000000104a56dd4 main + 48
38  dyld                                0x0000000104fe908c start + 520
39  ???                                 0x0000000000000000 0x0 + 0

Not in VM thread.

Most recent primitives
value
streamContents:
basicNew
size
at:
class
at:
size
at:
at:
size
size
replaceFrom:to:with:startingAt:
**PrimitiveFailure**
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:
at:put:
at:put:
at:put:
at:put:
size
size
size
replaceFrom:to:with:startingAt:
asRopedText
asRopedText
basicNew
value:
class
value:
basicNew
basicNew
primUTCMicrosecondsClock
digitMultiply:neg:
primOffset
bytesCompare:
//
\\
value
class
new
primUTCMicrosecondsClock
digitMultiply:neg:
primOffset
bytesCompare:
//
\\
value:
at:put:
value:
wait
value
signal
wait
value
value
basicNew
basicNew
signal
valueNoContextSwitch
ifCurtailed:
ifCurtailed:
basicNew
value:
**StackOverflow**
wait
assert:description:
newChainedPromises
signal
do:
value:
basicSize
basicAt:
hash
hash
hash
isEmpty
streamContents:
streamContents:
value:
size
**StackOverflow**

size
at:
=
=
contents
at:
=
size
species
new:
at:
at:
value:value:
new
isZero
at:put:
to:
to:
basicNew
basicNew
scanFor:
basicIdentityHash
basicIdentityHash
basicIdentityHash
basicNew
basicNew
class
class
basicIdentityHash
at:
at:
atNewIndex:put:
-
-
-
value
value
>=
min:
min:
min:
basicNew
attributes:from:to:
assert:description:
assert:description:
assert:description:
assert:description:
superclass
superclass
ceiling
ceiling
size
**StackOverflow**
basicIdentityHash
at:
**StackOverflow**

=
=
=
=
basicNew
wait
**StackOverflow**
/
truncated
asFloat
*
*
*
*
*
>
signal
yourself
basicNew
basicNew
value:
wait
assert:description:
newChainedPromises
signal
do:
basicSize
basicAt:
hash
hash
hash
isEmpty
streamContents:
streamContents:
streamContents:
streamContents:
streamContents:
streamContents:
streamContents:
streamContents:
streamContents:
size
size
size
size
size
size
size
size
size
size
size
size
size
size
first
at:
replaceFrom:to:with:startingAt:
at:put:
wait
value
wait
**StackOverflow**
signal
wait
signal
basicNew
then:
value:
isAsyncPromise
**StackOverflow**
signal
then:
signal
then:
wait
,
,
copyReplaceFrom:to:with:
copyReplaceFrom:to:with:
copyReplaceFrom:to:with:
copyReplaceFrom:to:with:
basicNew
*
*
do:
value:
identityHash
at:
at:
basicIdentityHash
basicIdentityHash
basicIdentityHash
basicIdentityHash
basicIdentityHash
new:streamContents:
new:streamContents:
new:streamContents:
clearAttributes:to:if:
clearAttributes:to:if:
value:
**StackOverflow**
findElementOrNil:
at:
at:
at:
at:
at:
at:
at:
copy
left:
left:
coalesceAndBalance
coalesceAndBalance
coalesceAndBalance
coalesceAndBalance
coalesceAndBalance
attributes
basicNew
asAnnouncement
asAnnouncement
basicIdentityHash
uniqueInstance
initialize
yourself
class
hash
hash
hash
hash

stack page bytes 8192 available headroom 5576 minimum unused headroom 5912

	(Segmentation fault: 11)

seandenigris avatar Aug 31 '22 13:08 seandenigris

This is a different issue. This is a crash in the skia library. I get them a lot, too.

refactoringdr avatar Sep 27 '22 15:09 refactoringdr

Can we close this now?

girba avatar Jul 02 '24 20:07 girba

Not reproducible on GToolkit DEV v1.0.927 and macOS 14.5 (23F79).

JurajKubelka avatar Jul 04 '24 16:07 JurajKubelka