• 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
*** malloc[]: error for object: Double free: How to Debug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*** malloc[]: error for object: Double free: How to Debug?


  • Subject: *** malloc[]: error for object: Double free: How to Debug?
  • From: Philip Mötteli <email@hidden>
  • Date: Wed, 14 Jan 2004 00:48:01 +0100

Hi


I have a program, that fetches in regular intervals (NSTimer) some data from the Internet (NSUrl).
Everytime, this happens, I have this error message:


*** malloc[12604]: error for object 0x16e2e50: Double free


I try to debug it by setting a breakpoint on fprintf(), printf and on [NSException raise]. But no breakpoint is ever hit:


(gdb) info b
Num Type           Disp Enb Address    What
1   breakpoint     keep y   0x90a5c9d8 <-[NSException raise]>
2   breakpoint     keep y   0x2d22d59c in printf at printf-fbsd.c:52
3   breakpoint     keep y   0x2d1ffd14 in fprintf at fprintf-fbsd.c:52


If I try to step into the methods called, the program crashes with a bus error somewhere in NSUrl.


Is there a way, to debug this problem?


Thanks! Phil _______________________________________________ xcode-users mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: *** malloc[]: error for object: Double free: How to Debug?
      • From: Jim Ingham <email@hidden>
  • Prev by Date: Re: Debugger doesn't stop in template method?
  • Next by Date: Re: *** malloc[]: error for object: Double free: How to Debug?
  • Previous by thread: Re: xcode and Perforce
  • Next by thread: Re: *** malloc[]: error for object: Double free: How to Debug?
  • Index(es):
    • Date
    • Thread