EXC_BAD_ACCESS at main method declaration
问题 I'm trying to get some old C++ code up and running. I've gotten it to compile without error, but it immediately segfaults when I run, without entering main. When I use gdb to find out where things are going wrong, I find the following: (gdb) run Starting program: /Users/dreens/Documents/OH/extrabuncher2/ParaOHSB Reading symbols for shared libraries +++. done Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x00007fff5636581c