Skip to content

how to debug segmentation faults? #921

Answered by slayoo
brandy125 asked this question in Q&A
Discussion options

You must be logged in to vote

One way is to compile with debugging symbols (cmake -DCMAKE_BUILD_TYPE=Debug) and run using gdb (i.e. $ gdb gdl) where gdl is the executable file. Then, within gdb you type run and after the segfault occurs you can get a stack trace by typing bt. HTH. Thanks!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brandy125
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants