question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'__rip' in '__darwin_arm_thread_state64 in ThirdParty glog dependency only on attached device

See original GitHub issue

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment: OS: macOS Sierra 10.12.6 Node: 8.4.0 Yarn: 1.0.0 npm: 5.3.0 Watchman: 4.7.0 Xcode: Xcode 9.0 Build version 9A235 Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed) react: 16.0.0-alpha.12 => 16.0.0-alpha.12 react-native: ^0.48.4 => 0.48.4

Steps to Reproduce

  1. react-native init Mira
  2. open Mira/ios/Mira.xcproj
  3. Select a connect iPhone 6s on iOS 11 and try to build and run

Expected Behavior

The iOS app builds on the connected iPhone 6s with iOS 11 and runs correctly

Actual Behavior

A build error in signalhandler.cc With

No member named '__rip' in '__darwin_arm_thread_state64' on the line

return (void*)context->PC_FROM_UCONTEXT;

// Returns the program counter from signal context, NULL if unknown.
void* GetPC(void* ucontext_in_void) {
#if (defined(HAVE_UCONTEXT_H) || defined(HAVE_SYS_UCONTEXT_H)) && defined(PC_FROM_UCONTEXT)
  if (ucontext_in_void != NULL) {
    ucontext_t *context = reinterpret_cast<ucontext_t *>(ucontext_in_void);
    return (void*)context->PC_FROM_UCONTEXT; // <---- build error here
  }
#endif
  return NULL;
}

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

  1. https://s3-us-west-1.amazonaws.com/maxofedenpublic/Mira.tar.gz
  2. Please attach a connected iPhone 6s with iOS 11

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:41
  • Comments:46 (5 by maintainers)

github_iconTop GitHub Comments

160reactions
thesubwaycommented, Jul 2, 2018

Thanks, works for me too. Changing return (void*)context->PC_FROM_UCONTEXT; to return NULL;

55reactions
grundmanisecommented, Jan 12, 2018

Fixed it by deleting node_modules & yarn install.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found