Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Weird compiler error

Weird compiler error
Thread Tools
Forum Regular
Join Date: Feb 2002
Location: Fort Lauderdale, Florida
Status: Offline
Reply With Quote
Dec 21, 2002, 05:20 PM
 
I'm trying to port a piece of software to OS X and I'm getting the following error:

gcc -g -Wall -DHAVE_XLIB -I/sw/include -I/usr/X11R6/include -c help.c -o help.o
*** malloc[741]: error for object 0x6b04c0: Incorrect checksum for freed object - object was probably modified after being freed; break at szone_error
gcc: Internal error: Segmentation fault (program /usr/libexec/gcc/darwin/ppc/cpp-precomp)
Please submit a full bug report.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make: *** [help.o] Error 1


Anybody have a clue what this is? I've never heard of this.
     
Mac Elite
Join Date: Sep 2000
Location: Tempe, AZ
Status: Offline
Reply With Quote
Dec 21, 2002, 08:27 PM
 
gccc is releasing a block of memory that it allocated twice instead of once. It's a bug with gcc. You should follow their instructions and submit a bug report.

Any clue what code is causing it to die, out of curiosity?
Geekspiff - generating spiffdiddlee software since before you began paying attention.
     
Forum Regular
Join Date: Feb 2002
Location: Fort Lauderdale, Florida
Status: Offline
Reply With Quote
Dec 21, 2002, 08:50 PM
 
Yeah I just tracked it down to a header file that has about ten huge char strings declared in it. The strings are just help messages so I can omit them for now. The only thing done in the header is declare these strings.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:58 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2