I keep getting random segfaults from the following loop ( in atmos.c, function "atmosInitSystem" line ~86)
Code: Select all
for(i=0; i<MAX_ATMOS_PARTICLES; i++)
{
/* None are being used initially */
asAtmosParts[i].status = APS_INACTIVE;
}
After I changed asAtmosParts from being an array to being a pointer that I malloc; I haven't gotten any of those segfaults since.
I first thought that this was a ALSA/pulseaudio problem, but it always happens in that part of the code.
Thoughts?
I'm using Ubuntu 9.10 32bit with the latest kernel ( but it has been happening previous versions as well.)