Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9c50e091cb1b47fddb7afa7ffec7f9f22c0ee38b
      
https://github.com/WebKit/WebKit/commit/9c50e091cb1b47fddb7afa7ffec7f9f22c0ee38b
  Author: Fujii Hironori <[email protected]>
  Date:   2026-10-10 (Sat, 10 Oct 2026)

  Changed paths:
    M Tools/glib/glib_test_runner.py

  Log Message:
  -----------
  [GLib] run-api-tests aborts with UnicodeDecodeError when a UTF-8 character in 
test stderr is split across 4096-byte reads
https://bugs.webkit.org/show_bug.cgi?id=327076

Reviewed by Claudio Saavedra.

GLibTestRunner._read_from_stderr() decoded each 4096-byte chunk read
from stderr separately, so a multibyte UTF-8 character split across two
chunks raised UnicodeDecodeError and aborted the whole run. This happens
on the WPE ARM64 bot when the Swift runtime backtracer dumps memory after
a test crashes, because the dump contains many 2-byte UTF-8 characters.

Collect the chunks as bytes and decode them once at the end. Use
errors='replace' so that invalid UTF-8 in test output never aborts the
test runner.

* Tools/glib/glib_test_runner.py:
(GLibTestRunner._read_from_stderr):

Canonical link: https://commits.webkit.org/323311@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to