WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
298499
AbortController with event listeners causes memory leak due to incorrect GC reachability check
https://bugs.webkit.org/show_bug.cgi?id=298499
Summary
AbortController with event listeners causes memory leak due to incorrect GC r...
tbvjaos510
Reported
2025-09-06 09:29:48 PDT
AbortController objects with event listeners are never garbage collected, causing memory leaks. Steps to Reproduce: 1. Create AbortController instances 2. Add event listeners to their signals 3. Remove all references to the controllers 4. Force garbage collection Expected Result: AbortController objects should be garbage collected when no longer referenced. Actual Result: AbortController objects with event listeners remain in memory indefinitely. Root Cause: The JSAbortSignalOwner::isReachableFromOpaqueRoots() method incorrectly marks all AbortSignals with event listeners as always reachable, preventing garbage collection even when they have no other references.
Attachments
Add attachment
proposed patch, testcase, etc.
tbvjaos510
Comment 1
2025-09-06 22:30:01 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/50419
tbvjaos510
Comment 2
2025-09-07 01:50:19 PDT
Pull request:
https://github.com/Webkit/Webkit/pull/50419
EWS
Comment 3
2025-09-09 10:18:29 PDT
Committed
299758@main
(1f6b6bea2079): <
https://commits.webkit.org/299758@main
> Reviewed commits have been landed. Closing PR #50419 and removing active labels.
Radar WebKit Bug Importer
Comment 4
2025-09-09 10:19:12 PDT
<
rdar://problem/160211727
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug