Seeking advice on crash in __tcf_0
Seeking advice on crash in __tcf_0
- Subject: Seeking advice on crash in __tcf_0
- From: Lyndsey <email@hidden>
- Date: Thu, 18 May 2006 12:10:01 -0400
- Thread-topic: Seeking advice on crash in __tcf_0
Hello Everyone,
I am investigating a crash within our application running in Mac OS X 10.3.9
that has me stumped.
This same application does not crash while running in Mac OS X 10.4.6 Intel
nor Mac OS X 10.4.6 PowerPC.
The crash log is not helpful:
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x0c3968c0
Thread 0 Crashed:
0 <<00000000>> 0x0c3968c0 0 + 0xc3968c0
1 net.nemetschek.VectorWorks 0x00002214 0x1000 + 0x1214
2 dyld 0x8fe1a278 _dyld_start + 0x64
After placing many debug messages into the code at various places in the
code, I have determined that the crash is happening after "int main()"
exits.
I then set up Xcode to allow me to remotely debug from my Intel Mac to the
Mac OS X 10.3.9 machine. The results are not surprising, but do not lead me
directly to an answer. The code is crashing in a function "__tcf_0". Which,
according to my research so far, is a function placed inside each function
for a static object and is registered with exit(). Its purpose is to call
the destructor and free the memory for that static object. When exit is
called, inside it calls each registered __tcf_0 function. The problem occurs
when the static memory is no longer valid and the crash occurs.
Do you think my research is correct? If so, how in the world do I find where
the problem is? We have many many static variables (more than I can replace
with better tech) -- how do I know where the problem lies?
Does anyone have any tips? Hopefully someone has dealt with this before and
found a solution.
I appreciate any help on this matter. Thank you in advance.
Sincerely,
Lyndsey Ferguson
--
Lyndsey Ferguson
Software Engineer
email@hidden
VectorWorks 12
Go from life without 12 to life without limits.
Visit http://www.vectorworks.net for more information.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden