Recently, a rather ordinary document-based application that I've been working 
on started misbehaving in the following way:  If I create a new document, put 
some text into it, save it, and then try to open it again, I get a 
"EXEC_BAD_ACCESS" error.  I spent a lot of time trying to find the bug that 
causes this but without success.  So I decided to have a look at Sketch to see 
what it does that might help me understand the problem.  To my great surprise, 
a new copy of the Sketch project taken from the examples provided with Xcode 
behaved in the same way.  Here are the steps I went through with Sketch:

1. Launch Sketch in Xcode; hit the run button
2. Click on one of the items in the palette that appears, e.g. circles
3. draw a circle in the blank, untitled window
4. Use Save as… from the file menu to save the result on the desktop, giving it 
some arbitrary name
5. Close the document window
6. Select Open... from the file menu

Often, I get the following results :

0x00007fff8b012350  <+0000>  mov    %rdi,%r8
0x00007fff8b012353  <+0003>  xor    %eax,%eax
0x00007fff8b012355  <+0005>  or     $0xffffffffffffffff,%edx
0x00007fff8b012358  <+0008>  lock cmpxchg %edx,(%r8)
0x00007fff8b01235d  <+0013>  jne    0x7fff8b012360 <spin_lock$VARIANT$mp+16>
0x00007fff8b01235f  <+0015>  retq   
0x00007fff8b012360  <+0016>  xor    %eax,%eax
0x00007fff8b012362  <+0018>  mov    $0x3e8,%edx
0x00007fff8b012367  <+0023>  pause  
0x00007fff8b012369  <+0025>  cmp    %eax,(%r8)
0x00007fff8b01236c  <+0028>  je     0x7fff8b012353 <spin_lock$VARIANT$mp+3>
0x00007fff8b01236e  <+0030>  dec    %edx
0x00007fff8b012370  <+0032>  jne    0x7fff8b012367 <spin_lock$VARIANT$mp+23>
0x00007fff8b012372  <+0034>  xor    %edi,%edi
0x00007fff8b012374  <+0036>  mov    $0x1,%esi
0x00007fff8b012379  <+0041>  mov    $0x1,%edx
0x00007fff8b01237e  <+0046>  mov    $0x100003d,%eax
0x00007fff8b012383  <+0051>  syscall 
0x00007fff8b012385  <+0053>  jmp    0x7fff8b012353 <spin_lock$VARIANT$mp+3>
0x00007fff8b012387  <+0055>  nop  

On the 4th line, above, the message ' Thread 7: Program received signal: 
"EXEC_BAD_ACCESS". ' is displayed.
In the area showing threads, Thread 7 reads "TFSVolumeInfo::GetSyncGCDQueue"

This result is essentially the same as what I get with my own project, so I 
presume that the problem isn't internal to my code but rather, has something to 
do with a setting in Xcode itself, a corrupted file that Xcode uses, or … ?  In 
both Sketch and in my project, the problem doesn't occur 100% of the time and 
I've not been able to come up with a definitive pattern.

I'm running Xcode 4.0.2 and Lion 10.7.1 (11B26) on an iMac.

In searching for clues on the web, I found a discussion of a very similar 
problem at http://lists.apple.com/archives/cocoa-dev/2011/Aug/msg00987.html 
but I wasn't able to understand all the details of what was said. The solution 
given in this posting refers to an out-of-date file:

> 0xc7a3000 -  0xc7a6fff +org.tigris.scfinderplugin (1.0 - 169) 
> <8DE3E188-4EF3-B390-1B61-DBF71CD800CF> /Library/Contextual Menu 
> Items/SCFinderPlugin.plugin/Contents/MacOS/SCFinderPlugin
> This was an out of date and no longer relevant copy of the Subversion 
> SCPlugin.

However, there is no such file in my Contextual Menu Items.

Any help in sorting this out would be greatly appreciated.

Boyd

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to