Bug 48751 - Assertion failure in PluginStream::~PluginStream when running userscripts/user-script-plugin-document.html
Summary: Assertion failure in PluginStream::~PluginStream when running userscripts/use...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Brian Weinstein
URL: http://build.webkit.org/results/Windo...
Keywords: InRadar, LayoutTestFailure, PlatformOnly
Depends on:
Blocks:
 
Reported: 2010-11-01 07:13 PDT by Adam Roben (:aroben)
Modified: 2010-11-05 11:09 PDT (History)
6 users (show)

See Also:


Attachments
[PATCH] Fix (2.78 KB, patch)
2010-11-04 15:54 PDT, Brian Weinstein
bweinstein: commit-queue-
Details | Formatted Diff | Diff
[PATCH] Style nit fix (2.77 KB, patch)
2010-11-04 16:12 PDT, Brian Weinstein
no flags Details | Formatted Diff | Diff
[PATCH] Fix (2.90 KB, patch)
2010-11-05 11:03 PDT, Brian Weinstein
andersca: review+
bweinstein: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2010-11-01 07:13:16 PDT
To reproduce:

1. run-webkit-tests userscripts http

You'll hit an assertion in PluginStream::~PluginStream. (run-webkit-tests will blame http/tests/cache/stopped-revalidation.html, but that test doesn't cause a problem on its own.) Here's the failing assertion:

    ASSERT(m_streamState != StreamStarted);

See the URL for the backtrace.
Comment 1 Adam Roben (:aroben) 2010-11-01 07:38:56 PDT
I've added this test to the Skipped file.
Comment 2 Adam Roben (:aroben) 2010-11-01 07:41:05 PDT
<rdar://problem/8615536>
Comment 3 Brian Weinstein 2010-11-04 15:54:14 PDT
Created attachment 72994 [details]
[PATCH] Fix
Comment 4 WebKit Review Bot 2010-11-04 16:04:55 PDT
Attachment 72994 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/platform/win/Skipped', u'WebCore/ChangeLog', u'WebCore/plugins/PluginStream.cpp']" exit_code: 1
WebCore/plugins/PluginStream.cpp:336:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 1 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Brian Weinstein 2010-11-04 16:12:25 PDT
Created attachment 73001 [details]
[PATCH] Style nit fix
Comment 6 Brian Weinstein 2010-11-05 10:50:24 PDT
Comment on attachment 73001 [details]
[PATCH] Style nit fix

Anders expressed doubts about correctness of this patch, so obsoleting it for now - new patch coming shortly.
Comment 7 Brian Weinstein 2010-11-05 11:03:32 PDT
Created attachment 73085 [details]
[PATCH] Fix
Comment 8 Brian Weinstein 2010-11-05 11:05:47 PDT
Will fix the LayoutTests/ChangeLog before landing, thanks Anders!
Comment 9 Brian Weinstein 2010-11-05 11:09:20 PDT
Landed in r71434.