SIGFPE calculating epicsNAN, epicsINF

Bug #545385 reported by Matthieu Bec on 2010-03-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Andrew Johnson

Bug Description

R3.14.11 brings two new math constants epicsNAN and epicsINF. That appears to break our channel access plugin for Yorick, because the interpreter enables and is setup to catch SIGFPE.

C99 provides macros so you don't have to 'make' the value. I patched our src/libCom/osi/epicsMath.cpp. I don't guarantee this to be osi-generic and all platforms. It works for linux-x86/x86_64

diff src/libCom/osi/epicsMath.cpp src/libCom/osi/
< #ifdef NAN
< epicsShareDef float epicsNAN = NAN;
< #else
< #endif
< #ifdef INFINITY
< epicsShareDef float epicsINF = INFINITY;
< #else
< #endif

I'm not sure this is a bug or an issue with in my plugin implementation.
For ref. the original post I sent to tech-talk asking about the issue:


Andrew Johnson (anj) on 2010-03-24
tags: added: codeathon
Andrew Johnson (anj) on 2010-04-30
summary: - CA plugin SIGFPE
+ SIGFPE calculating epicsNAN, epicsINF
Changed in epics-base:
importance: Undecided → Medium
Andrew Johnson (anj) on 2010-09-23
Changed in epics-base:
assignee: nobody → Andrew Johnson (anj)
status: New → In Progress
Andrew Johnson (anj) on 2010-09-23
Changed in epics-base:
status: In Progress → Fix Committed
Andrew Johnson (anj) on 2010-11-24
Changed in epics-base:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers