I'm working on a single C file project. Here is the make command:
gcc -std=c99 -ggdb picaca.c -o aca -lm
It has segmentation fault. I used gdb to backtrace the segmentation, but it could not find debugging information:
Program received signal SIGSEGV, Segmentation fault.
0x0000000200419a77 in ?? ()
I double checked to have -g in gcc command, and set ulimit to unlimited. How do I fix this error?
asked Jun 28, 2016 at 3:56
Dzung Nguyen
3,95410 gold badges53 silver badges93 bronze badges
1 Answer 1
Do you have core files enabled? Try 'ulimit -c unlimited' on the command line if you don't see a core file in the execution directory.
Sign up to request clarification or add additional context in comments.
??is that you're at an invalid address due to, e.g, stack corruption. What doesbtsay and what happens if you typeb main- does it know where main is?