Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6785875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:10:45+00:00 2026-05-26T17:10:45+00:00

In Xcode 4.x I’ve edited my Run scheme to ‘Enable Guard Malloc’ since I

  • 0

In Xcode 4.x I’ve edited my Run scheme to ‘Enable Guard Malloc’ since I have a nondescript malloc error I need to track down. I’m aware I need to run in the simulator to use this feature. However, when I do so the app immediately freezes and Xcode shows me a stack trace that looks like this:

Stack trace in Xcode 4.x

I’ve googled around to find a solution, but thus far no joy. It was reported elsewhere that I should be setting an environment variable in my scheme:

DYLD_INSERT_LIBRARIES  ->  /usr/lib/libgmalloc.dylib

However this doesn’t solve the problem. I have also tried ‘lsystem’ as the value, but that didn’t work either.

Can anyone suggest a solution to this dylib issue, or perhaps recommend an alternative to ‘Enable Guard Malloc’ to identify where a malloc’d heap area is being exceeded?

UPDATE

To clarify, this is the type of error I’m dealing with:

malloc: *** error for object 0x2b4b54: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug

I’ve tried setting a symbol breakpoint of malloc_error_break, however it still breaks ‘randomly’ upon memory issues rather than at the point of exceeding an allocated region.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:10:46+00:00Added an answer on May 26, 2026 at 5:10 pm

    To help with the debugging you can set MallocStackLogging, then when your App crashes, type this in the gdb console:

    (gdb) info malloc-history 0x543216
    

    Replace 0x543216 with the address of the object that caused the crash, and you will get a much more useful stack trace and it should help you pinpoint the exact line in your code that is causing the problem.

    See this article for more detailed instructions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Xcode is throwing an error at me: malloc: * error for object 0x103f000: pointer
Xcode allows you to create automated scripts for performing repetitive tasks. What scripts have
In Xcode, I can use CMD - R to run (or CMD - Y
Xcode outputs an error when I try to import <AppKit.framework/AppKit.h> , even though the
Xcode 3.2 kind of broke the build process of my iPhone app. I need
Xcode:Run>Show>Breakpoints I've added the obligatory [NSExceptionRaise] and objc_exception_throw yet when I close the Breakpoints
xcode gives me that error: Undefined symbols for architecture i386: _OBJC_CLASS_$_MPVolumeView, referenced from: objc-class-ref
Xcode crashes on launch, and I do not have any idea why. I downloaded
Xcode build prints this error . Undefined symbols: EGViewportDimensionMake(unsigned int, unsigned int, unsigned int,
Xcode throws this error when I try to CMD+I (Profile) an app on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.