SIGFPE calculating epicsNAN, epicsINF

Bug #545385 reported by Matthieu Bec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Fix Released
Medium
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/epicsMath.cpp.org
30,32d29
< #ifdef NAN
< epicsShareDef float epicsNAN = NAN;
< #else
34,37d30
< #endif
< #ifdef INFINITY
< epicsShareDef float epicsINF = INFINITY;
< #else
39d31
< #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: http://www.aps.anl.gov/epics/tech-talk/2009/msg01596.php

Thanks.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.