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

Re: malloc was optimized out


  • Subject: Re: malloc was optimized out
  • From: Roland King <email@hidden>
  • Date: Tue, 05 Jul 2016 14:35:23 +0800

> On 5 Jul 2016, at 14:25, Dmitry Markman <email@hidden> wrote:
>
> you’re right
>
> our problem isn’t clang malloc optimization
>
> it looks like it’s more related to memory overcommitment
>

Perhaps - how much memory are you actually using at any one time? Some gross testing with top before the crash might show you if you are actually running out of physical ram. If you are then there may be a difference in the way the memory you’ve requested is later allocated to physical ram between the various OSes.

> unfortunately we didn’t see any dialog you described, application just crashed

Do you have a crash log? Should be one somewhere, Xcode can find them, sometimes. Your best next step is to find that and see what it’s telling you about the crash.

>
> what was confusing that debug build isn’t failing, only release build of our library crashes application

Perhaps you have a memory smashing bug which only shows up in release mode. clang compiles differently so it can uncover things gcc doesn’t, and vice-versa.



 _______________________________________________
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: 
 >Re: malloc was optimized out (From: Dmitry Markman <email@hidden>)
 >Re: malloc was optimized out (From: Roland King <email@hidden>)
 >Re: malloc was optimized out (From: Dmitry Markman <email@hidden>)
 >Re: malloc was optimized out (From: Roland King <email@hidden>)
 >Re: malloc was optimized out (From: Jens Alfke <email@hidden>)
 >Re: malloc was optimized out (From: Dmitry Markman <email@hidden>)
 >Re: malloc was optimized out (From: David Duncan <email@hidden>)
 >Re: malloc was optimized out (From: Dmitry Markman <email@hidden>)

  • Prev by Date: Re: malloc was optimized out
  • Next by Date: Re: malloc was optimized out
  • Previous by thread: Re: malloc was optimized out
  • Next by thread: Re: malloc was optimized out
  • Index(es):
    • Date
    • Thread