<?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>34484</bug_id>
          
          <creation_ts>2010-02-02 08:53:46 -0800</creation_ts>
          <short_desc>[Qt] QtLauncher and jsc ASSERTS when run with valgrind</short_desc>
          <delta_ts>2011-01-01 22:55:10 -0800</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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>39060</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P3</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Balazs Kelemen">kbalazs</reporter>
          <assigned_to name="QtWebKit Unassigned">webkit-qt-unassigned</assigned_to>
          <cc>jesus</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>186986</commentid>
    <comment_count>0</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-02-02 08:53:46 -0800</bug_when>
    <thetext>Assertion of ./QtLauncher http://www.google.com:
ASSERTION FAILED: !methodCallLinkInfo.cachedStructure
(../../../JavaScriptCore/jit/JITPropertyAccess.cpp:642 static void JSC::JIT::patchMethodCallProto(JSC::CodeBlock*, JSC::MethodCallLinkInfo&amp;, JSC::JSFunction*, JSC::Structure*, JSC::JSObject*, JSC::ReturnAddressPtr))
Assertion of ./jsc $WKROOT/SunSpider/tests/sunspider-0.9.1/3d-cube.js
ASSERTION FAILED: !callLinkInfo-&gt;isLinked()
(../../../JavaScriptCore/jit/JIT.cpp:600 static void JSC::JIT::linkCall(JSC::JSFunction*, JSC::CodeBlock*, JSC::CodeBlock*, JSC::JITCode&amp;, JSC::CallLinkInfo*, int, JSC::JSGlobalData*))

I think these are true positive timing related problems. With valgrind both QtLauncher and jsc runs 10-20 times slower then normally, that is why I think about timing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>187001</commentid>
    <comment_count>1</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-02-02 09:23:33 -0800</bug_when>
    <thetext>In interpreter build QtLauncher also crashes when I close the window:
Process terminating with default action of signal 11 (SIGSEGV)
 Access not within mapped region at address 0x4
   at 0x76A1277: QObject::thread() const (qobject.cpp:1426)
   by 0x551F9C0: WebCore::JSDOMWindowBase::commonJSGlobalData() (JSDOMWindowBase.cpp:154)
   by 0x550B4C0: WebCore::collect(void*) (GCController.cpp:46)
   by 0x550B531: WebCore::GCController::gcTimerFired(WebCore::Timer&lt;WebCore::GCController&gt;*) (GCController.cpp:69)
   by 0x550B0E4: WebCore::Timer&lt;WebCore::GCController&gt;::fired() (Timer.h:98)
   by 0x5AD34A6: WebCore::ThreadTimers::sharedTimerFiredInternal() (ThreadTimers.cpp:112)
   by 0x5AD36CA: WebCore::ThreadTimers::sharedTimerFired() (ThreadTimers.cpp:90)
   by 0x5C8DFD1: WebCore::SharedTimerQt::~SharedTimerQt() (SharedTimerQt.cpp:68)
   by 0x76A181E: QObjectPrivate::deleteChildren() (qobject.cpp:1990)
   by 0x76A89B8: QObject::~QObject() (qobject.cpp:987)
   by 0x7694AA9: QCoreApplication::~QCoreApplication() (qcoreapplication.cpp:620)
   by 0x6C1F3EB: QApplication::~QApplication() (qapplication.cpp:1111)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198090</commentid>
    <comment_count>2</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2010-03-10 06:40:31 -0800</bug_when>
    <thetext>
Please follow the QtWebKit bug reporting guidelines when reporting bugs.

See http://trac.webkit.org/wiki/QtWebKitBugs

Specifically:

  - The &apos;QtWebKit&apos; component should only be used for bugs/features in the
    public QtWebKit API layer, not to signify that the bug is specific to
    the Qt port of WebKit

      http://trac.webkit.org/wiki/QtWebKitBugs#Component

  - Add the keyword &apos;Qt&apos; to signal that it&apos;s a Qt-related bug

      http://trac.webkit.org/wiki/QtWebKitBugs#Keywords</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198176</commentid>
    <comment_count>3</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-03-10 09:36:45 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; 
&gt;   - The &apos;QtWebKit&apos; component should only be used for bugs/features in the
&gt;     public QtWebKit API layer, not to signify that the bug is specific to
&gt;     the Qt port of WebKit
&gt; 
&gt;       http://trac.webkit.org/wiki/QtWebKitBugs#Component

This is not the case so I did not chose the qtwebkit component.

&gt; 
&gt;   - Add the keyword &apos;Qt&apos; to signal that it&apos;s a Qt-related bug
&gt; 
&gt;       http://trac.webkit.org/wiki/QtWebKitBugs#Keywords

I have removed the flag from the bug since I think this is not a qt-specific bug.
I think the reason of you can see this crash only inside QtLauncher is that we
do a gc just before exiting in debug builds. The problem is gc related.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202463</commentid>
    <comment_count>4</comment_count>
    <who name="Tor Arne Vestbø">vestbo</who>
    <bug_when>2010-03-22 06:36:56 -0700</bug_when>
    <thetext>Bugs relating to the Qt port of WebKit should have the Qt keyword. See http://trac.webkit.org/wiki/QtWebKitBugs</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>224138</commentid>
    <comment_count>5</comment_count>
    <who name="Jesus Sanchez-Palencia">jesus</who>
    <bug_when>2010-05-11 14:01:39 -0700</bug_when>
    <thetext>Do we have two different bugs being reported here? It would be nice to split them into two different bug reports. I&apos;m not adding the keyword &apos;QtTriaged&apos; for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>225242</commentid>
    <comment_count>6</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2010-05-13 05:59:17 -0700</bug_when>
    <thetext>The second one (interpreter build crash on app exit) has been solved by r57818.
JIT asserts are still happens inside valgrind. I am going to close this one
and create a new for those problems. Since the JIT is not very platform specific,
I hardly think it is a Qt related bug. (Actually, it is Qt specific because valgrind is used mostly by us :) )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>328363</commentid>
    <comment_count>7</comment_count>
    <who name="Balazs Kelemen">kbalazs</who>
    <bug_when>2011-01-01 22:55:10 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 39060 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>