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

  • Home
  • SEARCH
  • 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 4257306
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:28:22+00:00 2026-05-21T05:28:22+00:00

I have an iOS app with the following (selected) build settings in XCode 4.0.1:

  • 0

I have an iOS app with the following (selected) build settings in XCode 4.0.1:

  • Architecture = Standard (armv6 armv7)
  • Base SDK = Latest iOS (iOS 4.3)
  • iOS Deployment Target = iOS3.1
  • Other linker flags = -lxml2 -weak-library /usr/lib/libSystem.B.dylib

Under Targets/Build Phases, I have libSystem.B.dylib as Optional (Link Binary With Libraries).

On a 1st gen iPod Touch, I’m getting the following results:

  1. Debug Build, C/C++ Compiler Version = LLVM Compiler 2.0, all OK
  2. Ad Hoc Release Build, C/C++ Compiler Version = GCC 4.2, all OK
  3. Ad Hoc Release Build, C/C++ Compiler Version = LLVM GCC 4.2, all OK
  4. Ad Hoc Release Build, C/C++ Compiler Version = LLVM Compiler 2.0, crash a few seconds after starting.

In case 4., the crash report looks like this:

Incident Identifier: 10B8B9C5-0FA5-4C83-AB13-4C3F59D5962D
CrashReporter Key:   29f7901a33e9b055c9034cd051902ea0c87e61f6
Process:         TPE [1484]
Path:            /var/mobile/Applications/4FA4C8CA-DB5D-4096-8458-C76382E68D02/TPE.app/TPE
Identifier:      TPE
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2011-04-09 17:56:58.188 +1000
OS Version:      iPhone OS 3.1.3 (7E18)
Report Version:  104

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000
Crashed Thread:  0

Thread 0 Crashed:
0   libSystem.B.dylib               0000000000 0 + 0

Thread 1:
0   libSystem.B.dylib               0x00001488 mach_msg_trap + 20
1   libSystem.B.dylib               0x00004064 mach_msg + 60
etc.

The crash happens after a number of routines in my code have executed (I can see console output confirming it).

Does anyone have any ideas what would cause this to work under GCC4.2, but crash under LLVM2?

  • 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-21T05:28:22+00:00Added an answer on May 21, 2026 at 5:28 am

    It’s just a wild guess, but there was a compiler bug recently in llvm2 that made our app crash the same way. It only happened in release mode with full optimization and only on older devices (probably a specific processor). We switched back to gcc and everything was fine again. Apple updated their compiler in mean time which “fixes bugs for iOS”, but we didn’t test it yet.

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

Sidebar

Related Questions

So I have just managed to build a timer on my iOS app I'm
I've upgraded the iOS SDK to the newly released 4.1 and now I have
I have a tabbar-based iOS app with two tabs. When I tab into the
I need to load localized images in my iOS app, but also have to
I am developing an iOS application, and trying to zip the file I have
Have you managed to get Aptana Studio debugging to work? I tried following this,
I'm writing an iOS app which needs to generate and animate individual text characters
What is a good way to handle iOS 4 app termination when using an
I'm making an iOS app - real-time game, wanna use UDP protocol. I'm searching
I released an iOS app in the Apple App Store some weeks ago and

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.