Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
If you are using Ubuntu, why would the error relate to macOS? Do you get the SIGSEV only when running the program inside gdb, or does it also occur when running the program directly (i.e. ./a.out)?
./a.out
)?