<?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>132955</bug_id>
          
          <creation_ts>2014-05-15 08:14:26 -0700</creation_ts>
          <short_desc>WebKit2.CookieManager test fails when run under guardmalloc</short_desc>
          <delta_ts>2014-05-15 09:40:31 -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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>132954</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Kilzer (:ddkilzer)">ddkilzer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>andersca</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1009530</commentid>
    <comment_count>0</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2014-05-15 08:14:26 -0700</bug_when>
    <thetext>After adding support for running TestWebKitAPI with guardmalloc in Bug 132954, I found that WebKit2.CookieManager fails with a Debug build of r168683 (test may be flaky, but it fails most of the time):

$ ./Tools/Scripts/run-api-tests --debug -g -v WebKit2.CookieManager
[...]
Note: Google Test filter = WebKit2.CookieManager
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from WebKit2
[ RUN      ] WebKit2.CookieManager
Tools/TestWebKitAPI/Tests/WebKit2/CookieManager.cpp:43: Failure
Value of: policy
  Actual: 2
Expected: testPolicy
Which is: 0
[  FAILED  ] WebKit2.CookieManager (455 ms)
[----------] 1 test from WebKit2 (455 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (455 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] WebKit2.CookieManager

 1 FAILED TEST
  YOU HAVE 5 DISABLED TESTS

LEAK: 1 WebContext
Tests that failed:
  WebKit2.CookieManager</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1009564</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-05-15 09:40:31 -0700</bug_when>
    <thetext>When this happens, there is a sandbox violation in console. Seems like a timing issue with NSUserDefaults access, although I&apos;m not sure if the violation is a root cause of this problem.

15.05.14 9:34:46,979 sandboxd[389]: ([81271]) com.apple.WebKit(81271) deny file-write-data /Users/ap/Library/Preferences/com.apple.WebFoundation.plist

See also: &lt;rdar://problem/13402947&gt;, &lt;rdar://problem/15354351&gt;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>