Alterscape
Junior Member
Offline
Posts: 64
NY
Re: How to trace a memory leak?
Reply #3 - Nov 3rd , 2007, 5:38pm
I am indeed on OS X, and I've been thinking that I need to rebuild for Eclipse anyway, so I can build an app that'll run without the P5 GUI installed. I'll give this a try over the next several days and report back! (For right now, one further question: When I leave my sketch running and walk away, after some indeterminant period of time, it errors with the following error: java(515,0xa000ed88) malloc: *** Deallocation of a pointer not malloced: 0xffffffff; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug java(515,0x183b200) malloc: *** error for object 0xb60f120: double free java(515,0x183b200) malloc: *** set a breakpoint in szone_error to debug java(515,0xa000ed88) malloc: *** Deallocation of a pointer not malloced: 0xffffffff; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug java(515,0x183b200) malloc: *** Deallocation of a pointer not malloced: 0xb6095f0; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug java(515,0xa000ed88) malloc: *** error for object 0x3338a0: double free java(515,0xa000ed88) malloc: *** set a breakpoint in szone_error to debug java(515,0xa000ed88) malloc: *** Deallocation of a pointer not malloced: 0xffffffff; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug Any idea what would cause this? I have to assume it's in a library (I'm only using ControlP5 in this application) or the P5 core, because I'm not directly calling malloc() or free() in my code..