<?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>188238</bug_id>
          
          <creation_ts>2018-08-01 14:40:32 -0700</creation_ts>
          <short_desc>LOG_ERROR when attempting to create a sandbox extension</short_desc>
          <delta_ts>2018-08-04 15:53:48 -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>WebKit Misc.</component>
          <version>WebKit 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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Devin Rousso">hi</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>jbedard</cc>
    
    <cc>joepeck</cc>
    
    <cc>pvollan</cc>
    
    <cc>sihui_liu</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1447002</commentid>
    <comment_count>0</comment_count>
    <who name="Devin Rousso">hi</who>
    <bug_when>2018-08-01 14:40:32 -0700</bug_when>
    <thetext>When trying to load any page, I get the following errors printed to the console (debug build):

Starting SafariForWebKitDevelopment with DYLD_FRAMEWORK_PATH set to point to built WebKit in WebKit/WebKitBuild/Debug.
objc[58801]: Class AMSupportURLConnectionDelegate is implemented in both /System/Library/PrivateFrameworks/EmbeddedOSInstall.framework/Versions/A/EmbeddedOSInstall (0x7fffacf078c0) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x111deb430). One of the two will be used. Which one is undefined.
objc[58801]: Class AMSupportURLSession is implemented in both /System/Library/PrivateFrameworks/OSPersonalization.framework/Versions/A/OSPersonalization (0x7fffae766f50) and /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x111deb480). One of the two will be used. Which one is undefined.
2018-08-01 14:34:31.504 SafariForWebKitDevelopment[58801:2576881] NetworkStorageDB:_openDBReadConnections: failed to open read connection to DB @ ~/Library/Caches/com.apple.Safari/Cache.db.  Error=14. Cause=unable to open database file
2018-08-01 14:34:31.504 SafariForWebKitDevelopment[58801:2576881] CacheRead: unable to open cache files in ~/Library/Caches/com.apple.Safari
2018-08-01 14:34:31.504 SafariForWebKitDevelopment[58801:2576881] Failed to obtain sandbox extension for path=~/Library/Caches/com.apple.Safari. Errno:1
2018-08-01 14:34:31.505 SafariForWebKitDevelopment[58801:2576881] NetworkStorageDB:_openDBReadConnections: failed to open read connection to DB @ ~/Library/Caches/com.apple.Safari/Cache.db.  Error=14. Cause=unable to open database file
2018-08-01 14:34:31.505 SafariForWebKitDevelopment[58801:2576881] CacheRead: unable to open cache files in ~/Library/Caches/com.apple.Safari
2018-08-01 14:34:31.505 SafariForWebKitDevelopment[58801:2576881] Failed to obtain sandbox extension for path=~/Library/Caches/com.apple.Safari. Errno:1
ERROR: Could not create a sandbox extension for &apos;~/Library/Caches/com.apple.Safari/WebKitCache&apos;
WebKit/Source/WebKit/Shared/mac/SandboxExtensionMac.mm(299) : static bool WebKit::SandboxExtension::createHandleWithoutResolvingPath(const WTF::String &amp;, WebKit::SandboxExtension::Type, WebKit::SandboxExtension::Handle &amp;)
ERROR: Could not create a sandbox extension for &apos;~/Library/Caches/com.apple.Safari/WebKitCache/OfflineWebApplicationCache&apos;
WebKit/Source/WebKit/Shared/mac/SandboxExtensionMac.mm(299) : static bool WebKit::SandboxExtension::createHandleWithoutResolvingPath(const WTF::String &amp;, WebKit::SandboxExtension::Type, WebKit::SandboxExtension::Handle &amp;)
ERROR: Could not create a sandbox extension for &apos;~/Library/Safari/Databases&apos;
WebKit/Source/WebKit/Shared/mac/SandboxExtensionMac.mm(299) : static bool WebKit::SandboxExtension::createHandleWithoutResolvingPath(const WTF::String &amp;, WebKit::SandboxExtension::Type, WebKit::SandboxExtension::Handle &amp;)
Failed to open cahce settings store at file://~/Library/Safari/Touch%20Icons%20Cache/TouchIconCacheSettings.db: Error Domain=com.apple.Safari.SQLite Code=14 &quot;unable to open database file&quot;
2018-08-01 14:34:32.119 SafariForWebKitDevelopment[58801:2576881] NetworkStorageDB:_openDBReadConnections: failed to open read connection to DB @ ~/Library/Caches/com.apple.Safari/Cache.db.  Error=14. Cause=unable to open database file
2018-08-01 14:34:32.119 SafariForWebKitDevelopment[58801:2576881] CacheRead: unable to open cache files in ~/Library/Caches/com.apple.Safari
2018-08-01 14:34:32.119 SafariForWebKitDevelopment[58801:2576881] Failed to obtain sandbox extension for path=~/Library/Caches/com.apple.Safari. Errno:1
2018-08-01 14:34:32.251 SafariForWebKitDevelopment[58801:2576882] AOSKit ERROR: XPC CLIENT: Unauthorized client error received
2018-08-01 14:34:32.258 SafariForWebKitDevelopment[58801:2576929] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener &apos;SandboxBroker&apos;: Connection invalid
ERROR: Could not create a sandbox extension for &apos;~/Library/Caches/com.apple.Safari/WebKit/NetworkCache&apos;
WebKit/Source/WebKit/Shared/mac/SandboxExtensionMac.mm(299) : static bool WebKit::SandboxExtension::createHandleWithoutResolvingPath(const WTF::String &amp;, WebKit::SandboxExtension::Type, WebKit::SandboxExtension::Handle &amp;)
ERROR: Could not create a sandbox extension for &apos;~/Library/Caches/com.apple.Safari/WebKit/OfflineWebApplicationCache&apos;
WebKit/Source/WebKit/Shared/mac/SandboxExtensionMac.mm(299) : static bool WebKit::SandboxExtension::createHandleWithoutResolvingPath(const WTF::String &amp;, WebKit::SandboxExtension::Type, WebKit::SandboxExtension::Handle &amp;)

Two of the errors (Caches/com.apple.Safari/WebKitCache/OfflineWebApplicationCache and Safari/Databases) continue logging while the page keeps reloading &quot;due to an error&quot;.

I&apos;m building off of r234441.

ProductName:	Mac OS X
ProductVersion:	10.14
BuildVersion:	18A336e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1447018</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2018-08-01 15:04:18 -0700</bug_when>
    <thetext>A lot of the time, &quot;Could not create a sandbox extension&quot; means that the directory doesn&apos;t exist, and that could be a bug with process spawning code in WebKit.

But this looks concerning:

2018-08-01 14:34:32.258 SafariForWebKitDevelopment[58801:2576929] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener &apos;SandboxBroker&apos;: Connection invalid</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>