Bug 53091 - Flaky Test: java/lc3/JSObject/ToObject-001.html
Summary: Flaky Test: java/lc3/JSObject/ToObject-001.html
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: WebKit Commit Bot
URL:
Keywords:
Depends on:
Blocks: 50856
  Show dependency treegraph
 
Reported: 2011-01-25 09:42 PST by WebKit Commit Bot
Modified: 2011-05-09 08:26 PDT (History)
2 users (show)

See Also:


Attachments
Failure diff from eseidel-cq-sl (646 bytes, text/plain)
2011-01-25 09:42 PST, WebKit Commit Bot
no flags Details
Failure diff from eseidel-cq-sl (646 bytes, text/plain)
2011-01-26 12:04 PST, WebKit Commit Bot
no flags Details
Failure diff from eseidel-cq-sf (765 bytes, text/plain)
2011-03-15 21:09 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-3 (861 bytes, text/plain)
2011-03-21 20:22 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-3 (646 bytes, text/plain)
2011-03-29 10:41 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-8 (765 bytes, text/plain)
2011-04-01 14:33 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-7 (765 bytes, text/plain)
2011-04-01 15:26 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-7 (723 bytes, text/plain)
2011-04-01 23:25 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-8 (765 bytes, text/plain)
2011-04-06 09:07 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-7 (723 bytes, text/plain)
2011-04-06 13:11 PDT, WebKit Commit Bot
no flags Details
Failure diff from eseidel-cq-sf (765 bytes, text/plain)
2011-04-08 13:37 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-8 (723 bytes, text/plain)
2011-04-08 18:39 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-7 (723 bytes, text/plain)
2011-04-15 08:22 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-8 (723 bytes, text/plain)
2011-04-15 10:25 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-7 (723 bytes, text/plain)
2011-04-17 00:42 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-8 (723 bytes, text/plain)
2011-04-18 10:52 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-3 (723 bytes, text/plain)
2011-04-18 20:50 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-4 (723 bytes, text/plain)
2011-04-21 00:42 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-7 (765 bytes, text/plain)
2011-04-24 02:13 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-8 (723 bytes, text/plain)
2011-04-27 00:13 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-3 (723 bytes, text/plain)
2011-04-27 23:20 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-4 (723 bytes, text/plain)
2011-04-28 20:32 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-7 (765 bytes, text/plain)
2011-04-29 17:13 PDT, WebKit Commit Bot
no flags Details
Failure diff from cr-jail-7 (723 bytes, text/plain)
2011-05-09 08:26 PDT, WebKit Commit Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description WebKit Commit Bot 2011-01-25 09:42:51 PST
This is an automatically generated bug from the commit-queue.
java/lc3/JSObject/ToObject-001.html has been flaky on the commit-queue.

java/lc3/JSObject/ToObject-001.html was authored by ap@webkit.org.
http://trac.webkit.org/browser/trunk/LayoutTests/java/lc3/JSObject/ToObject-001.html

The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 80028 [details] on bug 53069.
Bot: eseidel-cq-sl  Port: Mac  Platform: Mac OS X 10.6.6

The bots will update this with information from each new failure.

If you believe this bug to be fixed or invalid, feel free to close.  The bots will re-open if the flake re-occurs.

If you would like to track this test fix with another bug, please close this bug as a duplicate.  The bots will follow the duplicate chain when making future comments.
Comment 1 WebKit Commit Bot 2011-01-25 09:42:55 PST
Created attachment 80072 [details]
Failure diff from eseidel-cq-sl
Comment 2 WebKit Commit Bot 2011-01-26 12:04:18 PST
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 80169 [details] on bug 52873.
Bot: eseidel-cq-sl  Port: Mac  Platform: Mac OS X 10.6.6
Comment 3 WebKit Commit Bot 2011-01-26 12:04:20 PST
Created attachment 80216 [details]
Failure diff from eseidel-cq-sl
Comment 4 Eric Seidel (no email) 2011-02-03 17:13:05 PST
This looks like the same as bug 51102.
Comment 5 WebKit Commit Bot 2011-03-15 21:09:50 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 85865 [details] on bug 56059.
Bot: eseidel-cq-sf  Port: Mac  Platform: Mac OS X 10.6.4
Comment 6 WebKit Commit Bot 2011-03-15 21:09:53 PDT
Created attachment 85905 [details]
Failure diff from eseidel-cq-sf
Comment 7 WebKit Commit Bot 2011-03-21 20:22:42 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 86290 [details] on bug 56728.
Bot: cr-jail-3  Port: Mac  Platform: Mac OS X 10.6.6
Comment 8 WebKit Commit Bot 2011-03-21 20:22:45 PDT
Created attachment 86411 [details]
Failure diff from cr-jail-3
Comment 9 WebKit Commit Bot 2011-03-29 10:41:20 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 87295 [details] on bug 57326.
Bot: cr-jail-3  Port: Mac  Platform: Mac OS X 10.6.6
Comment 10 WebKit Commit Bot 2011-03-29 10:41:23 PDT
Created attachment 87362 [details]
Failure diff from cr-jail-3
Comment 11 WebKit Commit Bot 2011-04-01 14:33:39 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 87752 [details] on bug 57551.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 12 WebKit Commit Bot 2011-04-01 14:33:42 PDT
Created attachment 87914 [details]
Failure diff from cr-jail-8
Comment 13 WebKit Commit Bot 2011-04-01 15:26:04 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 87889 [details] on bug 51498.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 14 WebKit Commit Bot 2011-04-01 15:26:07 PDT
Created attachment 87927 [details]
Failure diff from cr-jail-7
Comment 15 WebKit Commit Bot 2011-04-01 23:25:36 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 87960 [details] on bug 57692.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 16 WebKit Commit Bot 2011-04-01 23:25:39 PDT
Created attachment 87970 [details]
Failure diff from cr-jail-7
Comment 17 WebKit Commit Bot 2011-04-06 09:07:08 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 88423 [details] on bug 57839.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 18 WebKit Commit Bot 2011-04-06 09:07:12 PDT
Created attachment 88440 [details]
Failure diff from cr-jail-8
Comment 19 WebKit Commit Bot 2011-04-06 13:11:53 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 88470 [details] on bug 57863.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 20 WebKit Commit Bot 2011-04-06 13:11:56 PDT
Created attachment 88497 [details]
Failure diff from cr-jail-7
Comment 21 WebKit Commit Bot 2011-04-08 13:37:41 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 88780 [details] on bug 57018.
Bot: eseidel-cq-sf  Port: Mac  Platform: Mac OS X 10.6.4
Comment 22 WebKit Commit Bot 2011-04-08 13:37:44 PDT
Created attachment 88868 [details]
Failure diff from eseidel-cq-sf
Comment 23 WebKit Commit Bot 2011-04-08 18:39:47 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 88861 [details] on bug 58153.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 24 WebKit Commit Bot 2011-04-08 18:39:50 PDT
Created attachment 88912 [details]
Failure diff from cr-jail-8
Comment 25 WebKit Commit Bot 2011-04-15 08:22:40 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 89671 [details] on bug 58456.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 26 WebKit Commit Bot 2011-04-15 08:22:44 PDT
Created attachment 89792 [details]
Failure diff from cr-jail-7
Comment 27 WebKit Commit Bot 2011-04-15 10:25:46 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 89737 [details] on bug 58633.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 28 WebKit Commit Bot 2011-04-15 10:25:49 PDT
Created attachment 89802 [details]
Failure diff from cr-jail-8
Comment 29 WebKit Commit Bot 2011-04-17 00:42:38 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 89883 [details] on bug 41449.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 30 WebKit Commit Bot 2011-04-17 00:42:41 PDT
Created attachment 89943 [details]
Failure diff from cr-jail-7
Comment 31 Eric Seidel (no email) 2011-04-17 09:19:31 PDT
The failure seems to be:
-FAIL dt.setObject( Math ); dt.PUB_OBJECT should be [object Math]. Was [object Math].
+FAIL dt.setObject( Math ); dt.PUB_OBJECT should be [object Math]. Was .

or

-FAIL dt.setObject( THIS ); dt.PUB_OBJECT should be [object DOMWindow]. Was [object DOMWindow].
+FAIL dt.setObject( THIS ); dt.PUB_OBJECT should be [object DOMWindow]. Was .

or

 FAIL dt.setObject( Function ); dt.PUB_OBJECT should be function Function() {
     [native code]
-} (of type function). Was function Function() {
-    [native code]
-} (of type object).
+} (of type function). Was  (of type object).

Something is fishy with the toString on this PUB_OBJECT thing.
Comment 32 Eric Seidel (no email) 2011-04-17 09:24:39 PDT
OK.  So these are the last 3 tests in the ToObject-001.js file:
var THIS = this;

a[i++] = new TestObject(
  "dt.setObject( THIS )",
  "dt.PUB_OBJECT",
  "dt.getObject()",
  "dt.getObject().constructor",
  'this',
  'this.constructor');

a[i++] = new TestObject(
  "dt.setObject( Math )",
  "dt.PUB_OBJECT",
  "dt.getObject()",
  "dt.getObject().constructor",
  'Math',
  'Object');

a[i++] = new TestObject(
  "dt.setObject( Function )",
  "dt.PUB_OBJECT",
  "dt.getObject()",
  "dt.getObject().constructor",
  'Function',
  'Function');
Comment 33 Eric Seidel (no email) 2011-04-17 09:25:44 PDT
dt is:
var dt = applet.createQAObject("com.netscape.javascript.qa.liveconnect.DataTypeClass");
Comment 34 Eric Seidel (no email) 2011-04-17 09:50:26 PDT
http://trac.webkit.org/browser/trunk/LayoutTests/java/lc3/sources/com/netscape/javascript/qa/liveconnect/DataTypeClass.java

is the java involved in this test.

(and possibly http://trac.webkit.org/browser/trunk/LayoutTests/java/lc3/sources/com/netscape/javascript/qa/lc3/jsobject/JSObject_001.java)

My current theory is that there is some sort of race in the wrapping process.  When we pass the object to java, it must end up being wrapped somehow.  That wrapping might be going wrong or being racy?
Comment 35 Eric Seidel (no email) 2011-04-17 09:55:54 PDT
Java seems to try and use javascript from a specific thread.

Code in

jvalue convertValueToJValue(ExecState* exec, RootObject* rootObject, JSValue value, JavaType javaType, const char* javaClassName)

            // Convert value to a string if the target type is a java.lang.String, and we're not
            // converting from a null.
            if (!result.l && !strcmp(javaClassName, "java.lang.String")) {
                if (!value.isNull()) {
                    UString stringValue = value.toString(exec);
                    JNIEnv* env = getJNIEnv();
                    jobject javaString = env->functions->NewString(env, (const jchar*)stringValue.characters(), stringValue.length());
                    result.l = javaString;
                }
            }

Doesn't seem to be trying to move to that thread.  BUt maybe the JSLock is making sure we aren't competing with that thread anyway?
Comment 36 Eric Seidel (no email) 2011-04-17 10:03:19 PDT
jobject JavaJSObject::convertValueToJObject(JSValue value) const

appears to be how we create the JavaJSObjects in the first place (when we're passing "THIS" in, etc.)
Comment 37 WebKit Commit Bot 2011-04-18 10:52:56 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 90032 [details] on bug 42541.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 38 WebKit Commit Bot 2011-04-18 10:52:59 PDT
Created attachment 90051 [details]
Failure diff from cr-jail-8
Comment 39 WebKit Commit Bot 2011-04-18 20:50:01 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 90082 [details] on bug 58798.
Bot: cr-jail-3  Port: Mac  Platform: Mac OS X 10.6.6
Comment 40 WebKit Commit Bot 2011-04-18 20:50:04 PDT
Created attachment 90136 [details]
Failure diff from cr-jail-3
Comment 41 WebKit Commit Bot 2011-04-21 00:41:59 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 90472 [details] on bug 59058.
Bot: cr-jail-4  Port: Mac  Platform: Mac OS X 10.6.6
Comment 42 WebKit Commit Bot 2011-04-21 00:42:02 PDT
Created attachment 90503 [details]
Failure diff from cr-jail-4
Comment 43 WebKit Commit Bot 2011-04-24 02:13:27 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 90874 [details] on bug 59296.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 44 WebKit Commit Bot 2011-04-24 02:13:30 PDT
Created attachment 90879 [details]
Failure diff from cr-jail-7
Comment 45 WebKit Commit Bot 2011-04-27 00:13:44 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 91150 [details] on bug 59487.
Bot: cr-jail-8  Port: Mac  Platform: Mac OS X 10.6.6
Comment 46 WebKit Commit Bot 2011-04-27 00:13:47 PDT
Created attachment 91242 [details]
Failure diff from cr-jail-8
Comment 47 WebKit Commit Bot 2011-04-27 23:20:03 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 91390 [details] on bug 59234.
Bot: cr-jail-3  Port: Mac  Platform: Mac OS X 10.6.6
Comment 48 WebKit Commit Bot 2011-04-27 23:20:06 PDT
Created attachment 91435 [details]
Failure diff from cr-jail-3
Comment 49 WebKit Commit Bot 2011-04-28 20:32:33 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 91263 [details] on bug 54439.
Bot: cr-jail-4  Port: Mac  Platform: Mac OS X 10.6.6
Comment 50 WebKit Commit Bot 2011-04-28 20:32:36 PDT
Created attachment 91627 [details]
Failure diff from cr-jail-4
Comment 51 WebKit Commit Bot 2011-04-29 17:13:50 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 91730 [details] on bug 57330.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.6
Comment 52 WebKit Commit Bot 2011-04-29 17:13:53 PDT
Created attachment 91769 [details]
Failure diff from cr-jail-7
Comment 53 WebKit Commit Bot 2011-05-09 08:26:21 PDT
The commit-queue just saw java/lc3/JSObject/ToObject-001.html flake (Text diff mismatch) while processing attachment 92727 [details] on bug 60437.
Bot: cr-jail-7  Port: Mac  Platform: Mac OS X 10.6.7
Comment 54 WebKit Commit Bot 2011-05-09 08:26:24 PDT
Created attachment 92792 [details]
Failure diff from cr-jail-7