Re: Problem Debugging C Program
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Tue, 28 Aug 2007 17:44:13 -0400
John Hanley wrote:
Willem wrote:
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().
Sounds good. In the meantime, here is the code if you have the
time to take a peek at it.
Much too long. Cut it to a complete compilable beast of no more
than 200 lines and publish that, together with the input and
output. You'll probably find the problem yourself by doing this.
--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>
--
Posted via a free Usenet account from http://www.teranews.com
.
- References:
- Problem Debugging C Program
- From: John Hanley
- Re: Problem Debugging C Program
- From: Willem
- Re: Problem Debugging C Program
- From: John Hanley
- Re: Problem Debugging C Program
- From: Willem
- Re: Problem Debugging C Program
- From: John Hanley
- Problem Debugging C Program
- Prev by Date: Re: Problem Debugging C Program
- Next by Date: Re: Problem Debugging C Program
- Previous by thread: Re: Problem Debugging C Program
- Next by thread: Re: Problem Debugging C Program
- Index(es):
Relevant Pages
|