RESOLVED FIXED 223695
Metal ANGLE crashes LayoutTests/inspector/canvas/updateShader-webgl.html
https://bugs.webkit.org/show_bug.cgi?id=223695
Summary Metal ANGLE crashes LayoutTests/inspector/canvas/updateShader-webgl.html
Kyle Piddington
Reported 2021-03-24 09:32:24 PDT
Metal ANGLE is crashing in this test (LayoutTests/inspector/canvas/updateShader-webgl.html), due to a bad NSDictionary. Switch to using allocated dictionaries, rather than stack constants.
Attachments
Patch (1.55 KB, patch)
2021-03-24 09:33 PDT, Kyle Piddington
no flags
Patch (4.53 KB, patch)
2021-03-24 16:46 PDT, Kyle Piddington
ews-feeder: commit-queue-
Patch (5.01 KB, patch)
2021-03-24 17:03 PDT, Kyle Piddington
no flags
Kyle Piddington
Comment 1 2021-03-24 09:33:58 PDT
EWS Watchlist
Comment 2 2021-03-24 09:35:20 PDT
Note that there are important steps to take when updating ANGLE. See https://trac.webkit.org/wiki/UpdatingANGLE
Alexey Proskuryakov
Comment 3 2021-03-24 13:12:45 PDT
Comment on attachment 424141 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=424141&action=review > Source/ThirdParty/ANGLE/ChangeLog:4 > +Switch to using allocated dictionaries, rather than stack constants. What is the exact mechanism for this failure? Literals are not stack constants, and should generally work everywhere. I wonder if this is covering for an over-release somewhere with a leak. > Source/ThirdParty/ANGLE/src/libANGLE/renderer/metal/ProgramMtl.mm:251 > - mDefaultSubstitutionDictionary = @{@"TRANSFORM_FEEDBACK_ENABLED": @"0"}; > + mDefaultSubstitutionDictionary = [[NSDictionary alloc] initWithDictionary:@{@"TRANSFORM_FEEDBACK_ENABLED": @"0"}]; There is a code path above that also initializes mDefaultSubstitutionDictionary with a literal. Worth updating that for consistency?
Kenneth Russell
Comment 4 2021-03-24 13:16:51 PDT
I'd like to defer review to ap@ who clearly understands this code better than me, but happy to study and officially review if needed.
Kenneth Russell
Comment 5 2021-03-24 13:17:30 PDT
Also: possible to add the crashing stack trace as a comment here for posterity?
Alexey Proskuryakov
Comment 6 2021-03-24 13:36:35 PDT
An ASan report would likely be best for understanding what leads to the crash.
Kyle Piddington
Comment 7 2021-03-24 16:46:43 PDT
Kyle Piddington
Comment 8 2021-03-24 17:03:58 PDT
EWS
Comment 9 2021-03-24 18:06:23 PDT
Committed r274990: <https://commits.webkit.org/r274990> All reviewed patches have been landed. Closing bug and clearing flags on attachment 424202 [details].
Radar WebKit Bug Importer
Comment 10 2021-03-24 18:07:16 PDT
Note You need to log in before you can comment on or make changes to this bug.