4

I just upgraded to Sierra OS and after I load a file into gdb, set a breakpoint and attempt to run the program, I get the error "During startup program terminated with signal SIG113, Real-time event 113." Does anyone know how to fix this?

John Browning
  • 41
  • 1
  • 3

2 Answers2

2

1st Solution: by disabling SIP

  • Boot to Recovery OS by restarting your machine and holding down the CMD + R keys at startup.
  • Launch Terminal from the Utilities menu.
  • Enter the following command: csrutil disable
  • Restart OS
  • GDC is now working, happy debugging!

    What's SIP? Here
    How to re-enable SIP again? Repeat previous steps using csrutil enable
    What if I don't want to disable SIP? Continue reading..


2nd Solution: by leaving GDC

  • using Native LLDB: Just install XCode. It's available for free from the App Store. It will install all the command line tools as well.

  • using Non-Native via Brew, Ports, .. etc : It's too easy to install ex. brew install llvm --with-lldb --with-clang However you'll have to code-sign it too, so DON'T go that way!

Ahmed Ghoneim
  • 6,834
  • 9
  • 49
  • 79
  • 3
    Turning off SIP didn't fix the problem here, and I've tried it on two computers. I still get the same `During startup program terminated with signal SIG113, Real-time event 113.` error. :( – Chris Gregg Oct 27 '16 at 17:21
  • No luck with this on 10.12.4 – avh Apr 20 '17 at 23:29
1

Here's a Patched Version Compiled and tested >> Mac OS "Sierra 10.12.1 (16B2555)"

https://mega.nz/#!VkBWVJ7J!LzA51cXfWPK_o7TrNz6jU5jMaNGGmkgH-tj5kj-DIpI

i test it with Codetyphon and Lazarus works fine

to sign it https://sourceware.org/gdb/wiki/BuildingOnDarwin

On 10.12 (Sierra) or later with SIP, you need to run this: echo "set startup-with-shell off" >> ~/.gdbinit

Coldzer0
  • 38
  • 4