• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
incorrect checksum for freed object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

incorrect checksum for freed object


  • Subject: incorrect checksum for freed object
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 31 Jul 2009 15:39:49 -0700

(i'm not sure if this is the right list for this question or not, as i am developing a cocoa application using IOKit. if this isn't the right list, could someone please tell me the right list. thanx.)

i'm just starting on developing a core data document base app that talks to a usb device. sometimes, but not always, i'm getting crashes when i'm either releasing my IOUSBDeviceInterface300 or my IOUSBInterfaceInterface300. the error i get on the console is:

malloc: *** error for object 0x102662970: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug


and i have set that breakpoint. the stack trace at the time is:

#0 0x83d7aa51 in malloc_error_break
#1 0x83d75ad0 in szone_error
#2 0x83cb5571 in tiny_free_list_add_ptr
#3 0x83cb28cf in szone_free
#4 0x025876ba in IOUSBDeviceClass::~IOUSBDeviceClass
#5 0x02586f0d in IOUSBIUnknown::release
#6 0x00001f1a in -[BaseUSBInterface releaseResources] at BaseUSBInterface.mm:154


in response to:
	err = (*(self.interface))->Release( self.interface);
or
	err = (*(self.device))->Release( self.device);

where interface and device are declared as follows:
@property ( assign, nonatomic) IOUSBDeviceInterface300** device;
@property ( assign, nonatomic) IOUSBInterfaceInterface300** interface;
and synthesized. i am running in 64 bit mode and have NOT declared my own iVars for these.


these errors don't happen every time and i've yet to be able to determine a pattern that causes them. i realize that this is some sort of memory corruption problem, but i'm at a loss as to how to find it. i do have NSZombieEnabled set to YES and CFZombieLevel set to 3.

can anyone one offer suggestions as to how to find this problem.

thanx,
ken
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: incorrect checksum for freed object
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: [MEET] August CocoaHeads Mac Developer Meetings
  • Next by Date: Re: Fun (or not) with NSArrayControllers and CoreData.
  • Previous by thread: [MEET] August CocoaHeads Mac Developer Meetings
  • Next by thread: Re: incorrect checksum for freed object
  • Index(es):
    • Date
    • Thread