Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash in CFReadStreamOpen()



Hi all,

I've got some brand-new CFNetwork code that, on the whole, has been
working very well. Today, without any visible provocation, the following
crash occurred. The top of the stack looks like this:

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

0 com.apple.CoreFoundation 0x9072e3ac CFArrayGetValueAtIndex + 56
1 com.apple.CFNetwork 0x90ef4928 _ExpireCacheEntries + 252
2 com.apple.CFNetwork 0x90ef44a8 _CreateLookup_NoLock + 292
3 com.apple.CFNetwork 0x90ef42c4 CFHostStartInfoResolution + 84
4 com.apple.CFNetwork 0x90ef3c7c _ScheduleAndStartLookup + 304
5 com.apple.CFNetwork 0x90ef3a98 _SocketStreamStartLookupForOpen_NoLock + 604
6 com.apple.CFNetwork 0x90ef377c _SocketStreamOpen + 264
7 com.apple.CoreFoundation 0x9075a5cc _CFStreamOpen + 116
8 com.apple.CoreFoundation 0x90797b84 CFReadStreamOpen + 148

Thread 5 crashed with PPC Thread State 64:
  srr0: 0x000000009072e3ac srr1: 0x000000000000f030                        vrsave: 0x0000000000000000
    cr: 0x22008288          xer: 0x0000000000000004  lr: 0x000000009072e37c  ctr: 0x000000009072e374
    r0: 0x00000000069022f0  r1: 0x00000000f0315170  r2: 0x00000000a0728274  r3: 0x0000000000000000
    r4: 0x0000000000000001  r5: 0x00000000f0315280  r6: 0x00000000ffffffff  r7: 0x0000000000000000
    r8: 0x0000000000000002  r9: 0x0000000000000010  r10: 0x0000000022200fdf  r11: 0x00000000a0eef578
  r12: 0x000000009072e374  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
  r16: 0x0000000000000000  r17: 0x0000000000000000  r18: 0x0000000000000000  r19: 0x00000000f0315280
  r20: 0x00000000f0315210  r21: 0x00000000a0ef4834  r22: 0x00000000a0ef4834  r23: 0x00000000a0ef1ad4
  r24: 0x0000000000000000  r25: 0x000000002217ef90  r26: 0x00000000f0315280  r27: 0x0000000000000002
  r28: 0x0000000000000001  r29: 0x0000000000000000  r30: 0x00000000f0315210  r31: 0x000000009072e37c

I wouldn't go so far as to say that there's a bug in CFNetwork, because
I quite easily could have written a bug myself. However, it would be a
great help in diagnosing this if I knew where to start looking. Would it
be possible for anyone in the know to speculate as to what would cause
_ExpireCacheEntries to operate on a NULL CFArray, and how it might have
become so?

Thanks,

R.
-- 
Rich Siegel                                 Bare Bones Software, Inc.
<email@hidden>                      <http://www.barebones.com/>

Someday I'll look back on all this and laugh... until they sedate me.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macnetworkprog/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.