I wrote a C program that creates a web page using data I pull from a file and serve using Apache2.2 on FreeBSD 8.2-RELEASE. This program runs great for hours but, all of a sudden, it won't do the simplest of things. The program hangs while serving up pages that have worked for months and give a 2GB core dump. If I use gdb on the core file, the area it points to as causing the failure doesn't make any sense cause I've not touched it in months and, sometimes, years. It acts like it's in a loop cause it takes a while before I can enter anything in the console. In top, WCPU shows 18% to 40%. I can't kill it in top or with 'kill -s HUP pid'. It eventually dies on its own when the filesystem gets filled up.
messages shows it exited with signal 11 (core dumped).
This is on a box I used to have connected to the internet and did dev work but now it's only run through a router that connects to my laptop and another FreeBSD box (cause I'm in a hotel for a few weeks). It seems every other function works so I'm wanting to rule out hardware problems.
Yesterday, this program worked in the morning till about 10AM. Started failing and didn't work again until about 10PM last night. It worked this morning until 10AM and failed again. Don't go too much by the 12-hour timing but does that ring a bell with anyone?
I'm frustrated cause I don't know where to look or what to think of to solve this. I shut the system off for a few hours to see what happens then.
messages shows it exited with signal 11 (core dumped).
This is on a box I used to have connected to the internet and did dev work but now it's only run through a router that connects to my laptop and another FreeBSD box (cause I'm in a hotel for a few weeks). It seems every other function works so I'm wanting to rule out hardware problems.
Yesterday, this program worked in the morning till about 10AM. Started failing and didn't work again until about 10PM last night. It worked this morning until 10AM and failed again. Don't go too much by the 12-hour timing but does that ring a bell with anyone?
I'm frustrated cause I don't know where to look or what to think of to solve this. I shut the system off for a few hours to see what happens then.