title: NSLog, NSError, bad access
body: <p>I was doing a rather ordinary addPersistentStore to an <code>NSPersistentStoreCoordinator</code>, and it generated an &amp;error code.</p>
  
  <p>So I went to <code>NSLog</code> it, and got an access error when I did this:</p>
  
  <pre><code>    NSLog(@"Unresolved error %@, %@", error, [error userInfo]);
  </code></pre>
  
  <p>which seems to be the common idiom.</p>
  
  <p>When I reformatted the error statement as follows:</p>
  
  <pre><code>     NSLog(@"Unresolved error   %@",   [error userInfo]);
  </code></pre>
  
  <p>...the problem went away.</p>
  
  <p>Even NSZombie didn't trap the bad access error correctly! </p>
  
  <p>Any ideas?</p>