Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2012 11:33:27 -0400
From:      Robert Huff <roberthuff@rcn.com>
To:        Martin McCormick <martin@dc.cis.okstate.edu>
Cc:        freebsd-questions@freebsd.org
Subject:   Freebsd9.0 and the fgets directive in gcc
Message-ID:  <20329.62663.506705.612245@jerusalem.litteratus.org>
In-Reply-To: <201203211450.q2LEoPqM078354@dc.cis.okstate.edu>
References:  <201203211450.q2LEoPqM078354@dc.cis.okstate.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

Martin McCormick writes:

>  I've got some code which I wrote about 6 or 8 years ago that
>  apparently doesn't get along right now with FreeBSD9.0. In the
>  problem code, there is a loop that uses fgets to read a line
>  from a file. It runs properly until the 2708TH iteration and
>  then it dumps core with a segmentation fault.

	<deletia>
	Have you built this program with debugging turned on?
	What does the core dump say?

	Respectfully,


				Robert Huff



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20329.62663.506705.612245>