<?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>174814</bug_id>
          
          <creation_ts>2017-07-25 01:54:21 -0700</creation_ts>
          <short_desc>[curl] ASSERTION FAILED: The string being removed is atomic in the string table of an other thread!</short_desc>
          <delta_ts>2017-07-26 02:02:45 -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>Platform</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>174845</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fujii Hironori">fujii</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>basuke</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1331909</commentid>
    <comment_count>0</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2017-07-25 01:54:21 -0700</bug_when>
    <thetext>While using MiniBrowser of WinCairo port (trunk@219863, Debug build),
I see the following assertion failure.

&gt; ASSERTION FAILED: The string being removed is atomic in the string table of an other thread!
&gt; iterator != atomicStringTable.end()
&gt; C:\webkit\ga\Source\WTF\wtf\text\AtomicStringImpl.cpp(483) : WTF::AtomicStringImpl::remove


&gt; WTF.dll!WTFCrash() Line 278	C++
&gt; WTF.dll!WTF::AtomicStringImpl::remove(WTF::AtomicStringImpl * string) Line 483	C++
&gt; WTF.dll!WTF::StringImpl::~StringImpl() Line 118	C++
&gt; [External Code]	
&gt; WTF.dll!WTF::StringImpl::destroy(WTF::StringImpl * stringImpl) Line 144	C++
&gt; WebKit.dll!WTF::StringImpl::deref() Line 566	C++
&gt; WebKit.dll!WTF::derefIfNotNull&lt;WTF::StringImpl&gt;(WTF::StringImpl * ptr) Line 46	C++
&gt; WebKit.dll!WTF::RefPtr&lt;WTF::StringImpl&gt;::~RefPtr&lt;WTF::StringImpl&gt;() Line 69	C++
&gt; WebKit.dll!WTF::String::~String() Line 142	C++
&gt; [External Code]	
&gt; WebKit.dll!WebCore::ResourceHandleInternal::~ResourceHandleInternal() Line 52	C++
&gt; [External Code]	
&gt; WebKit.dll!WebCore::ResourceHandle::~ResourceHandle() Line 56	C++
&gt; [External Code]	
&gt; WebKit.dll!WTF::RefCounted&lt;WebCore::ResourceHandle&gt;::deref() Line 145	C++
&gt; WebKit.dll!WTF::Ref&lt;WebCore::ResourceHandle&gt;::~Ref&lt;WebCore::ResourceHandle&gt;() Line 59	C++
&gt; [External Code]	
&gt; WTF.dll!WTF::Function&lt;void __cdecl(void)&gt;::operator=(void * __formal) Line 79	C++
&gt; WTF.dll!WTF::dispatchFunctionsFromMainThread() Line 138	C++
&gt; WTF.dll!WTF::ThreadingWindowWndProc(HWND__ * hWnd, unsigned int message, unsigned __int64 wParam, __int64 lParam) Line 47	C++
&gt; [External Code]	
&gt; WebKit.dll!WebKitMessageLoop::run(HACCEL__ * hAccelTable) Line 97	C++
&gt; MiniBrowserLib.dll!wWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpstrCmdLine, int nCmdShow) Line 189	C++
&gt; MiniBrowserLib.dll!dllLauncherEntryPoint(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpstrCmdLine, int nCmdShow) Line 908	C++
&gt; MiniBrowser.exe!wWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpstrCmdLine, int nCmdShow) Line 249	C++
&gt; [External Code]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1331910</commentid>
    <comment_count>1</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2017-07-25 02:00:43 -0700</bug_when>
    <thetext>That string is &quot;OK&quot;.

&gt; WebKit.dll!WTF::String::~String() Line 142	C++
&gt; [External Code]	
&gt; WebKit.dll!WebCore::ResourceHandleInternal::~ResourceHandleInternal() Line 52	C++

~ResourceHandleInternal was calling WebCore::ResourceResponse::~ResourceResponse.
I don&apos;t know who was calling ~String().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1332003</commentid>
    <comment_count>2</comment_count>
    <who name="Basuke Suzuki">basuke</who>
    <bug_when>2017-07-25 10:59:04 -0700</bug_when>
    <thetext>Okay. Thanks for reporting. Still ResourceHandle curl has bunch of mysterious behaviors which need to cleanup. One by one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1332235</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2017-07-25 20:38:44 -0700</bug_when>
    <thetext>The type of ResourceResponseBase::m_httpStatusText is AtomicString.
ResourceHandleInternal::didReceiveHeaderLine calls setHTTPStatusText in the curl thread.
And, the AtomicString is destructed in main thread.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1332296</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2017-07-26 02:02:45 -0700</bug_when>
    <thetext>

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

    </bug>

</bugzilla>