• 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
X-Code question....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

X-Code question....


  • Subject: X-Code question....
  • From: John Draper <email@hidden>
  • Date: Wed, 30 Nov 2005 20:52:22 -0800

Hi,

On X-Code 1.5,  when in the source debugger,  then press "Restart" to
restart the program again,  what happens to allocated space?   Is the
program's allocated space freed before it actually starts,  or will
allocated space stick around.

From within my thread,  I'm calling some socket calls like so...

int nTimeOut = 5000; // 5s Time out
setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, (char*)&nTimeOut, sizeof(nTimeOut));


But right after stepping past this,  the gdb window displays...

*** malloc[2193]: Deallocation of a pointer not malloced: 0x38000000; 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
*** malloc[2193]: Deallocation of a pointer not malloced: 0x48000010; 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
*** malloc[2193]: Deallocation of a pointer not malloced: 0x805e0178; 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


I get about 500 of these lines.... Is there something within setsockopt that is causing this,
or is something else the culprit?


John
_______________________________________________
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: X-Code question....
      • From: Eric Albert <email@hidden>
  • Prev by Date: Breakpoints that won't stop.
  • Next by Date: Re: X-Code question....
  • Previous by thread: Breakpoints that won't stop.
  • Next by thread: Re: X-Code question....
  • Index(es):
    • Date
    • Thread