• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mysterious "File exists" message logged to console
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mysterious "File exists" message logged to console


  • Subject: Re: Mysterious "File exists" message logged to console
  • From: Ken Thomases <email@hidden>
  • Date: Thu, 15 Dec 2011 10:59:37 -0600

On Dec 15, 2011, at 9:29 AM, Mike Abdullah wrote:

> I'm trying to track down a bug and have a copy of a customer's console log to help me. There's rather a lot of messages like this:
>
> 	open on /Users/foo/bar/mydocument.package/DSC_0221.jpg: File exists
>
> Searching the web has been fruitless so far, so does anybody know which Cocoa API(s) would produce such messages?

The "File exists" string is almost certainly the result of strerror(EEXIST).

As to where that's coming from, you might (have the customer) try the following:

sudo dtrace -n '
syscall::open*:return
/pid == $target && errno != 0/
{
	printf("%s %s\n", probefunc, errno);
	ustack();
}' -p <pid of your program>

(I split the quoted part across multiple lines, but you can collapse it to one line.  A long line is more likely to be mangled in email transit.)

Regards,
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Mysterious "File exists" message logged to console (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: responding to NSStepper clicks
  • Next by Date: Re: Mysterious "File exists" message logged to console
  • Previous by thread: Mysterious "File exists" message logged to console
  • Next by thread: Re: Mysterious "File exists" message logged to console
  • Index(es):
    • Date
    • Thread