• 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: guard malloc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: guard malloc


  • Subject: Re: guard malloc
  • From: "Wesley Smith" <email@hidden>
  • Date: Mon, 26 May 2008 21:41:48 -0700

Sorry about the noise.  The debugger log actually gives nice messages like:

If you really wanted to allocate so much memory, launch your
executable with the environment variable MALLOC_PERMIT_INSANE_REQUESTS
set to any value to circumvent this check.
Explicitly trapping into debugger!!!

wes

On Mon, May 26, 2008 at 9:35 PM, Wesley Smith <email@hidden> wrote:
> I was unable to find docs on this, but what does it mean when Guard
> Malloc triggers a SIGTRAP on a line that looks like:
>
> m_glVertices = new Vec3[cubesize*3*5];
>
> where cubesize is quite large ( > 500,000)?  Is there a way to query
> why an error resulted?
>
> This is the tip of the stack:
> #0      0x9b5a27b8 in GMmalloc
> #1      0x90b4e5b3 in operator new
> #2      0x90b4e6a5 in operator new[]
>
>
> thanks,
> wes
>
 _______________________________________________
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

References: 
 >guard malloc (From: "Wesley Smith" <email@hidden>)

  • Prev by Date: guard malloc
  • Next by Date: Re: Memory Leak
  • Previous by thread: guard malloc
  • Next by thread: IB3 plugin for custom view, how to forbid resizing in one direction?
  • Index(es):
    • Date
    • Thread