<?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>232000</bug_id>
          
          <creation_ts>2021-10-19 20:45:48 -0700</creation_ts>
          <short_desc>Apple-Win-10-Release-Build failing due to vc142.pdb write lock</short_desc>
          <delta_ts>2021-10-20 04:55:13 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>CONFIGURATION CHANGED</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="Jed Spraul">jspraul</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annulen</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>fujii</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>ryuan.choi</cc>
    
    <cc>sergio</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1806477</commentid>
    <comment_count>0</comment_count>
    <who name="Jed Spraul">jspraul</who>
    <bug_when>2021-10-19 20:45:48 -0700</bug_when>
    <thetext>Apple-Win-10-Release-Build failing due to vc142.pdb write lock</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806482</commentid>
    <comment_count>1</comment_count>
      <attachid>441845</attachid>
    <who name="Jed Spraul">jspraul</who>
    <bug_when>2021-10-19 21:00:10 -0700</bug_when>
    <thetext>Created attachment 441845
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806496</commentid>
    <comment_count>2</comment_count>
    <who name="Jed Spraul">jspraul</who>
    <bug_when>2021-10-19 21:57:40 -0700</bug_when>
    <thetext>Apple-Win-10-Release-Build has failed for 8+ days with an error similar to the following (seeming on random .cpp files, this from the first failed build of ~350 so far - build 6109):

fatal error C1041: cannot open program database &apos;C:\cygwin\worker\win10-release\build\WebKitBuild\Release\Tools\TestWebKitAPI\TestWebCoreLib.dir\Release\vc142.pdb&apos;; if multiple CL.EXE write to the same .PDB file, please use /FS [C:\cygwin\worker\win10-release\build\WebKitBuild\Release\Tools\TestWebKitAPI\TestWebCoreLib.vcxproj]

The output doesn&apos;t appear to be categorized by the buildbot as an error.

As far as a patch, I added the /FS option to the same line turning on the PDB generation. Even the documentation states this might not solve the problem, but it could be the simplest fix. In any case, it may be hard to recreate what&apos;s happening on buildbot on a developer&apos;s machine.

I only spot-checked a handful of the failed builds, but it seemed like this was primarily an issue in the TestWebCoreLib project, so a fix may only be necessary for that one project rather than across all projects. In addition, the Apple-Win-10-Debug-Build build hasn&apos;t been affected, so a Release-only tweak may be enough.

It wasn&apos;t clear why the error began occurring either, perhaps some configuration change on the buildbot.

Research:

 https://stackoverflow.com/questions/20643370/visual-studio-2013-fatal-error-c1041-fs

  - the proper solution is per-project intermediate file output directories
  - file locks may be caused by other software, such as antivirus/backup
  - fix had to be applied to all projects for several
  - 1 claim that /FS must also be passed to the linker, doesn&apos;t make sense
  - could disable parallel build (slow) or enable in-obj symbols (large)
  - the MSPDBSRV.EXE sync process used by /FS can get wedged
  - some file(s) may become corrupted (especially PDB?), requiring deleting build files, not an issue on a clean build

 https://docs.microsoft.com/en-us/cpp/build/reference/fs-force-synchronous-pdb-writes

  - /FS syncs PDB writes through MSPDBSRV.EXE, longer builds + doesn&apos;t prevent all errors
  - recommend separate intermediate and output locations for all projects
  - /MP (not-Ninja per OptionsMSVC.cmake) enables /FS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806505</commentid>
    <comment_count>3</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-10-19 23:01:09 -0700</bug_when>
    <thetext>We had a discussion in WebKit Slack today.
https://webkit.slack.com/archives/CU64U6FDW/p1634674617427300
Because AppleWin EWS doesn&apos;t have this issue, we should try clean build at first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806521</commentid>
    <comment_count>4</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-10-19 23:43:56 -0700</bug_when>
    <thetext>The AppleWin bot (bot548) got back to normal.
https://build.webkit.org/#/builders/67/builds/6460

Ryan Haddad said:
&gt; Looks like my manual intervention worked.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806524</commentid>
    <comment_count>5</comment_count>
      <attachid>441845</attachid>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2021-10-20 00:06:55 -0700</bug_when>
    <thetext>Comment on attachment 441845
Patch

I think we no longer need this patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1806571</commentid>
    <comment_count>6</comment_count>
    <who name="Jed Spraul">jspraul</who>
    <bug_when>2021-10-20 04:55:13 -0700</bug_when>
    <thetext>👍</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>441845</attachid>
            <date>2021-10-19 21:00:10 -0700</date>
            <delta_ts>2021-10-20 00:06:55 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-232000-20211020000010.patch</filename>
            <type>text/plain</type>
            <size>1347</size>
            <attacher name="Jed Spraul">jspraul</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjg0NTE2CmRpZmYgLS1naXQgYS9Tb3VyY2UvY21ha2UvT3B0
aW9uc01TVkMuY21ha2UgYi9Tb3VyY2UvY21ha2UvT3B0aW9uc01TVkMuY21ha2UKaW5kZXggNWUx
ZGYxOT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luZyBkdWUgdG8gdmMxNDIucGRi
IHdyaXRlIGxvY2sKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dp
P2lkPTIzMjAwMAorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAg
ICAgICogU291cmNlL2NtYWtlL09wdGlvbnNNU1ZDLmNtYWtlOgorICAgICAgICBBZGQgL0ZTIG9w
dGlvbiB0byBzZXJpYWxpemUgUERCIGFjY2VzcyBhcyByZWNvbW1lbmRlZCBpbiBidWlsZCBlcnJv
ciBtZXNzYWdlLgorICAgICAgICAiVGhpcyBtYXkgbWFrZSBidWlsZHMgc2lnbmlmaWNhbnRseSBs
b25nZXIsIGFuZCBpdCBkb2Vzbid0IHByZXZlbnQgYWxsIGVycm9ycyIKKwogMjAyMS0xMC0xOSAg
Um9zcyBLaXJzbGluZyAgPHJvc3Mua2lyc2xpbmdAc29ueS5jb20+CiAKICAgICAgICAgW0NNYWtl
XSBBbGlnbiBPcHRpb25zTWFjIHdpdGggWGNvZGUgYnVpbGQK
</data>
<flag name="review"
          id="466216"
          type_id="1"
          status="-"
          setter="fujii"
    />
          </attachment>
      

    </bug>

</bugzilla>