|
I have a RT interrupt-driven thread, running at
10 kHz, using floating-point operations but no routines from the math.h. The
pthread_setfp_np function is used.
Everything workes well until the X-Server (Xfree
3.6, RTLinux 3.0, Linux-Kernel 2.18) begins to draw windows. Then some of my
double-variables mutates to something that is not 0.0, not smaler then 0.0 and
not bigger than 0.0.
It's obviosly that this effect depends on the work of the X-Server. There are no problems at console. At X, as long as no windows are drawed or moved, nothing does happen for minutes or hours. But if new windows are drawed, moved, or restrored, within a few seconds (0-5 seconds) one of my double-Variables mutates (to NaN ??). I can't locate where in the code the mutation happens. It seems to be accidental. But I can exacly locate where the mutated values cause the crash of my rt-thread an the rest of the system: FOutN += 0.1 * OutN. Until this Line calculating with an mutated variable causes no problems (beside the useless of the results). Can anybody help?
Stef. Heyd
|
