Fsevents fail to fire for some paths, but not all (dupe of rdar://10207999)

Originator:Zyber17
Number:rdar://17259506 Date Originated:10-Jun-2014 06:45 PM
Status:Open Resolved:
Product:OS X Product Version:OS X 10.9.3 (13D65)
Classification:Serious Bug Reproducible:Unable
 
Summary:
(This is a duplicate of rdar://10207999 with revised wording.)

Please read the GitHub issue comments, starting with: https://github.com/thibaudgg/rb-fsevent/issues/10#issuecomment-2229407

While the bug is occurring, realpath()/readdir() and FSCopyAliasInfo() return paths with different cases. The filesystem is always HFS+. It appears that Dropbox exacerbates the problem, but is not in itself responsible. In all scenarios, renaming the folder to a different case and back fixes the problem. Logging out and back in also can fix the problem.

Steps to Reproduce:
Unknown

Expected Results:
Fsevents should always fire.

Actual Results:
Sometimes, fsevents do not fire; this happens when realpath() and FSCopyAliasInfo() return different case for a path.

Version:
OS X 10.9.3 (13D65)

Notes:
The bug is reliably detected by this code: https://github.com/andreyvit/find-fsevents-bugs/blob/master/find-fsevents-bugs.c (Attached)

Unfortunately, I am unaware of how to reliably _reproduce_ the bug myself, and it's easy to accidentally fix.

Configuration:


Attachments:
'find-fsevents-bugs.c' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!