I tried to run this code [the-git-link] (https://github.com/DropIn/SequentialTextReading), but I experience a "Segmentation fault (core dumped)". Do you have any idea about this error? I am running it on Ubuntu 14.4 and the code is too big to use traditional debug methods on it like using gdb. Any idea how to solve this problem or what tools should i use to solve it knowing that there are many files and main in the project?
Asked
Active
Viewed 3,030 times
0
-
When the code breaks do you have an option to debug? Normally you can get the stack trace from the and figure out where the issue is coming from. – NathanOliver Mar 22 '16 at 16:13
-
1Why do you say that the code is too big to use gdb ? It probably is not. – nos Mar 22 '16 at 16:14
-
"the code is too big to use the traditional debug methods on it like using gdb " - seriously, that would have to be one huge project – pm100 Mar 22 '16 at 16:15
-
compile and run under gdb, gdb will tell you the lines it failing on – pm100 Mar 22 '16 at 16:15
-
well , the thing is that maybe I don't know much about the gdb but for the sake of solving the problem I read a tutorial on it , but it used the gcc with the gdb not the cmake and also I don't really know that much about the cmake too , I somehow a beginner and it's the first project that I'm trying to work on which I do it for a school project so no much experience here ....... any help is appreciated – Ahmed Boon Mar 22 '16 at 16:32
1 Answers
0
You can also load your coredump to gdb and find the root cause, after your program crashed.
You may benefit from reading How to generate core dump file in Ubuntu, and How to analyze a program's core dump file with gdb?

Community
- 1
- 1

Michal Partyka
- 49
- 4