Re: Problem Debugging C Program
- From: CBFalconer <cbfalconer@xxxxxxxxx>
- Date: Tue, 28 Aug 2007 17:39:38 -0400
John Hanley wrote:
.... snip ...
I have a linked list. I am reading in data from a text file, storing the
data in a linked list, and printing out the linked list.
I step through the program with GDB/DDD and everything seems to get
parsed and stored correctly. Even when I print out my linked list, just
before my printf statement I check the values in my list node and the
values are fine. When I execute the printf, I get a SIGSEGV. I did a
'where' in GDB and got this:
I am not sure what argv has to do with anything. Does anyone have any
suggestions as to where I can start looking for this problem?
Insufficient information. Give complete code. You have made an
error somewhere. Check the list is always properly terminated,
etc.
--
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
- Problem Debugging C Program
- Prev by Date: Re: Key-press detection
- Next by Date: Re: Problem Debugging C Program
- Previous by thread: Re: Problem Debugging C Program
- Index(es):
Relevant Pages
|