CFSocket crash in Jaguar
CFSocket crash in Jaguar
- Subject: CFSocket crash in Jaguar
- From: Dave Camp <email@hidden>
- Date: Mon, 3 May 2004 13:08:59 -0700
I'm pulling my hair out over this problem. Maybe someone has some
suggestions...
I'm using CFSocket to create a Unix Domain Socket between two processes
(both are mine). Code appears to work perfectly on Panther.
On Jaguar (10.2.8) I get crashes that look like the following:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
Thread 0:
#0 0x90006a28 in clock_sleep_trap
#1 0x9000672c in nanosleep
#2 0x90006670 in sleep
#3 0x00005b88 in main (main.c:357)
#4 0x00005138 in _start (crt.c:267)
#5 0x00004fb8 in start
Thread 1:
#0 0x90073ba8 in mach_msg_trap
#1 0x90005ed0 in mach_msg
#2 0x90499224 in io_connect_method_scalarI_structureO
#3 0x001621b4 in IOUSBInterfaceClass::ReadPipe(unsigned char, void*,
unsigned long*, unsigned long, unsigned long)
#4 0x00130be8 in Read (GenericClassDriver.c:402)
#5 0x00005460 in readthread (main.c:115)
#6 0x90020c28 in _pthread_body
Thread 2 Crashed:
#0 0x00000000 in 0x0
#1 0x90162b38 in __CFSocketPerform
#2 0x90149414 in __CFRunLoopDoSources0
#3 0x901487f8 in __CFRunLoopRun
#4 0x90180f58 in CFRunLoopRunSpecific
#5 0x00133500 in dataThread (DriverSocket.c:238)
#6 0x90020c28 in _pthread_body
Thread 3:
#0 0x9002568c in select
#1 0x90161830 in __CFSocketManager
#2 0x90020c28 in _pthread_body
PPC Thread State:
srr0: 0x00000000 srr1: 0x4000d030 vrsave: 0x00000000
xer: 0x20000000 lr: 0x9013ee30 ctr: 0x00000000 mq: 0x00000000
r0: 0x00000000 r1: 0xf0101700 r2: 0x84002288 r3: 0x901c8fa0
r4: 0x00000000 r5: 0x00000001 r6: 0x00000000 r7: 0x00000000
r8: 0x00000001 r9: 0xa0130938 r10: 0x00020004 r11: 0x00000014
r12: 0x00000000 r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0x00000001 r17: 0x00000000 r18: 0x00000000 r19: 0x00000001
r20: 0x00000000 r21: 0xa01328dc r22: 0x0005a93c r23: 0x00000003
r24: 0x0005ffe0 r25: 0x24002280 r26: 0x0005a930 r27: 0x0005ff80
r28: 0x00000000 r29: 0x0005ffe0 r30: 0xa0130f68 r31: 0x9013eda8
Threads 0, 1, and 2 are mine. I assume thread 3 was created by CFSocket
for it's own use. The crash is always in thread 2 or 3 and it always
looks like CFSocket is doing something with a NULL function pointer.
Any suggestions for figuring out what CFSocket is doing or what
function pointer it's using is bad? My code is pretty short (maybe 300
lines with comments) and I don't see anything obviously wrong with
it...
Thanks,
Dave
---
It is dark; you are likely to be eaten by a grue. -Zork
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.