Re: Not sure what "Non-aligned pointer being freed" means...
Re: Not sure what "Non-aligned pointer being freed" means...
- Subject: Re: Not sure what "Non-aligned pointer being freed" means...
- From: Chris Suter <email@hidden>
- Date: Mon, 26 Nov 2007 16:28:31 +1100
On 26/11/2007, at 3:34 PM, Graham Reitz wrote:
I am trying to track down a bug that didn't occur with OS X 10.4.x
(Xcode 2.5) but does with the same code in OS X 10.5.1 (Xcode 3.0).
Any help would be greatly appreciated.
Program output: (C++ console app)
mysqlpp_test(2473) malloc: *** error for object 0x18a138: Non-
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug
The app doesn't appear to crash, but when I add more code it does,
although I am not sure if this is related. It doesn't look good
either way.
It almost looks like it's complaining about memory being deleted
that doesn't "belong" to some pointer.
thanks,
graham
All allocations that use the OS X supplied malloc are aligned to 16
bytes. You've clearly tried to free something that isn't so it's
invalid.
By the way, the source code for OS X's malloc is available and would
have helped you figure out what that error message meant.
- Chris
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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