errRawCopy formats S_dbLib_badField as "Error (512,512)"

Bug #1907077 reported by Ivo Hanak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Status tracked in 7.0
7.0
Fix Released
Medium
Andrew Johnson

Bug Description

Problem:
errRawCopy formats S_dbLib_badField as "Error (512,512)" while it should format it as "Error (512,11)".

Scenario:
1) Create a DB with the following record:
record(lsi, "lsiRec")
{
    field(SIZV, "256")
    field(VAL, "initial value")
}
2) While loading the DB, EPICS will print the following error:
Can't set "lsiRec.VAL" to "initial value" Error (512,512)

Potential Cause:
Line 135, libcom/src/error/errSymLib.c:
epicsUInt16 modnum = (statusToDecode >>= 16) & 0xffff;

Solution:
Replace 135, libcom/src/error/errSymLib.c with:
epicsUInt16 modnum = (statusToDecode >> 16) & 0xffff;

Severity:
This problem makes troubleshooting EPICS DB issues harder.

Ivo Hanak (hanak123)
description: updated
description: updated
Ivo Hanak (hanak123)
description: updated
description: updated
Revision history for this message
Andrew Johnson (anj) wrote :

My mistake, thanks for pointing this out with the fix, which I will apply.

Revision history for this message
Ivo Hanak (hanak123) wrote :

I am glad I was able to help.

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.