Re: Problem Debugging C Program



John wrote:
) I replaced my printf with a simple printf("hello world"). And it still
) trips the SIGSEGV at that point.
)
) Any other suggestions?

You may have trashed the stack, or you made a mistake in some file I/O.
(Such as writing to a closed file handle)
Hard to tell without looking at the source.

Check all your memory allocations and deallocations, and also make sure to
add error checking at all your file operations, especially the open().


SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
.



Relevant Pages

  • Re: Problem Debugging C Program
    ... I am having some problems debugging my program. ... When I execute the printf, I get a SIGSEGV. ... You all think I'm paranoid, ...
    (comp.programming)
  • Re: How to measure .045 inch?
    ... If the OP is so paranoid about the gap that he won't risk driving to town ... ... are, I don't make needless trips, either, plus there's simply the ...
    (alt.home.repair)