Freebsd9.0 and the fgets directive in gcc

[ Available lists | Index of freebsd-questions | Month of Mar 2012 | Week of 21 Mar 2012 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Robert Huff <roberthuff@rcn.com>
Date
21 Mar 2012 15:33:39
Subject
Freebsd9.0 and the fgets directive in gcc
Message-ID
20329.62663.506705.612245@jerusalem.litteratus.org

In reply to
References to

[ Hide this part ]
 
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


Elapsed time: 1.425 seconds