473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Seeking advice on crash in __tcf_0

Hello Everyone,
I am investigating a crash within our application that has me stumped.

I am developing for Mac OS X, but I believe that this may be a regular
gcc c++ type question.

Here is the stack crawl of where the application is crashing:

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x0c3968c0

Thread 0 Crashed:
0 <<00000000>> 0x0c3968c0 0 + 0xc3968c0
1 com.mycompany.app 0x00002214 0x1000 + 0x1214
2 dyld 0x8fe1a278 _dyld_start + 0x64

After debugging it in gdb, I find that 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) -- 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

May 23 '06 #1
3 2269
Ly**************@gmail.com wrote:
I am investigating a crash within our application that has me stumped.

I am developing for Mac OS X, but I believe that this may be a regular
gcc c++ type question.
And what makes you think it's on topic here? Try gnu.g++.help. They
(GCC project) also have online discussion forums (http://gcc.gnu.org/).
Your problem is implementation-specific. And this a language newsgroup.
Please see the Welcome message for the explanations on the topicality
of c.l.c++: http://www.slack.net/~shiva/welcome.txt
[..]


V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
May 23 '06 #2
Thanks for your suggestion, I will try both resources.

Sincerely,
Lyndsey

May 23 '06 #3
<Ly**************@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Hello Everyone,
I am investigating a crash within our application that has me stumped.

I am developing for Mac OS X, but I believe that this may be a regular
gcc c++ type question.

Here is the stack crawl of where the application is crashing:

Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x0c3968c0

Thread 0 Crashed:
0 <<00000000>> 0x0c3968c0 0 + 0xc3968c0
1 com.mycompany.app 0x00002214 0x1000 + 0x1214
2 dyld 0x8fe1a278 _dyld_start + 0x64

After debugging it in gdb, I find that 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) -- how do I know where the problem lies?
Not having used Mac OS X, but familiar with some types of errors, it sounds
to me like you are trying to delete the same memory twice. Try this small
program and see if you get the same error:

int main()
{
int* MyInt = new int();

delete MyInt;
delete MyInt; // Does this line produce the same type of error?
}

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

May 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: James Turner | last post by:
I am trying to store formatted text (windows format) into a MySQL database and then retrieve it. The field in the database is a varchar. I cut and paste the test into a form field formatted, then...
1
by: Bill C | last post by:
This is a combo request for advice and advertisement. I'm sure there must be a forum out there where I can find people who would freelance simple databases in MS Access... Where would I find this...
2
by: Joseph Geretz | last post by:
I don't know if this is the right group for my question, but I'm seeking advice from knowledgable .NET developers. Hopefully I've come to the right place. I work with a document management...
20
by: Jim | last post by:
Hi, I am hoping that someone here can help me out. I am for the first time trying to implement a page design using only CSS instead of HTML tables. I've been able to get most of the page done...
4
by: | last post by:
I am a recent college graduate and am looking for some advice on how to be a skilled C++ developer. My educational background is from a quite mediocre campus. Can anybody please explain what is...
7
by: Joseph Geretz | last post by:
I have a Service which runs OK, but I'm abviously not starting it properly. In my OnStart event I commence a long running process which polls a database table and performs various processing. Since...
5
keyvanrahmadi
by: keyvanrahmadi | last post by:
Hopefully I am posting in the right section and not annoying everyone, if I am then please except my sincere apology for wasting your time and hopefully the Mods will move it to the right location...
3
by: Jia Lu | last post by:
Hello all I see there are lots of flat db or db-like modules in the standard python modules. What about the keywords seeking speed of them ? (I want to put about 10000 articles with 10000...
0
by: waggledance | last post by:
I was wondering if anyone here might be able to offer me some advice for someone who can only use Macromedia Dreamweaver MX. I am (clearly!) a web design novice so apologies in advance if this is a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.