Bug 232046 - [ BigSure wk1 Debug ] fast/selectors/pseudo-element-inside-any.html is a flaky crash
Summary: [ BigSure wk1 Debug ] fast/selectors/pseudo-element-inside-any.html is a flak...
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac (Intel) Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-20 14:21 PDT by ayumi_kojima
Modified: 2022-07-05 16:19 PDT (History)
7 users (show)

See Also:


Attachments
Crash log (134.23 KB, text/plain)
2021-10-20 14:23 PDT, ayumi_kojima
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ayumi_kojima 2021-10-20 14:21:00 PDT
fast/selectors/pseudo-element-inside-any.html

Is a flaky crash on BigSure wk1 Debug.

History: https://results.webkit.org/?suite=layout-tests&test=fast%2Fselectors%2Fpseudo-element-inside-any.html

Result page: https://build.webkit.org/results/Apple-BigSur-Debug-WK1-Tests/r284539%20(4862)/results.html#

Stderr:

2021-10-20 10:50:40.599 DumpRenderTree[43429:14163985] nil host used in call to allowsSpecificHTTPSCertificateForHost
2021-10-20 10:50:40.599 DumpRenderTree[43429:14163985] nil host used in call to allowsAnyHTTPSCertificateForHost:
ASSERTION FAILED: When matching pseudo elements, we should never compile a selector checker without context unless it cannot match anything.
!SelectorCompiler::ruleCollectorSimpleSelectorChecker(compiledSelector, &element(), &ignoreSpecificity) || m_pseudoElementRequest.pseudoId == PseudoId::None
./style/ElementRuleCollector.cpp(461) : bool WebCore::Style::ElementRuleCollector::ruleMatches(const WebCore::Style::RuleData &, unsigned int &)
1   0x1057b0689 WTFCrash
2   0x12c6592d7 WebCore::Style::ElementRuleCollector::ruleMatches(WebCore::Style::RuleData const&, unsigned int&)
3   0x12c65756e WebCore::Style::ElementRuleCollector::collectMatchingRulesForList(WTF::Vector<WebCore::Style::RuleData, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> const*, WebCore::Style::MatchRequest const&)
4   0x12c657250 WebCore::Style::ElementRuleCollector::collectMatchingRules(WebCore::Style::MatchRequest const&)
5   0x12c657ce1 WebCore::Style::ElementRuleCollector::collectMatchingAuthorRules()
6   0x12c657c85 WebCore::Style::ElementRuleCollector::matchAuthorRules()
7   0x12c6d4967 WebCore::Style::Resolver::pseudoStyleForElement(WebCore::Element const&, WebCore::Style::PseudoElementRequest const&, WebCore::RenderStyle const&, WebCore::RenderStyle const*, WebCore::SelectorFilter const*)
8   0x12c22a4b6 WebCore::RenderElement::getUncachedPseudoStyle(WebCore::Style::PseudoElementRequest const&, WebCore::RenderStyle const*, WebCore::RenderStyle const*) const
9   0x12c22388f WebCore::RenderElement::getCachedPseudoStyle(WebCore::PseudoId, WebCore::RenderStyle const*) const
10  0x12c6359b1 WebCore::RenderTreeUpdater::GeneratedContent::updateBackdropRenderer(WebCore::RenderElement&)
11  0x12c63520a WebCore::RenderTreeUpdater::updateAfterDescendants(WebCore::Element&, WebCore::Style::ElementUpdates const*)
12  0x12c635140 WebCore::RenderTreeUpdater::popParent()
13  0x12c6345e0 WebCore::RenderTreeUpdater::popParentsToDepth(unsigned int)
14  0x12c633f6c WebCore::RenderTreeUpdater::updateRenderTree(WebCore::ContainerNode&)
15  0x12c633a93 WebCore::RenderTreeUpdater::commit(std::__1::unique_ptr<WebCore::Style::Update const, std::__1::default_delete<WebCore::Style::Update const> >)
16  0x12a61b2fd WebCore::Document::updateRenderTree(std::__1::unique_ptr<WebCore::Style::Update const, std::__1::default_delete<WebCore::Style::Update const> >)
17  0x12a61b90b WebCore::Document::resolveStyle(WebCore::Document::ResolveStyleType)
18  0x12a61c620 WebCore::Document::updateStyleIfNeeded()
19  0x12a63992d WebCore::Document::finishedParsing()
20  0x12aee0ad8 WebCore::HTMLConstructionSite::finishedParsing()
21  0x12af313c7 WebCore::HTMLTreeBuilder::finished()
22  0x12aee8a08 WebCore::HTMLDocumentParser::end()
23  0x12aee67c8 WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd()
24  0x12aee6507 WebCore::HTMLDocumentParser::prepareToStopParsing()
25  0x12aee8a72 WebCore::HTMLDocumentParser::attemptToEnd()
26  0x12aee8b39 WebCore::HTMLDocumentParser::finish()
27  0x12b394ae4 WebCore::DocumentWriter::end()
28  0x12b3939d6 WebCore::DocumentLoader::finishedLoading()
29  0x12b393377 WebCore::DocumentLoader::notifyFinished(WebCore::CachedResource&, WebCore::NetworkLoadMetrics const&)
30  0x12b55ca0a WebCore::CachedResource::checkNotify(WebCore::NetworkLoadMetrics const&)
31  0x12b54fc8c WebCore::CachedResource::finishLoading(WebCore::SharedBuffer*, WebCore::NetworkLoadMetrics const&)
Comment 1 Radar WebKit Bug Importer 2021-10-20 14:21:56 PDT
<rdar://problem/84479003>
Comment 2 ayumi_kojima 2021-10-20 14:23:06 PDT
Created attachment 441936 [details]
Crash log
Comment 3 ayumi_kojima 2021-10-20 14:26:29 PDT
Marked test expectations https://trac.webkit.org/changeset/284568/webkit
Comment 4 ayumi_kojima 2021-10-28 09:32:27 PDT
I was not able to reproduce the crash locally on BigSur (intel) using run-webkit-tests -1 --force --debug --iterations 500 --exit-after-n-crashes-or-timeouts 1 fast/selectors/pseudo-element-inside-any.html

According to the history, the flaky crash appears to have started recently at around r284314.
Comment 5 Ryan Haddad 2022-05-19 12:54:59 PDT
This test appears to be consistently passing, let's remove the flaky expectation.
Comment 6 Brent Fulgham 2022-06-23 14:44:10 PDT
Ryan Haddad confirmed this is no longer happening as of 5/19/2022.
Comment 7 EWS 2022-07-05 16:14:06 PDT
Test gardening commit 252161@main (e36b05647cc7): <https://commits.webkit.org/252161@main>

Reviewed commits have been landed. Closing PR #2101 and removing active labels.
Comment 8 Hercules Hjalmarsson 2022-07-05 16:19:25 PDT
(In reply to EWS from comment #7)
> Test gardening commit 252161@main (e36b05647cc7):
> <https://commits.webkit.org/252161@main>
> 
> Reviewed commits have been landed. Closing PR #2101 and removing active
> labels.

Removed expectations in above commit.