Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I ./tata I get segmentation fault.(core dumped) So I figure I need to debug the error, but I couldn't get where the line of errors are. Therefore, I need some guidelines from experienced guys to guide me.. Thank you..

enter image description here

share|improve this question

1 Answer 1

gdb is good for debugging programs that have debug information. I don't know what tata is. If you compile it yourself you have to tell the compiler and/or the linker to include debug info in the executable. Otherwise the executable file doesn't have any knowledge about "lines". If you don't have access to the source code of tata, bad luck.

share|improve this answer
    
I see.. I did not compile the file tata. But it was a security challenge thing. Is there anyway to access the source code? Or how to include debug info in the executable? I tried open with gedit, and others compiler programs, but all I saw was alien words.. –  Bubitata Jun 23 '13 at 18:39
    
compiling means translating from source code to machine code. debug info means "which point in machine code belong to which line in source code". machine code knows nothing about source code lines, except if you explicitly say so at compile time. since I don't know what tata is I don't know how to get its source code. –  user829755 Jun 23 '13 at 18:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.