c++ - gdb reports Segmentation fault - how to know where? -


i'm running program under gdb, debuging information , without optimizations. gdb reports:

program received signal sigsegv, segmentation fault. [switching thread 0x7fffeffff700 (lwp 8875)] 0x0000001000000001 in ?? ()

from message not understand problem happened. possible extract stacktrace / problem file , line number?

to point code segmentation fault has happened, should use backtrace (bt) command.

there wide range of commands available inside gdb should explored make debug code efficiently possible.

e.g. record code flow , replay in reverse. explore data types have breakpoints etc.


Comments

Popular posts from this blog

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -