This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Newbie lost with a segmentation fault
- To: help-gcc at gnu dot org
- Subject: Newbie lost with a segmentation fault
- From: John Soltow <jasoltow at erols dot com>
- Date: Wed, 27 Oct 1999 21:51:49 -0400
- Newsgroups: gnu.gcc.help
- Xref: wodc7nx0 gnu.gcc.help:1625
I'm in the process of teaching myself C through "The C Programming
Language" (Brian Kernighan & Dennis Ritchie) and
am having problem with a piece of code. The code compiles ok (using GCC
under Linux), but segmentation faults when run.
I'm not as concerned about what is wrong with the code (for the
purpose of this message) as I am with how to go about finding the
problem when I get a seg fault/core dump. In this case, everything in
the code looks fine. I know from reading elsewhere in Usenet that the
core file can be used as a troubleshooting aid in finding the problem in
the code. Can someone point me to the documentation that explains how
to do that?
If it matters, I'm running gcc version egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release)
Thanks,
John Soltow