Freebsd9.0 and the fgets directive in gcc
roberthuff at rcn.com
Wed Mar 21 15:33:40 UTC 2012
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.
Have you built this program with debugging turned on?
What does the core dump say?
More information about the freebsd-questions