• 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
The bug where terminal and xcode ran "different"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The bug where terminal and xcode ran "different"


  • Subject: The bug where terminal and xcode ran "different"
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Sat, 10 Feb 2007 21:12:30 +0000

I finally figured out the bug.

Xcode was using a different kind of malloc that would fill my data with certain values that somehow allowed my code to work properly.

Running my app from the terminal used a different version of malloc that used some garbage values.

Obviously, this is an error in my app. A classic memory management error :( Shame, I really hate those things. But they are unavoidable when you are writing high performance stuff, because in these cases you can't rely on vectors or other easy stuff to "do the right thing", speedwise.

Anyhow, I did solve this problem. The answer to my question was that Xcode was linking to a different version of malloc.

No bug in Xcode, just a bug in my code that the terminal (strangely) was better at uncovering.
_______________________________________________
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: The bug where terminal and xcode ran "different"
      • From: Chris Espinosa <email@hidden>
    • Re: The bug where terminal and xcode ran "different"
      • From: Rick Altherr <email@hidden>
  • Prev by Date: Re: Target dependencies vs. configurations
  • Next by Date: Re: The bug where terminal and xcode ran "different"
  • Previous by thread: Re: Version.plist preprocessing
  • Next by thread: Re: The bug where terminal and xcode ran "different"
  • Index(es):
    • Date
    • Thread