Hello,
I am using fedora 1, and I was trying to find a FPE in my program. So I used :
#define _GNU_SOURCE #include <fenv.h> fesetenv (FE_NOMASK_ENV);
But when I tried to run my program I received:
Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1084746656 (LWP 13692)]
0x0090afd3 in _XcmsLRGB_InitScrnDefault () from /usr/X11R6/lib/libX11.so.6
(gdb) bt
#0 0x0090afd3 in _XcmsLRGB_InitScrnDefault () from /usr/X11R6/lib/libX11.so.6
#1 0x0090946f in _XcmsInitScrnInfo () from /usr/X11R6/lib/libX11.so.6
#2 0x0090677c in XcmsDefaultCCC () from /usr/X11R6/lib/libX11.so.6
#3 0x009065a6 in XcmsCreateCCC () from /usr/X11R6/lib/libX11.so.6
#4 0x00906d16 in XcmsFreeCCC () from /usr/X11R6/lib/libX11.so.6
#5 0x00906f88 in XcmsCCCOfColormap () from /usr/X11R6/lib/libX11.so.6
#6 0x008db026 in XAllocNamedColor () from /usr/X11R6/lib/libX11.so.6
#7 0x00ed81fb in TkpGetColor (tkwin=0x8cca610, name=0x8c34aa0 "Black") ...
Could someone check they can reproduce on their fedora system ? If possible is this fixed in the libX11 shipped with fedora2 ? Or else is there a way so that FPE doesn't affect shared library (let's dream !)
Thanks a bunch Mathieu