• 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: advanced debugging?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: advanced debugging?


  • Subject: Re: advanced debugging?
  • From: Alex Hall <email@hidden>
  • Date: Wed, 14 Oct 2015 22:08:49 -0400

Thanks, everyone. Now I know how to use symbolic breakpoints and when to do so, and that the stack trace appears in the debug table. I even discovered that the editor shows the specifics of whatever item in the trace you focus on, not that I have the first clue what all that means. :)

Unfortunately this didn't reveal much of anything that I can tell. It goes straight from
5 Array.append<A>(A) -> (),  
to
0 swift_slowAlloc,  
and that's it. Well, there's more before that, but nothing after. I guess I was hoping for a line number in a specific file, but maybe there's no way to get that specific? Or am I looking at the wrong stack trace?
On Oct 14, 2015, at 12:00, Jens Alfke <email@hidden> wrote:


On Oct 14, 2015, at 5:59 AM, Alex Hall <email@hidden> wrote:

Cinnamon(1775,0x10086b000) malloc: *** mach_vm_map(size=72018011619328) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

FYI, the error here is that something called malloc with a size of 0x418000000000, which is obviously bogus. Hopefully the reason will be clear once you can examine the backtrace. Most likely something computed the size based on a value in a garbage (uninitialized or overwritten) variable.

—Jens


--
Have a great day,
Alex Hall
email@hidden

 _______________________________________________
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: advanced debugging?
      • From: Jens Alfke <email@hidden>
References: 
 >advanced debugging? (From: Alex Hall <email@hidden>)
 >Re: advanced debugging? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: 'Back button' title for navigation item not sticking
  • Next by Date: Re: advanced debugging?
  • Previous by thread: Re: advanced debugging?
  • Next by thread: Re: advanced debugging?
  • Index(es):
    • Date
    • Thread