<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>88966</bug_id>
          
          <creation_ts>2012-06-12 23:13:54 -0700</creation_ts>
          <short_desc>[Qt] REGRESSION(r120149): It made fast/workers/wrapper-map-gc.html crash</short_desc>
          <delta_ts>2013-05-28 05:52:16 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt, QtTriaged</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>79668</blocked>
    
    <blocked>88840</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Csaba Osztrogonác">ossy</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ggaren</cc>
    
    <cc>kadam</cc>
    
    <cc>loki</cc>
    
    <cc>oliver</cc>
    
    <cc>ossy</cc>
    
    <cc>zherczeg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>647725</commentid>
    <comment_count>0</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-06-12 23:13:54 -0700</bug_when>
    <thetext>It crashes on the Qt5-WK1 (32bit) bot since r120149. Here is the crash log from the bot:

crash log for DumpRenderTree (pid 5647):
STDOUT: &lt;empty&gt;
STDERR: 1   0xf6c5bfc8 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WTF::fastMalloc(unsigned int)+0x350) [0xf6c5bfc8]
STDERR: 2   0xf56e421a /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WTF::Vector&lt;unsigned char, 0u&gt;::reserveCapacity(unsigned int)+0x3a) [0xf56e421a]
STDERR: 3   0xf56e429f /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WTF::Vector&lt;unsigned char, 0u&gt;::expandCapacity(unsigned int)+0x41) [0xf56e429f]
STDERR: 4   0xf5770047 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(void WTF::Vector&lt;unsigned char, 0u&gt;::append&lt;unsigned char&gt;(unsigned char const*, unsigned int)+0x43) [0xf5770047]
STDERR: 5   0xf599afe4 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::CloneSerializer::write(JSC::UString const&amp;)+0x124) [0xf599afe4]
STDERR: 6   0xf599b512 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::CloneSerializer::dumpIfTerminal(JSC::JSValue, WebCore::SerializationReturnCode&amp;)+0x3d2) [0xf599b512]
STDERR: 7   0xf599d55d /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::CloneSerializer::serialize(JSC::JSValue)+0x178d) [0xf599d55d]
STDERR: 8   0xf599e264 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::SerializedScriptValue::create(JSC::ExecState*, JSC::JSValue, WTF::Vector&lt;WTF::RefPtr&lt;WebCore::MessagePort&gt;, 1u&gt;*, WTF::Vector&lt;WTF::RefPtr&lt;WTF::ArrayBuffer&gt;, 1u&gt;*, WebCore::SerializationErrorMode)+0x94) [0xf599e264]
STDERR: 9   0xf6236525 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(JSC::JSValue WebCore::handlePostMessage&lt;WebCore::DedicatedWorkerContext&gt;(JSC::ExecState*, WebCore::DedicatedWorkerContext*)+0xb5) [0xf6236525]
STDERR: 10  0xf6236988 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::JSDedicatedWorkerContext::postMessage(JSC::ExecState*)+0x32) [0xf6236988]
STDERR: 11  0xf677b486 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::jsDedicatedWorkerContextPrototypeFunctionPostMessage(JSC::ExecState*)+0x61) [0xf677b486]
STDERR: 12  0x686f6d0f [0x686f6d0f]
STDERR: 13  0xf6a98d23 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(JSC::JITCode::execute(JSC::RegisterFile*, JSC::ExecState*, JSC::JSGlobalData*)+0x49) [0xf6a98d23]
STDERR: 14  0xf6a92fcd /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)+0x40f) [0xf6a92fcd]
STDERR: 15  0xf6b89f34 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;)+0x60) [0xf6b89f34]
STDERR: 16  0xf59469f5 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext*, WebCore::Event*)+0xca5) [0xf59469f5]
STDERR: 17  0xf5b46b62 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::EventTarget::fireEventListeners(WebCore::Event*, WebCore::EventTargetData*, WTF::Vector&lt;WebCore::RegisteredEventListener, 1u&gt;&amp;)+0x132) [0xf5b46b62]
STDERR: 18  0xf5b46d31 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::EventTarget::fireEventListeners(WebCore::Event*)+0x57) [0xf5b46d31]
STDERR: 19  0xf5b470da /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::EventTarget::dispatchEvent(WTF::PassRefPtr&lt;WebCore::Event&gt;)+0x64) [0xf5b470da]
STDERR: 20  0xf6247cec /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::MessageWorkerContextTask::performTask(WebCore::ScriptExecutionContext*)+0x25c) [0xf6247cec]
STDERR: 21  0xf6248825 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::WorkerRunLoop::Task::performTask(WebCore::WorkerRunLoop const&amp;, WebCore::ScriptExecutionContext*)+0x59) [0xf6248825]
STDERR: 22  0xf624902d /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::WorkerRunLoop::runInMode(WebCore::WorkerContext*, WebCore::ModePredicate const&amp;, WebCore::WorkerRunLoop::WaitMode)+0xed) [0xf624902d]
STDERR: 23  0xf62496e0 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::WorkerRunLoop::run(WebCore::WorkerContext*)+0xc0) [0xf62496e0]
STDERR: 24  0xf6249f0b /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::WorkerThread::runEventLoop()+0x27) [0xf6249f0b]
STDERR: 25  0xf623f189 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::DedicatedWorkerThread::runEventLoop()+0x47) [0xf623f189]
STDERR: 26  0xf624a74e /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::WorkerThread::workerThread()+0x21e) [0xf624a74e]
STDERR: 27  0xf624aa7f /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(WebCore::WorkerThread::workerThreadStart(void*)+0x1d) [0xf624aa7f]
STDERR: 28  0xf6c69b4a /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(+0x1f23b4a) [0xf6c69b4a]
STDERR: 29  0xf6c7f9e6 /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/lib/libQtWebKit.so.5(+0x1f399e6) [0xf6c7f9e6]
STDERR: 30  0xf327e7b0 /lib/libpthread.so.0(+0x57b0) [0xf327e7b0]
STDERR: 31  0xf30c70be /lib/libc.so.6(clone+0x5e) [0xf30c70be]
STDERR: 1   0x806afda /home/webkitbuildbot/slaves/release32bit-qt5/buildslave/qt-linux-32-release-qt5/build/WebKitBuild/Release/bin/DumpRenderTree() [0x806afda]
STDERR: 2   0xf76eb400 [0xf76eb400]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>647727</commentid>
    <comment_count>1</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-06-12 23:20:37 -0700</bug_when>
    <thetext>And the following tests became flakey: (Fail with &quot;FAIL: Timed out 
waiting for notifyDone to be called&quot; and pass after rerunning tests)

fast/workers/shared-worker-shared.html
fast/workers/worker-script-error.html
fast/workers/worker-terminate.html
fast/workers/shared-worker-name.html
fast/workers/worker-close-more.html
fast/workers/worker-multi-startup.html
fast/workers/shared-worker-script-error.html
fast/workers/worker-lifecycle.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>647742</commentid>
    <comment_count>2</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-06-12 23:49:15 -0700</bug_when>
    <thetext>It&apos;s hard to reproduces this bug if you don&apos;t run all tests,
because it is a GC bug ...

But I managed to reproduce it on 32 bit Qt5 if I ran fast/workers tests.
In this case fast/workers/worker-multi-startup.html crashes always.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>650243</commentid>
    <comment_count>3</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-06-15 09:17:55 -0700</bug_when>
    <thetext>Any progression with fixing it? Or is this crash (serious GC bug!) absolutely acceptable?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>650357</commentid>
    <comment_count>4</comment_count>
    <who name="Geoffrey Garen">ggaren</who>
    <bug_when>2012-06-15 11:18:40 -0700</bug_when>
    <thetext>&gt; Any progression with fixing it? Or is this crash (serious GC bug!) absolutely acceptable?

I don&apos;t have a Qt setup to debug this with. If there are Qt engineers who can debug GC issues, I can help. Otherwise, I&apos;d suggest turning off parallel GC in the Qt port.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>650760</commentid>
    <comment_count>5</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-06-16 01:06:33 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; &gt; Any progression with fixing it? Or is this crash (serious GC bug!) absolutely acceptable?
&gt; 
&gt; I don&apos;t have a Qt setup to debug this with. If there are Qt engineers who can debug GC issues, I can help. Otherwise, I&apos;d suggest turning off parallel GC in the Qt port.

Zoltán, as far as I know you have fixed GC related bugs previously. Could you pick it up, please?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>651231</commentid>
    <comment_count>6</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-06-18 00:39:58 -0700</bug_when>
    <thetext>It seems it isn&apos;t Qt 5 and it isn&apos;t 32 bit specific bug,
I managed to reproduce it with Qt 4.8 and on 64 bit too.

But you can reproduce it simpler on 32 bit with any Qt version. If you run
fast/workers tests, fast/workers/worker-multi-startup.html always crashes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>651342</commentid>
    <comment_count>7</comment_count>
    <who name="Zoltan Herczeg">zherczeg</who>
    <bug_when>2012-06-18 06:15:12 -0700</bug_when>
    <thetext>It seems bash32 limits the number of threads to 512 for a given program. We should increse this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>651395</commentid>
    <comment_count>8</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-06-18 08:07:12 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; It seems bash32 limits the number of threads to 512 for a given program. We should increse this.

(In reply to comment #7)
&gt; It seems bash32 limits the number of threads to 512 for a given program. We should increse this.

The problem isn&apos;t limited number of threads, but the 4G adress space. :-/
The default Stack size is 8M ( &quot;ulimit -s == 8192&quot; ) and 8M*512 = 4G,
so we can&apos;t run more than 512 threads except we decrease the stack size.

I&apos;m going to check what happens if we decrease the stack size.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>652124</commentid>
    <comment_count>9</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-06-19 00:02:00 -0700</bug_when>
    <thetext>It seems that decreasing stack size to 1M solves this problem. (and let WebKit to create max. 4096 threads) But I need a double check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>652204</commentid>
    <comment_count>10</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2012-06-19 01:26:55 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; It seems that decreasing stack size to 1M solves this problem. (and let WebKit to create max. 4096 threads) But I need a double check.

It solved the problem, we can close the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>894318</commentid>
    <comment_count>11</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-05-28 05:52:05 -0700</bug_when>
    <thetext>*** Bug 116855 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>894321</commentid>
    <comment_count>12</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2013-05-28 05:52:16 -0700</bug_when>
    <thetext>*** Bug 116854 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>