Skip to content

fix(browser): prevent inherited jemalloc startup crashes - #195331

Merged
steipete merged 4 commits into
mainfrom
steipete/perf-micro-managed-browser-gpu-abort-on-launch-20260919
Nov 8, 2026
Merged

steipete merged 4 commits into
mainfrom
steipete/perf-micro-managed-browser-gpu-abort-on-launch-20260919

Conversation

@steipete

@steipete steipete commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A Gateway started with jemalloc can crash every managed Chromium launch: inherited LD_PRELOAD=libjemalloc.so.2 plus MALLOC_CONF=background_thread:true,... makes Chromium's zygote initialization fail, followed by GPU process launch failed: error_code=1002 and GPU process isn't usable. Goodbye. The browser aborts with SIGABRT. Allocator-free and preload-only controls work.

The browser could also log “started” after HTTP discovery but before CDP commands worked, then discard the useful stderr. Agents received a generic timeout instead of the launch failure.

User Impact

Managed Chrome now removes MALLOC_CONF and only jemalloc entries from LD_PRELOAD in its child environment. Space/colon-separated unrelated preloads stay intact, and the Gateway's allocator is unchanged. The same shared policy covers the three Docker/Podman host launch paths, including persistent attach; explicit environment settings inside containers are unchanged.

The launch owner confirms CDP command readiness before logging success, reports early exit signals plus bounded redacted FATAL diagnostics and recovery guidance, and logs later abnormal exits. Local subsystem logs retain bounded raw stderr; tool errors are redacted at egress. FATAL lines take priority over the stack dumps that follow them. Exact-PID ownership verification remains with adoption.

Why This Change Was Made

This fixes the environment leak at the launch owners. Chromium flags, GPU policy, sandbox policy, and Gateway allocator configuration stay unchanged. Chromium 153's zygote checks for a single-threaded process before its sandbox/fork setup; jemalloc reads configuration at initialization and can create background threads. The earlier SwiftShader hypothesis was disproven by the allocator-free controls.

Other child boundaries were audited: agent host exec already blocks LD_*; Signal uses an environment allowlist; Codex app-server excludes loader injection variables. The Node spawn-broker worker and general command environment API retain their existing contracts; no crash was established there. Docker/Podman required all three host launch paths to change together.

Evidence

Real browser-tool calls (createBrowserTool().execute) start the browser, navigate to a local synthetic page, and capture a screenshot. Linux uses the exact Playwright chromium-1243 / Chrome for Testing 153.0.8010.12, Ubuntu's jemalloc 5.3.0, and the reported headless/no-sandbox/disable-gpu/disable-gpu-compositing/use-angle=swiftshader/ozone-platform=headless flags.

Linux environment / launch owner Result
Prior owner, no allocator variables CDP, navigation, screenshot pass; start 752 ms
Prior owner, jemalloc preload alone CDP, navigation, screenshot pass; start 692 ms
Prior owner, preload + background_thread:true,dirty_decay_ms:1000,muzzy_decay_ms:1000 2/2 SIGABRT; failure returned in 1,986 / 1,819 ms
Unfiltered owner with improved stderr reporting 2/2 SIGABRT, error_code=1002 and GPU FATAL captured; FATAL survives in tool errors, returned in 1,854 / 1,710 ms
Fixed owner, same parent preload + allocator config 2/2 CDP, navigation, screenshot pass; start 765 / 733 ms

The repeat comparison uses the exact prior launch-owner file from 17cfdce89f8cb69d2985c68803f85146a8c1dee5 (SHA-256 6670612cd45ff119b3e06152fc7b25031b5a61797fb8c3a33944f530de480561) while retaining the improved stderr formatter to validate real fatal diagnostics. The first comparison ran the prior PR production source unchanged. Testbox proof run: immediate allocation, 2 CPUs / 7.7 GiB RAM; lease stopped after artifact retrieval. No production access or data. Signed macOS Chrome 157.0.8103.38 also passed start/navigation/screenshot using a fresh profile, with the allocator variables present on the parent.

The earlier diagnostic fault-injection A/A comparison against base da3cea2ce4a280ac6acc89b62693a19c6534f68d remains valid: failure latency 30,596 / 30,567 → 1,272 / 1,252 ms; Gateway CPU 1.517 / 1.444 → 0.308 / 0.300 seconds; sampled allocations 225.57 / 225.68 → 109.42 / 108.95 MB. This isolates reporting latency; successful navigation and screenshot workloads are not comparable to an aborted startup. These launch owners do not scan session databases or workspace inventories, so no database-scale performance claim is made.

Review repairs

Rebased on e3a09aaba1f45ec3ff2eb4a0db4728286f53068d and addressed all three reported issues:

  1. The cleanup fixture now changes its diagnostic to ready when the replacement child spawns. Pre-spawn diagnostics still describe the stale listener. The four previously failing cleanup cases pass; the full 46-case cleanup suite passes.
  2. A final diagnostic that discovers HTTP after the discovery deadline now enters the same bounded localCdpReadyTimeoutMs command-readiness loop. The new fake-clock regression waits more than one second for the command channel and succeeds. The existing never-ready test advances its clock through this restored retry path and still proves rejection and exact-child cleanup.
  3. The bounded stderr hint remains raw for startup and post-readiness local logs. Startup errors redact only at the tool boundary. Both logging regressions fail before this repair; afterward raw local diagnostics and redacted tool errors coexist.

The late-readiness and two logging regressions produced 3 failures before the repairs and pass afterward. Focused launch suites: 59 passed / one Linux-only skip in 38.41 seconds wall time. The final simplified never-ready fixture also passes its targeted rerun (29.91 seconds including compilation; 1.31 seconds test execution). No new real-time sleeps were added. The cleanup fixture's four failures were reproduced before repair (42 passed / 4 failed).

Validation

Complete browser consumer suite (node scripts/run-vitest.mjs extensions/browser --maxWorkers=1): 3,150 passed / 117 skipped, 257 files passed / 18 skipped, across both browser and database-worker consumer shards; 307.97 seconds wall time. Core, core-test, extension and extension-test typechecks pass. Formatting, line-cap guards, diff whitespace and test-line budget pass. pnpm check:changed completed. Its two introduced extension-lint errors (implicit boolean coercion and a Promise executor return) were corrected; targeted lint then passed and all 16 launch regressions passed again (48.94 seconds including compilation). The complete consumer run preceded only these behavior-preserving lint corrections. A fresh Codex review of the corrections is also scoped-clean. All other checks passed except the inherited gates below. Ready PR head: 9aaec16991f3af162a257dc01baac83654bdd10f. Exact-head CI is running; openclaw/ci-gate was pending after the force-push. The PR remains unmerged.

Prior-revision live Linux and signed macOS launch proof above is retained evidence for the unchanged allocator scrub and Chromium flags; it was not rerun for these readiness/logging repairs. The prior full build and 66-pass container boundary suite remain prior-revision evidence. Current candidate Codex autoreview through P2 is scoped-clean.

Narrow reruns on exact rebased main parent e3a09aaba1f45ec3ff2eb4a0db4728286f53068d reproduce:

  • Knip: OpenClawIdNodeRemovedError, introduced by #193982, 21c02885fb1a51903d4c6f7f9b3893895b2c2f31; and newly exercised production-only NodeDialogContent, introduced by #194007, e43e623ba068405c44637adee9a51d5c75903df9. The latter has same-file production use and test-only external consumers; this is an additional main regression requiring follow-up.
  • Changelog attribution: 20 archived attributions rejected by #194364, 266a7aa0fe69e2b5fe6445c4ceb1e15b5360c957.
  • Public SDK budgets: 3,876 exports / 2,237 callables / one wildcard against limits 3,865 / 2,235 / zero. #176886, 1595dd24770799485a9631c757ccfb7740c12be2, introduced all three failures (its immediate parent passes); #191344 and #177231 explain the remaining additions. This PR's process-runtime helper is local-only and does not change the public totals.

These are main regressions for follow-up. No UI-imported module changes. No new config, cache, database schema, or browser flags. Whole-PR production delta +38 lines; tests +148, covered by a scoped allocation. This revision removes nine production lines by combining late discovery with the existing readiness path and flattening failure handling. Remaining growth owns shared child allocator isolation and bounded crash diagnostics.

Successful Chromium launch, navigation, and screenshot on the synthetic Linux fixture

@clawsweeper

clawsweeper Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: browser size: M labels Nov 8, 2026
@steipete
steipete marked this pull request as ready for review November 8, 2026 17:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T18:58:54.506609Z 9aaec16 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 17cfdce89f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1056 to +1058
if (!proc?.killed && (code !== 0 || exitSignal)) {
log.error(
`Managed Chrome for profile "${profile.name}" exited (code ${code}, signal ${exitSignal}). Check the browser executable and browser.extraArgs before retrying.${stderrDiagnostics.hint()}`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve raw crash diagnostics in local logs

When Chrome stderr matches a default or operator-configured redaction pattern, stderrDiagnostics.hint() masks it before passing it to the logger, so the local file permanently loses the original diagnostic. The new startup-failure log has the same issue because it logs the already-redacted tool error. Root AGENTS.md explicitly requires raw local logs with redaction only at egress. Keep a bounded raw representation for logging and redact the browser-tool error separately; the logging transport already handles console redaction.

AGENTS.md reference: AGENTS.md:L61-L61

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 8, 2026
@clawsweeper

clawsweeper Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR retains managed Chrome crash diagnostics through CDP readiness and logs abnormal exits after startup.

Example: Managed Chrome exposes discovery on port 18800, then exits with SIGABRT during the WebSocket handshake.

  • Before: Startup can be logged as successful before the browser tool eventually returns a generic timeout.
  • After: The launch owner reports SIGABRT, bounded stderr, and recovery guidance without announcing successful startup.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The repair has clear user value, but a readiness regression, premature log redaction, and diff-caused consumer-test failures prevent merge.
Proof confidence 🦐 gold shrimp (3/6) The ordinary contributor proof gate is exempt for this maintainer-authored PR. Its body describes real-child fault injection through the production browser tool and control service; inspected media shows the healthy Chromium control only, and linked logs were blocked by the review environment's storage-host allowlist.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A managed browser can crash after HTTP discovery, leaving a false startup message and a generic browser-tool timeout instead of its crash details.
Reason: The maintainer-authored direction improves an existing failure contract without adding options or speculative GPU flags; the unexplained GPU abort itself is explicitly outside scope.

Merge readiness

⛔ Needs changes before merge - 3 items remain

This PR addresses a real diagnostic failure and has maintainer-approved direction, but three focused repairs are needed before merge.

Priority: P2
Reviewed head: 17cfdce89f8cb69d2985c68803f85146a8c1dee5

Before merge

  • Give late HTTP discovery the full CDP readiness budget (P2) - If polling expires before discovery succeeds, the final diagnostic can find HTTP working while its first WebSocket command still times out. This branch now accepts only diagnostic.ok, and the new readiness loop has already been skipped, so a live browser is killed after that single 800ms WebSocket allowance. Previously this exact fallback handed the child to the separate readiness retry budget. For example, a browser discovered only by the final probe whose command channel becomes ready after one second now fails despite fitting localCdpReadyTimeoutMs. Route successful late HTTP discovery through the same command-readiness loop before declaring failure.
  • Preserve raw stderr for local crash logs (P2) - hint() applies redactToolPayloadText before the new startup-failure and post-readiness log.error calls consume it. With an operator redaction pattern matching a diagnostic such as the GPU fatal message, the local file permanently records the masked text and the raw buffer is subsequently cleared. AGENTS.md requires raw local logging, and the subsystem logger already redacts console output separately. Keep bounded raw diagnostic text for local logging and apply redaction only to the browser-tool error and other egress.
  • Update headless-cleanup fixtures for launch-owned readiness (P2) - The new diagnoseChromeCdp call breaks existing successful-launch consumers in chrome.headless-cleanup.test.ts. stubReadyLaunch() supplies HTTP discovery but leaves fixture.diagnose unset; the stale-browser recovery table instead keeps returning the old browser's failure after the replacement is spawned. The new loop therefore throws or exhausts readiness and attempts cleanup of a synthetic child that never exits. Exact-head CI confirms these failures, including the assertion at line 499. Make the fixture return a ready diagnostic for the newly spawned child while preserving the pre-spawn stale-listener failure, and rerun the complete consumer suite.

Findings

  • [P2] Give late HTTP discovery the full CDP readiness budget — extensions/browser/src/browser/chrome.ts:965-966
  • [P2] Preserve raw stderr for local crash logs — extensions/browser/src/browser/chrome.launch-stderr.ts:35-38
  • [P2] Update headless-cleanup fixtures for launch-owned readiness — extensions/browser/src/browser/chrome.ts:910-916

Tests

  • Missing end-to-end proof: The inspected screenshot covers healthy navigation; the reported injected-crash tool output and logs were not independently inspectable through the linked run.
Agent review details

How this fits together

The browser plugin launches managed Chrome for browser-tool requests, verifies CDP command readiness and process ownership, and returns an adopted browser handle or a diagnostic error.

flowchart LR
  A[Browser tool] --> B[Profile availability]
  B --> C[Chrome launch owner]
  C --> D[Managed Chrome child]
  C --> E[HTTP and CDP readiness]
  B --> F[Exact PID verification]
  D --> G[Bounded stderr diagnostics]
  G --> H[Tool errors and local logs]
Loading

Technical review

Best possible solution:

Keep readiness and crash diagnostics with the launch owner, route late discovery through its full readiness budget, preserve raw local logs, and update affected consumer fixtures.

Do we have a high-confidence way to reproduce the issue?

Current-main source confirms that HTTP discovery can announce startup and release stderr before command readiness; the PR describes a matching isolated-child reproduction, but no target code was executed during this read-only review.

Is this the best way to solve the issue?

Consolidating readiness under the child-owning launch operation is the smallest complete fix, provided late discovery receives the existing readiness allowance and logging keeps raw and tool-safe representations separate.

Full review comments:

  • [P2] Give late HTTP discovery the full CDP readiness budget — extensions/browser/src/browser/chrome.ts:965-966
    If polling expires before discovery succeeds, the final diagnostic can find HTTP working while its first WebSocket command still times out. This branch now accepts only diagnostic.ok, and the new readiness loop has already been skipped, so a live browser is killed after that single 800ms WebSocket allowance. Previously this exact fallback handed the child to the separate readiness retry budget. For example, a browser discovered only by the final probe whose command channel becomes ready after one second now fails despite fitting localCdpReadyTimeoutMs. Route successful late HTTP discovery through the same command-readiness loop before declaring failure.
    Confidence: 0.97
  • [P2] Preserve raw stderr for local crash logs — extensions/browser/src/browser/chrome.launch-stderr.ts:35-38
    hint() applies redactToolPayloadText before the new startup-failure and post-readiness log.error calls consume it. With an operator redaction pattern matching a diagnostic such as the GPU fatal message, the local file permanently records the masked text and the raw buffer is subsequently cleared. AGENTS.md requires raw local logging, and the subsystem logger already redacts console output separately. Keep bounded raw diagnostic text for local logging and apply redaction only to the browser-tool error and other egress.
    Confidence: 0.99
  • [P2] Update headless-cleanup fixtures for launch-owned readiness — extensions/browser/src/browser/chrome.ts:910-916
    The new diagnoseChromeCdp call breaks existing successful-launch consumers in chrome.headless-cleanup.test.ts. stubReadyLaunch() supplies HTTP discovery but leaves fixture.diagnose unset; the stale-browser recovery table instead keeps returning the old browser's failure after the replacement is spawned. The new loop therefore throws or exhausts readiness and attempts cleanup of a synthetic child that never exits. Exact-head CI confirms these failures, including the assertion at line 499. Make the fixture return a ready diagnostic for the newly spawned child while preserving the pre-spawn stale-listener failure, and rerun the complete consumer suite.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 2aba6707c06a.

Provenance checked

  • Discovery versus command readiness changes intended behavior with a stated reason (42435d1: Accept discovery found by the final diagnostic and let a separate readiness budget tolerate a warming command channel.)
  • Bounded stderr retention and recovery markers keeps the original intent (a522e43: Bound retained stderr while preserving recovery markers and the newest UTF-safe failure output.)
  • Exact-child early-exit rejection keeps the original intent (5ecd23b: Stop waiting after the spawned child exits and prevent a late endpoint response from rescuing a dead launch.)
  • Lifecycle cancellation and endpoint adoption keeps the original intent (ea2b558: Prevent stale starts from resurrecting browser state and retain cleanup ownership of exact resources.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test extensions/browser/src/browser/chrome.headless-cleanup.test.ts extensions/browser/src/browser/chrome.headless-launch.test.ts extensions/browser/src/browser/chrome.launch-early-exit.test.ts extensions/browser/src/browser/chrome.internal.test.ts extensions/browser/src/browser/server-context.ensure-browser-available.waits-for-cdp-ready.test.ts --maxWorkers=1
  • pnpm check:changed
  • Demonstrate the late-discovery regression failing on the reviewed head and passing after repair.
  • Verify raw local crash logs and redacted tool output with a synthetic diagnostic matching an operator redaction pattern.

What I checked:

PR surface

Source +11, Tests +70, Docs +13, Other +2. Total +96 across 9 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 3 137 126 +11
Tests 4 103 33 +70
Docs 1 13 0 +13
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 9 255 159 +96

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test LOC Production +137/-126, net +11; tests +103/-33, net +70 The stderr extraction mostly relocates existing code; remaining production growth supports post-readiness diagnostics, and test growth covers distinct launch and lifecycle failures.

Labels

Label changes:

  • add P2: This improves a bounded browser-startup failure path; the introduced defects have focused repairs and do not establish a widespread outage.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This improves a bounded browser-startup failure path; the introduced defects have focused repairs and do not establish a widespread outage.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 8, 2026, 1:08 PM ET / 18:08 UTC.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime docker Docker and sandbox tooling agents Agent runtime and tooling size: L and removed size: M labels Nov 8, 2026
@steipete steipete changed the title fix(browser): report managed Chrome startup crashes fix(browser): prevent inherited jemalloc startup crashes Nov 8, 2026
@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: 9aaec16991f3af162a257dc01baac83654bdd10f
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/sandbox/container-engine.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/agents/sandbox/docker-backend.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/agents/sandbox/docker-persistent-exec.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.

Carefully review these changes before merging.

Wait for CDP command readiness before announcing managed browser startup, preserving child exit status and bounded stderr for tool errors and logs. Keep abnormal-exit diagnostics after readiness while retaining exact-PID adoption checks.
@steipete
steipete force-pushed the steipete/perf-micro-managed-browser-gpu-abort-on-launch-20260919 branch from d70082c to e7c7e38 Compare November 8, 2026 18:50
@steipete

steipete commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Landing note: ClawSweeper's three items (reviewed on an earlier head) are addressed at 9aaec16: (1) late HTTP discovery now goes through the same command-readiness loop within localCdpReadyTimeoutMs instead of a single 800 ms WebSocket allowance; (2) local logs keep bounded raw diagnostic text, and redaction applies only to the browser-tool error and other egress; (3) the headless-cleanup fixtures return a ready diagnostic for the newly spawned child while preserving the pre-spawn stale-listener failure (browser consumer suite 3,150 passed). Root cause on Team: the Gateway's MALLOC_CONF (jemalloc background_thread) inherited by Chromium broke the zygote's single-threaded fork. Reproduced live and fixed by scrubbing inherited jemalloc settings from the Chromium and container launch environments. Exact-head CI green.

@steipete
steipete merged commit 3df96df into main Nov 8, 2026
133 of 134 checks passed
@steipete
steipete deleted the steipete/perf-micro-managed-browser-gpu-abort-on-launch-20260919 branch November 8, 2026 19:08
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 9, 2026
…5331)

* fix(browser): report managed Chrome startup crashes

Wait for CDP command readiness before announcing managed browser startup, preserving child exit status and bounded stderr for tool errors and logs. Keep abnormal-exit diagnostics after readiness while retaining exact-PID adoption checks.

* fix(process): isolate external tools from Gateway jemalloc

* fix(browser): preserve late readiness and raw launch logs

* style(browser): satisfy launch readiness lint rules
maplel pushed a commit to maplel/openclaw that referenced this pull request Nov 24, 2026
…8901)

(cherry picked from commit 1f088d2)

Release adaptation: carry only 4 MiB ps cap and focused native capture
regression. Unknown process ownership remains a refusal.
Companions: later profile threading openclaw#200503, Linux temp path openclaw#196778,
jemalloc openclaw#195331, and retired allocation cleanup openclaw#197656 are not
prerequisites of this macOS capture bound; no PR-number follow-ups.
Validation: diff check passed; focused test setup lacks @solidjs/vite-plugin
in provided shared dependencies (lock differs), not a product verdict.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit f8f4d9f4c90a68c0e805b916918c4c1d35d23b0d)
(cherry picked from commit d77e84457d8a53075e55507c7053344a22fe08ff)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: browser gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. security-sensitive-changed size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant