How to debug a segmentation fault inside a large C #define?
Here’s how you can debug a lengthy #define. You will need to know a full object build string in your build tool (VERBOSE=1 make if you’re using cmake), and install GNU indent.
Then:
cc -E file.c | grep -v '^#' | indent > out mv out file.c make # rebuild your project with the new file
Now it’s easy to see what part of a macro is causing the problem.