alecjacobson/computer-graphics-bounding-volume-hierarchy

Can't use gdb

Closed this issue · 1 comments

Environment:
Device: MacBook Pro (Mid 2015)
OS: macOS Big Sur Version 11.5.2
Processor: 2.2 GHz Quad-Core Intel Core i7
Memory: 16 GB 1600 MHz DDR3
Graphics: Intel Iris PRo 1536 MB

Motivation:
I got a segmentation fault when runnning cd build-release && ./rays ../data/rubber-ducky.obj. I want to use gdb to debug.

Current Behaviour:

Here are the attempts I made to debug, which all resulted in errors.

  1. In release mode

Screen Shot 2022-02-07 at 10 17 53 AM

  1. In debug mode

Screen Shot 2022-02-07 at 10 18 17 AM

  1. In debug mode with sudo

Screen Shot 2022-02-07 at 10 20 23 AM

Questions:

Am I doing something wrong in terms of setup? With no. 3 mentioning that "this version of macOS has System Integrity Protection", will I be able to run this?

If you're on a mac, use lldb instead. It has the same features as gdb but without these annoying code signing issues.