Bug 129698 - ASSERT Failure: stringImpl.length() > 1 in JSString.h
Summary: ASSERT Failure: stringImpl.length() > 1 in JSString.h
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Michael Saboff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-04 13:22 PST by Michael Saboff
Modified: 2014-03-05 11:41 PST (History)
1 user (show)

See Also:


Attachments
Patch (1.62 KB, patch)
2014-03-04 13:25 PST, Michael Saboff
ggaren: review+
commit-queue: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 2014-03-04 13:22:16 PST
This ASSERT (and preceding comment)
        // Should have picked a VM-global empty or single-character string already.
        ASSERT(stringImpl.length() > 1);
isn't accurate.  The ASSERT should be updated to handle the case where we have a single character string with the characters value greater than JSC::maxSingleCharacterString (currently 255).
Comment 1 Michael Saboff 2014-03-04 13:25:55 PST
Created attachment 225809 [details]
Patch
Comment 2 Geoffrey Garen 2014-03-04 13:50:04 PST
Comment on attachment 225809 [details]
Patch

r=me
Comment 3 WebKit Commit Bot 2014-03-04 13:51:10 PST
Comment on attachment 225809 [details]
Patch

Rejecting attachment 225809 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-03', 'apply-attachment', '--no-update', '--non-interactive', 225809, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
Garen']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Parsed 2 diffs from patch file(s).
patching file Source/JavaScriptCore/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file Source/JavaScriptCore/runtime/JSString.h
Hunk #1 FAILED at 416.
1 out of 1 hunk FAILED -- saving rejects to file Source/JavaScriptCore/runtime/JSString.h.rej

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Geoffrey Garen']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.appspot.com/results/4558849583349760
Comment 4 Michael Saboff 2014-03-04 14:45:31 PST
akling fixed this by removing the ASSERT in r165066.