Bug 98960 - [WK2] fast/parser/document-open-in-unload.html causes next test to crash
Summary: [WK2] fast/parser/document-open-in-unload.html causes next test to crash
Status: RESOLVED DUPLICATE of bug 98345
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar, LayoutTestFailure
Depends on:
Blocks:
 
Reported: 2012-10-10 15:46 PDT by Vicki Pfau
Modified: 2012-10-10 21:47 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vicki Pfau 2012-10-10 15:46:19 PDT
The layout test fast/parser/document-open-in-unload.html will cause the next test to crash when run with WebKit Test Runner.

A portion of the backtrace reveals the crash to be inside of the loader:
0   com.apple.WebCore             	0x00000001057980dc WebCore::DocumentLoader::isClientRedirect() const + 12 (DocumentLoader.h:124)
1   com.apple.WebCore             	0x00000001057918e8 WebCore::FrameLoader::commitProvisionalLoad() + 1784 (FrameLoader.cpp:1750)
2   com.apple.WebCore             	0x00000001054c027c WebCore::DocumentLoader::commitIfReady() + 60 (DocumentLoader.cpp:283)
3   com.apple.WebCore             	0x00000001054c081c WebCore::DocumentLoader::commitLoad(char const*, int) + 76 (DocumentLoader.cpp:314)
4   com.apple.WebCore             	0x00000001054c0cfb WebCore::DocumentLoader::receivedData(char const*, int) + 59 (DocumentLoader.cpp:388)
5   com.apple.WebCore             	0x0000000106123b87 WebCore::MainResourceLoader::addData(char const*, int, bool) + 87 (MainResourceLoader.cpp:193)
6   com.apple.WebCore             	0x000000010657a1ec WebCore::ResourceLoader::didReceiveData(char const*, int, long long, bool) + 108 (ResourceLoader.cpp:281)
7   com.apple.WebCore             	0x0000000106125475 WebCore::MainResourceLoader::didReceiveData(char const*, int, long long, bool) + 1013 (MainResourceLoader.cpp:482)
8   com.apple.WebCore             	0x000000010657ab2f WebCore::ResourceLoader::didReceiveData(WebCore::ResourceHandle*, char const*, int, int) + 143 (ResourceLoader.cpp:436)
...

It appears that FrameLoader::m_documentLoader becomes null at some point before m_documentLoader->isClientRedirect gets called, causing the crash.
Comment 1 Vicki Pfau 2012-10-10 16:09:47 PDT
Skipped in r130976
Comment 2 Brady Eidson 2012-10-10 16:18:09 PDT
(In reply to comment #0)
> The layout test fast/parser/document-open-in-unload.html will cause the next test to crash when run with WebKit Test Runner.

Any idea when this started...?
Comment 3 Vicki Pfau 2012-10-10 16:26:00 PDT
<rdar://problem/12474923>
Comment 4 Alexey Proskuryakov 2012-10-10 21:47:38 PDT

*** This bug has been marked as a duplicate of bug 98345 ***