<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - FcCacheOffsetsValid() couldn't detect broken cache file"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103237#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - FcCacheOffsetsValid() couldn't detect broken cache file"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103237">bug 103237</a>
              from <span class="vcard"><a class="email" href="mailto:youngb.shin@samsung.com" title="Youngbok Shin <youngb.shin@samsung.com>"> <span class="fn">Youngbok Shin</span></a>
</span></b>
        <pre>The memory corruption could be one of possible reason. If the memory corruption
is the main reason of this, I suppose that we could reproduce it easily or find
other serious issues. But, I couldn’t still find memory corruption issues about
this. 

I found a write() call in FcDirCacheWrite() is used without calling fsync().
I supposed fsync() is called for better performance. The open-write-close code
without fsync() or O_SYNC flag does not make any guarantee that data has been
committed to disk. It can cause corrupted cache file when the device is
shutdown by power outage. How about your opinion about open-write-close without
fsync()?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>