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 6647411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:32:04+00:00 2026-05-26T00:32:04+00:00

I have this call in UIViewController-inheritor class context: + (void) smthPressed: (id) caller {

  • 0

I have this call in UIViewController-inheritor class context:

+ (void) smthPressed: (id) caller
{
    // some code here
    // ...

    startTimers();
}

startTimers declared as:

inline void startTimers()
{
    NSString * x = @""; // falls here with EXC_BAD_INSTRUCTION

    // some other codes here
}

What the HELL is going on?

P.S.:

inline void startTimers()
{
    int x = 0;

    int y = 0; // EXC_BAD_INSTRUCTION here. Stack couldn't end there!

    // ...

P.P.S.:

Documentation says: “For most non-memory access exceptions (for example, EXC_BAD_INSTRUCTION …)”, so it is NOT mem-access fault.

P.P.P.S.: arch is Standart (armv6 armv7). Nothing changes if I set Optimized (armv7).

  • 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-26T00:32:05+00:00Added an answer on May 26, 2026 at 12:32 am

    Perhaps you have corrupted your stack accidentally. Does it occur when you place the startTimers() code elsewhere in your program?

    Try using NSZombieEnabled and the static analyser to look for other places in your code you might be making memory-management errors that could lead to a write to a stack variable being invalid (overflowing arrays on the stack, bad pointers, etc).

    You could also try switching compilers, if that option is available to you, in the extremely rare case that you hit a complier bug.

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

Sidebar

Related Questions

I have this code that performs an ajax call and loads the results into
On my main page I have this jquery code which does an ajax call
I have my MainViewController which a UIViewController class, in this view I have a
In my iPhone app, I have a custom UIViewController class setup which adds some
I have this strange call stack and I am stumped to understand why. It
I have this method call I have to use... financial_document.assets.length But financial_document.assets could be
I have identified this call as a bottleneck in a high pressure function. graphics.DrawImage(smallBitmap,
I have this question: How could I call a codebehind method from jquery? I
I have this function: RegisterGlobalHotKey(Keys.F6, MOD_SHIFT | MOD_CONTROL); which call an API to register
I have an asp button with no onclick event but only onclientclick. This call

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.