SIGFPE calculating epicsNAN, epicsINF

Reported by Matthieu Bec on 2010-03-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
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.

Related branches

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