Skip to content

bug: browser crash after an infinite loop stop #92

Description

@kbuffardi

Description

I programmed an infinite loop that produced a lot of output when I ran it. But I stopped it using the STOP button. However, when close the tab, the whole Chrome browser crashed with the provided error log. When I open the extension again with the project open, it crashes again (even if I don't re-run the program) when I try to close the extension's tab.

Expected behavior

After a STOP incident, the Terminal should be reset to its initial state with all input/output buffers cleared and any other side-effects of the program run cleared so they do not persist when the extension is re-opened.

Steps to reproduce

See the description.

Environment

MacOS 15.7.3
Chrome 153.0.8010.36
browser.cpp v0.4.8

Logs or screenshots

Crash report log (exerpt):

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

Process:               Google Chrome [15017]
Path:                  /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Identifier:            com.google.Chrome
Version:               153.0.8010.36 (8010.36)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501
OS Version:            macOS 15.7.3 (24G419)
Report Version:        12
Anonymous UUID:        A50097B1-EE2A-12ED-D32E-6993F27E0AB5
Sleep/Wake UUID:       12244C11-DDB7-4DA3-9E97-83DE8323234A

System Integrity Protection: enabled

Crashed Thread:        6  ThreadPoolForegroundWorker

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x000000010cd014cc

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [15017]

Thread 6 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x000001040c751bc0   x2: 0x000000000000000c   x3: 0x00000001867d6990
    x4: 0x000000016db607c0   x5: 0x0000000000000010   x6: 0x203a3932383a6363   x7: 0x0000000000000000
    x8: 0x0000000000000000   x9: 0x0000000000000000  x10: 0x0000000000000000  x11: 0x0000000000000002
   x12: 0x0000000000000000  x13: 0x0000000000000000  x14: 0x000001040c7516fc  x15: 0x000000006b726f77
   x16: 0x000000018679a8a4  x17: 0x000000016db63000  x18: 0x0000000000000000  x19: 0x00000000000008cb
   x20: 0x000000016db60b90  x21: 0x000000016db60ca8  x22: 0x00000001130ed000  x23: 0x0000000000000000
   x24: 0x0000000000000000  x25: 0x00000001130ee000  x26: 0x0000000000000000  x27: 0x000000016db60bc8
   x28: 0x0000000000000870   fp: 0x000000016db60b80   lr: 0x000000010cd013f4
    sp: 0x000000016db60750   pc: 0x000000010cd014cc cpsr: 0x60001000
   far: 0x0000000000000000  esr: 0xf2000000 (Breakpoint) brk 0

Binary Images:
       0x1044e8000 -        0x1044ebfff com.google.Chrome (153.0.8010.36) <4c4c44cb-5555-3144-a1cd-1757315dbd18> /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
       0x10495c000 -        0x112557fff com.google.Chrome.framework (153.0.8010.36) <4c4c44c9-5555-3144-a183-b0916dc6bdce> /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/153.0.8010.36/Google Chrome Framework
       0x11d970000 -        0x11d97bfff libobjc-trampolines.dylib (*) <9a87f143-aa9d-3c46-b2e8-b3fb9215e33e> /usr/lib/libobjc-trampolines.dylib
       0x125380000 -        0x125ab3fff com.apple.AGXMetalG15G-C0 (329.2) <c0944dee-3f71-3677-b9a0-1e21a80c1060> /System/Library/Extensions/AGXMetalG15G_C0.bundle/Contents/MacOS/AGXMetalG15G_C0
       0x143418000 -        0x1444d3fff liboptimization_guide_internal.dylib (*) <4c4c44a3-5555-3144-a153-a845ee2fb440> /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/153.0.8010.36/Libraries/liboptimization_guide_internal.dylib
       0x140ec0000 -        0x140edffff com.apple.security.csparser (3.0) <58f759bc-cd52-3491-8dd0-7f34f32cfc35> /System/Library/Frameworks/Security.framework/Versions/A/PlugIns/csparser.bundle/Contents/MacOS/csparser
       0x18680e000 -        0x186d4cfff com.apple.CoreFoundation (6.9) <37cebb20-0448-392c-9f01-f5bd87eb295e> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x192266000 -        0x19256cfdf com.apple.HIToolbox (2.1.1) <7537dc6d-3280-335e-9259-ed5d308d29ec> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x18a76f000 -        0x18bbffcff com.apple.AppKit (6.9) <00452387-9d4c-397a-a17d-cd14bb6ce9b4> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x1863f8000 -        0x18649357b dyld (*) <e4e5cd37-5339-3136-b2c5-0c80f0720c26> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x1867d6000 -        0x1867dde0b libsystem_platform.dylib (*) <c26e58a4-34a1-3f9c-bdbc-ebc34426633a> /usr/lib/system/libsystem_platform.dylib
       0x186799000 -        0x1867a5a77 libsystem_pthread.dylib (*) <022dc315-cf35-38da-939e-03800b5beff2> /usr/lib/system/libsystem_pthread.dylib
       0x18675d000 -        0x186798663 libsystem_kernel.dylib (*) <1d4ffd44-8926-3746-924e-deef5b777588> /usr/lib/system/libsystem_kernel.dylib
       0x187dff000 -        0x188be877f com.apple.Foundation (6.9) <491f91b7-5a62-3fe6-bb46-47a189bdba6d> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation

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


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

{"app_name":"Google Chrome","timestamp":"2026-09-14 17:21:50.00 -0700","app_version":"153.0.8010.36","slice_uuid":"4c4c44cb-5555-3144-a1cd-1757315dbd18","build_version":"8010.36","platform":1,"bundleID":"com.google.Chrome","share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 15.7.3 (24G419)","roots_installed":0,"name":"Google Chrome","incident_id":"71D7DC1B-946B-4B1C-A821-5A3DDD757A12"}
{
  "uptime" : 1000000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac15,3",
  "coalitionID" : 1231855,
  "osVersion" : {
    "train" : "macOS 15.7.3",
    "build" : "24G419",
    "releaseType" : "User"
  },
  "captureTime" : "2026-09-14 17:21:50.2333 -0700",
  "codeSigningMonitor" : 1,
  "incident" : "71D7DC1B-946B-4B1C-A821-5A3DDD757A12",
  "pid" : 15017,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2026-09-14 17:21:20.9777 -0700",
  "procStartAbsTime" : 25034325492010,
  "procExitAbsTime" : 25035027171280,
  "procName" : "Google Chrome",
  "procPath" : "\/Applications\/Google Chrome.app\/Contents\/MacOS\/Google Chrome",
  "bundleInfo" : {"CFBundleShortVersionString":"153.0.8010.36","CFBundleVersion":"8010.36","CFBundleIdentifier":"com.google.Chrome"},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.google.Chrome",
  "crashReporterKey" : "A50097B1-EE2A-12ED-D32E-6993F27E0AB5",
  "appleIntelligenceStatus" : {"state":"available"},
  "codeSigningID" : "com.google.Chrome",
  "codeSigningTeamID" : "EQHXZ8M8AV",
  "codeSigningFlags" : 570522369,
  "codeSigningValidationCategory" : 6,
  "codeSigningTrustLevel" : 4294967295,
  "codeSigningAuxiliaryInfo" : 0,
  "instructionByteStream" : {"beforePC":"CADouB8FAHHh+\/9UCAhA+QABP9bc\/\/8X82IQlYCCAvAAgBSRnpcOlw==","atPC":"AAAg1AAAQNQgACDU\/wMB0fRPAqn9ewOp\/cMAkeMTAanlGwCpEwBA+Q=="},
  "bootSessionUUID" : "B5D22F19-5DC2-4937-870B-3D8079BC4D8F",
  "wakeTime" : 4697,
  "sleepWakeUUID" : "12244C11-DDB7-4DA3-9E97-83DE8323234A",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x000000010cd014cc","rawCodes":[1,4509930700],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":15017},
  "os_fault" : {"process":"Google Chrome"},
  "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" : 6,
  "threads" : [{"threadState":{"x":[{"value":1116864500560},{"value":0},{"value":18446744073709551600},{"value":1116884500976},{"value":1116884501056},{"value":0},{"value":1116978384864},{"value":0},{"value":1116864500560},{"value":1},{"value":1099523555328},{"value":37374137},{"value":16384},{"value":16383},{"value":112},{"value":120},{"value":6551343088,"symbolLocation":0,"symbol":"_platform_memset"},{"value":3},{"value":0},{"value":1116864500528},{"value":1116744242464},{"value":1116986560512},{"value":0},{"value":4618117120},{"value":1966},{"value":4614709248},{"value":0},{"value":4614709248},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4372058324},"cpsr":{"value":2147487744},"fp":{"value":6099649792},"sp":{"value":6099649776},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":4372058372},"far":{"value":0}},"id":35778687,"name":"CrBrowserMain","queue":"com.apple.main-thread","frames":[{"imageOffset":168196,"symbol":"ChromeMain","symbolLocation":148804,"imageIndex":1},{"imageOffset":102644976,"symbol":"ChromeMain","symbolLocation":102625584,"imageIndex":1},{"imageOffset":102719236,"symbol":"ChromeMain","symbolLocation":102699844,"imageIndex":1},{"imageOffset":102718640,"symbol":"ChromeMain","symbolLocation":102699248,"imageIndex":1},{"imageOffset":18642512,"symbol":"ChromeMain","symbolLocation":18623120,"imageIndex":1},{"imageOffset":18637020,"symbol":"ChromeMain","symbolLocation":18617628,"imageIndex":1},{"imageOffset":60990676,"symbol":"ChromeMain","symbolLocation":60971284,"imageIndex":1},{"imageOffset":13351032,"symbol":"ChromeMain","symbolLocation":13331640,"imageIndex":1},{"imageOffset":60910268,"symbol":"ChromeMain","symbolLocation":60890876,"imageIndex":1},{"imageOffset":60950872,"symbol":"ChromeMain","symbolLocation":60931480,"imageIndex":1},{"imageOffset":2826888,"symbol":"ChromeMain","symbolLocation":2807496,"imageIndex":1},{"imageOffset":60949828,"symbol":"ChromeMain","symbolLocation":60930436,"imageIndex":1},{"imageOffset":510564,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__","symbolLocation":28,"imageIndex":6},{"imageOffset":510456,"symbol":"__CFRunLoopDoSource0","symbolLocation":172,"imageIndex":6},{"imageOffset":509796,"symbol":"__CFRunLoopDoSources0","symbolLocation":232,"imageIndex":6},{"imageOffset":504760,"symbol":"__CFRunLoopRun","symbolLocation":840,"imageIndex":6},

[...continued...]

Additional context

No response

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I have provided enough information to reproduce the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions