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_AD DRESS (0x0001) at 0x0c3968c0
Thread 0 Crashed:
0 <<00000000>> 0x0c3968c0 0 + 0xc3968c0
1 com.mycompany.a pp 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 3 2285 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
Thanks for your suggestion, I will try both resources.
Sincerely,
Lyndsey
<Ly************ **@gmail.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.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_AD DRESS (0x0001) at 0x0c3968c0
Thread 0 Crashed: 0 <<00000000>> 0x0c3968c0 0 + 0xc3968c0 1 com.mycompany.a pp 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
call the PHP program to add the record using POST. When I get the
text out, it has lost it's formatting. Formatting in the text is
achieved by multiple spaces not tabs, but even multiple spaces are
converted to a single space and the carrage...
|
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 forum and/or
what are keywords that I would search for?
I'm a former (very former) MS Access 2.0 programmer who has long
gotten out of it and can't remember squat.
Thanks,
Bill
|
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 application which is tightly integrated
with the workstation Windows environment. Our software does not necessarily
handle any specific document type. User's can import any document type into
our repository. On the display side, we use WinAPI to...
|
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 ok. I have my header area
and below it 3 columns.
My problem is within the header area.
|
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 expected of a fresh graduate in the industry?
I have read starter level books(Stroustrup), and some intermediate books(Herb Sutter's
Exceptional Series, Scott Meyers classic guides,C++ Common Knowledge,
Efficient C++,Advanced C++ Programming Styles...
| |
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 this polling loop is entered
synchronously from OnStart, basically the OnStart event doesn't terminate
for the life of the program. This doesn't give the SCM the correct feedback
that the service has started properly. Consequently, the SCM throws...
|
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 and forgive me. I have just recently finished learning Mysql databases and since I seriously enjoyed studying it, I have taken on myself to learn other databases such as Access and Oracel. As you all are well aware of its nearly impossible for a...
|
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 IDs, and I can do
searching keywords with them)
The db-like modules are :
|
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 silly question.
I have been asked to build a website to specifications provided by a graphic designer at very short notice. The specifications include the visual appearance of the page, set out with pixel widths, locations of graphics, fonts, etc....
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |