Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm debugging a program using gdb.

gdb prints the following:

Program received signal SIGSEGV, Segmentation fault.
fseek (fp=0x2e747874, offset=0, whence=2) at fseek.c:40
40  fseek.c: No such file or directory.
    in fseek.c

This actually gave me a pretty good idea where my error is, I'm just curios to access the code of fseek.c. Not able to do so is driving me crazy.

Please tell me how to do it?

share|improve this question
Does this program have a name? Does it have source? – Ignacio Vazquez-Abrams Sep 22 '12 at 13:30
fseek() is built-in C function. I'm guessing fseek.c:40 means that some error occurs on the 40-th line of code of that function. If this is so how to view the code behind fseek.c? – DNikolov Sep 22 '12 at 13:40
fseek() is a C function. fseek.c can be anything. – Ignacio Vazquez-Abrams Sep 22 '12 at 13:43
OK so what fseek.c is when debugging a program with gdb? – DNikolov Sep 22 '12 at 13:54
A C source file. But there isn't enough context to tell whose. – Ignacio Vazquez-Abrams Sep 22 '12 at 13:57

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.