• 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: Clang vs. gcc and random crashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clang vs. gcc and random crashes


  • Subject: Re: Clang vs. gcc and random crashes
  • From: Michael Domino <email@hidden>
  • Date: Thu, 26 Mar 2015 16:57:53 +0000
  • Thread-topic: Clang vs. gcc and random crashes

Absolutely right, I had to turn off guard malloc, and this problem went away.

On Mar 26, 2015, at 12:18 PM, Jens Alfke <email@hidden> wrote:


On Mar 26, 2015, at 9:04 AM, Michael Domino <email@hidden> wrote:

This is a 32-bit app, running on 10.10.2. Why would this be happening? Any ideas? Thanks in advance!

GuardMalloc[Identity Finder-61163]: Failed to VM allocate 16384 bytes
GuardMalloc[Identity Finder-61163]: Explicitly trapping into debugger!!!

It ran out of address space, i.e. allocated 2GB* of memory. This is entirely possible when using GuardMalloc because it puts every heap allocation on a separate 4k-byte memory page, which tends to hugely increase the amount of memory allocated.

I think you’ll need to either turn off GuardMalloc, or run your app as 64-bit.

—Jens

* IIRC that’s how much address space is available to a 32-bit process. Or it might be 3GB. The rest of the full 4GB is reserved by the kernel.

 _______________________________________________
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: Clang vs. gcc and random crashes
      • From: Steve Christensen <email@hidden>
References: 
 >Clang vs. gcc and random crashes (From: Michael Domino <email@hidden>)
 >Re: Clang vs. gcc and random crashes (From: Quincey Morris <email@hidden>)
 >Re: Clang vs. gcc and random crashes (From: Michael Domino <email@hidden>)
 >Re: Clang vs. gcc and random crashes (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Clang vs. gcc and random crashes
  • Next by Date: Re: Clang vs. gcc and random crashes
  • Previous by thread: Re: Clang vs. gcc and random crashes
  • Next by thread: Re: Clang vs. gcc and random crashes
  • Index(es):
    • Date
    • Thread