Skip to content

[Windows] Main process repeatedly crashes when closing built-in browser tabs: C0000005 / chrome.dll+0x532F638 #54493

Open

Description

@Xiachunyu1990

问题与影响

Codex Windows 桌面端在代理关闭内置浏览器标签、清理 webview 时,整个主进程反复崩溃,持续中断工作。用户有时在其他应用中工作,关闭动作来自浏览器 API,不能归因于用户手动退出 Codex。升级应用后仍复发。

希望将此问题转交 Windows 桌面端/内置浏览器工程团队,用内部符号核对原生窗口销毁与相关数据宿主的生命周期,并提供修复版本或最小补充诊断要求。用户希望继续使用内置浏览器;更换外部浏览器不应被视为已修复。

环境

  • Windows 11 x64,系统版本 26200。
  • 应用版本:26.1007.71326。
  • MSIX 包身份:OpenAI.Codex;包版本:26.1007.9446.0;主进程:ChatGPT.exe。
  • 内置 chrome.dll 文件版本:155.0.8059.40。
  • 此前应用 26.1007.21434/包 26.1007.2314.0 也发生过类似闪退。

实际场景与复现边界

  1. 代理在真实任务中正常使用 Codex 内置浏览器。
  2. 浏览器 API 通过 Target.closeTarget 关闭标签,日志记录 reason=target-close。
  3. webview disposed、guest torn down、closed browser sidebar page 后,主进程发生原生异常并整体退出。

已记录事件:2026-10-14 19:03;10-15 09:49、09:55、12:06;10-16 09:56、11:19、11:35(均 UTC+8)。不是每次关闭都复现。空白页连续打开/关闭测试没有触发问题,不能作为真实任务已修复的依据。

预期:关闭内置浏览器标签应正常释放相关对象,主应用及其他任务保持运行。

最新一次完整捕获:2026-10-16 11:35(UTC+8)

使用独立于 Codex 进程树运行的微软 ProcDump 捕获,转储只在本机用微软调试引擎离线分析:

  • 11:35:01 首次机会异常,Mini 转储完整写入:45,327,652 字节,耗时 1.1 秒。
  • 11:35:03 进程以 0xC0000005 退出,退出转储完整写入:42,412,466 字节,耗时 0.4 秒。
  • 以上两份转储属于同一次崩溃,并非两次事件。
  • Crashpad sidecar 同时记录 capture_kind=crash、osarch=x86_64、ptype=browser。

原生异常签名:

Thread:          CrBrowserMain
Exception/exit:  0xC0000005 (read access violation)
Module:          bundled chrome.dll
Fault RVA:       0x532F638
Instruction:     cmp qword ptr [rax+0x20], rdx
RAX:             0xEFEFEFEFEFEFEFEF
Computed read:   0xEFEFEFEFEFEFF00F (noncanonical)
Exception record reports attempted read address as 0xFFFFFFFFFFFFFFFF.
Direct caller:   chrome.dll+0xAAE589C -> chrome.dll+0x532F600

10月16日11:19那次未写完的转储中,已恢复并交叉核对异常/线程上下文和模块记录;其故障 RVA 与 EF 指针值和本次完整转储一致。

堆栈与查询对象证据

下载精确匹配的 Windows 公共 PDB 后,堆栈显示原生窗口销毁路径:

win32u!NtUserDestroyWindow
  -> user32!_fnNCDESTROY
  -> user32!DispatchClientMessage
  -> Chromium 窗口/视图清理回调
  -> chrome.dll+0x532F638 非法读取

故障处 RDX 指向的键可读取为 BrowserActions::kDataKeyImpl;邻近字符串为 Chromium 源路径 chrome/browser/ui/browser_actions.cc。直接调用点的反汇编显示:从接收对象偏移 0x7A8 取指针,偏移 0xA8 取得关联数据宿主,随后查询树结构时解引用 EF 指针。

判断与限制

高度怀疑窗口/视图销毁期间的对象生命周期错误或释放后使用(use-after-free),尚未证实具体被释放对象及其分配/释放堆栈。

匹配此 chrome.dll 的私有 PDB 在所查的微软/Electron 公共符号服务中不可用。因此,调试器以邻近导出名加巨大偏移显示的 V8/Node 函数名不应被当作准确责任函数。请使用内部精确符号确认,而不要仅依据邻近导出名定责。

chrome.dll SHA-256:

CE6D04CC948E034C5F18D116A76DBB2CDF84B068C85101E53D168FBB33DADD60

没有修改安装目录代码、GPU 设置、输入法、账号数据库或业务项目。当前没有经过验证的本机修复。

相关既有报告包括 #30178、#46644,但它们描述的触发阶段/故障偏移不同,暂不能认定为同一根因;本报告补充当前版本的关闭窗口签名和已捕获的销毁调用链。

隐私与后续材料

本次仅公开脱敏后的技术摘要。原始转储、完整日志、聊天内容、业务网址、账号信息和本机路径均未上传。原始转储含潜在敏感内存,用户明确要求暂时仅保留在本机。如工程团队确实需要,请先说明最小数据要求和官方安全提交渠道,再由用户决定。

Activity

  1. added
    bug
    app
    windows-os
    on Oct 16, 2026
  2. changed the title [-][Windows] 内置浏览器关闭标签时主进程反复崩溃:C0000005 / chrome.dll+0x532F638[/-] [+][Windows] Main process repeatedly crashes when closing built-in browser tabs: C0000005 / chrome.dll+0x532F638[/+] on Oct 16, 2026
  3. github-actions commented on Oct 16, 2026

    @github-actions
    Contributor

    English translation:

    Problem and impact

    The main process of the Codex Windows desktop app repeatedly crashes when the agent closes built-in browser tabs and cleans up webviews, continually interrupting work. The user is sometimes working in other applications, and the close action comes from the browser API, so this cannot be attributed to the user manually exiting Codex. The issue still recurs after upgrading the app.

    Please forward this issue to the Windows desktop / built-in browser engineering team to use internal symbols to check the lifetimes of native windows and associated data hosts during destruction, and provide a fixed version or the minimum requirements for additional diagnostics. The user wants to continue using the built-in browser; switching to an external browser should not be considered a fix.

    Environment

    • Windows 11 x64, OS version 26200.
    • App version: 26.1007.71326.
    • MSIX package identity: OpenAI.Codex; package version: 26.1007.9446.0; main process: ChatGPT.exe.
    • Bundled chrome.dll file version: 155.0.8059.40.
    • Similar crashes also occurred previously with app 26.1007.21434 / package 26.1007.2314.0.

    Actual scenario and reproduction limits

    1. The agent uses the Codex built-in browser normally during real tasks.
    2. The browser API closes a tab through Target.closeTarget, with reason=target-close recorded in the logs.
    3. After webview disposed, guest torn down, and closed browser sidebar page, the main process encounters a native exception and exits entirely.

    Recorded incidents: 2026-10-14 19:03; 10-15 09:49, 09:55, 12:06; 10-16 09:56, 11:19, 11:35 (all UTC+8). It does not reproduce on every close. Repeatedly opening and closing blank pages did not trigger the issue and cannot be used as evidence that it has been fixed for real tasks.

    Expected: Closing a built-in browser tab should release the associated objects normally, while the main application and other tasks continue running.

    Latest complete capture: 2026-10-16 11:35 (UTC+8)

    Captured using Microsoft ProcDump running independently of the Codex process tree. The dumps were analyzed offline only on the local machine using Microsoft's debugging engine:

    • 11:35:01 first-chance exception; Mini dump fully written: 45,327,652 bytes, taking 1.1 seconds.
    • 11:35:03 process exited with 0xC0000005; exit dump fully written: 42,412,466 bytes, taking 0.4 seconds.
    • These two dumps belong to the same crash, not two separate incidents.
    • The Crashpad sidecar also recorded capture_kind=crash, osarch=x86_64, ptype=browser.

    Native exception signature:

    Thread:          CrBrowserMain
    Exception/exit:  0xC0000005 (read access violation)
    Module:          bundled chrome.dll
    Fault RVA:       0x532F638
    Instruction:     cmp qword ptr [rax+0x20], rdx
    RAX:             0xEFEFEFEFEFEFEFEF
    Computed read:   0xEFEFEFEFEFEFF00F (noncanonical)
    Exception record reports attempted read address as 0xFFFFFFFFFFFFFFFF.
    Direct caller:   chrome.dll+0xAAE589C -> chrome.dll+0x532F600
    

    The exception/thread contexts and module records were recovered and cross-checked from the incomplete dump from October 16 at 11:19; its fault RVA and EF pointer value match this complete dump.

    Stack and evidence about the queried object

    After downloading the exactly matching Windows public PDBs, the stack shows a native window destruction path:

    win32u!NtUserDestroyWindow
      -> user32!_fnNCDESTROY
      -> user32!DispatchClientMessage
      -> Chromium window/view cleanup callback
      -> chrome.dll+0x532F638 invalid read
    

    At the fault, the key pointed to by RDX is readable as BrowserActions::kDataKeyImpl; a nearby string is the Chromium source path chrome/browser/ui/browser_actions.cc. Disassembly at the direct call site shows a pointer being retrieved from offset 0x7A8 of the receiver object, the associated data host being retrieved at offset 0xA8, and then an EF pointer being dereferenced while querying a tree structure.

    Assessment and limitations

    An object lifetime error or use-after-free during window/view destruction is strongly suspected. The specific freed object and its allocation/free stacks have not yet been confirmed.

    Private PDBs matching this chrome.dll were unavailable from the Microsoft / Electron public symbol services checked. Therefore, V8 / Node function names displayed by the debugger as nearby exported names plus huge offsets should not be treated as accurate identifications of the responsible functions. Please confirm using exact internal symbols rather than assigning responsibility based solely on nearby exported names.

    chrome.dll SHA-256:

    CE6D04CC948E034C5F18D116A76DBB2CDF84B068C85101E53D168FBB33DADD60
    

    No changes have been made to code in the installation directory, GPU settings, input methods, the account database, or work projects. There is currently no verified local fix.

    Related existing reports include #30178 and #46644, but they describe different trigger stages / fault offsets, so they cannot yet be determined to share the same root cause. This report adds the window-closing signature for the current version and the captured destruction call chain.

    Privacy and follow-up materials

    Only a sanitized technical summary is being made public here. Raw dumps, complete logs, chat contents, work-related URLs, account information, and local paths have not been uploaded. The raw dumps contain potentially sensitive memory, and the user has explicitly requested that they remain only on the local machine for now. If the engineering team does need them, please first specify the minimum data requirements and an official secure submission channel, then let the user decide.

  4. github-actions commented on Oct 16, 2026

    @github-actions
    Contributor
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

    appbrowserbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions