• 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
Re: A malloc error in C++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A malloc error in C++


  • Subject: Re: A malloc error in C++
  • From: Lyndsey Ferguson <email@hidden>
  • Date: Wed, 29 Aug 2007 11:20:45 -0400
  • Thread-topic: A malloc error in C++



On 8/29/07 11:15 AM, "Giacomo Monari" <email@hidden> wrote:
>>> lab3_1(1517) malloc: *** error for object 0x1804400: incorrect
>>> checksum for freed object - object was probably modified after being
>>> freed, break at szone_error to debug
>>> lab3_1(1517) malloc: *** set a breakpoint in szone_error to debug
>>>
>>> lab3_1 has exited due to signal 11 (SIGSEGV).

> Thx and sorry guys but still doesn't work. Before I forgot to say that I
> added those calls to the destructors only to see if something would have
> changed, but it didn't...
> Removing them and also adding the braces, Aaron, brings no changes... :(
> What could be?
> Giacomo

Try this:

1. Turn off "Start executable after starting debugger" in the executable (in
your Xcode project -- see attached image).
2. Click debug, the debugger will load your app.
3. Type "b szone_error".
4. Type "run"
5. When your application runs, it should break when memory is about to be
corrupted. Look at the stack crawl. This should lead you to a solution.

Good luck,
Lyndsey

--
Mr. Lyndsey D. Ferguson
Software Engineer
Nemetschek N.A., Inc.
http://www.nemetschek.net


 _______________________________________________
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

  • Follow-Ups:
    • Re: A malloc error in C++
      • From: Giacomo Monari <email@hidden>
References: 
 >Re: A malloc error in C++ (From: Giacomo Monari <email@hidden>)

  • Prev by Date: Re: Unrecognized ld flags
  • Next by Date: Re: A malloc error in C++
  • Previous by thread: Re: A malloc error in C++
  • Next by thread: Re: A malloc error in C++
  • Index(es):
    • Date
    • Thread