EPICS Home

Experimental Physics and Industrial Control System


 
2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: [Bug 2031563] [NEW] json input link with calc->expr->pva not working
From: Niko Kivel via Core-talk <core-talk at aps.anl.gov>
To: core-talk at aps.anl.gov
Date: Wed, 16 Aug 2023 19:03:55 -0000
Public bug reported:

The database below fails with
```
pvaLink void {anonymous}::pvaOpenLink(DBLINK*) fails MTEST-JSON:inp_json_calc: DBLINK* corrupt
```

system details:
linux x86_64
EPICS R7.0.7-DEV, as well as R7.0.7

database
```
record(ai, "MTEST-JSON:A1") {
    field(VAL,  1)
    field(PINI, 1)
}

record(ai, "MTEST-JSON:inp_json_calc") {
    field(INP,
        {
            "calc": {
                "expr": "A|B|C",
                "args": [
                    {
                        "const": 0
                    },
                    0,
                    {
                        "pva": {
                            "pv": "MTEST-JSON:A1",
                            "field":"VAL",
                        }
                    }
                ]
            }
        }
    )
}
```

** Affects: epics-base
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of EPICS
Core Developers, which is subscribed to EPICS Base.
Matching subscriptions: epics-core-list-subscription
https://bugs.launchpad.net/bugs/2031563

Title:
  json input link with calc->expr->pva not working

Status in EPICS Base:
  New

Bug description:
  The database below fails with
  ```
  pvaLink void {anonymous}::pvaOpenLink(DBLINK*) fails MTEST-JSON:inp_json_calc: DBLINK* corrupt
  ```

  system details:
  linux x86_64
  EPICS R7.0.7-DEV, as well as R7.0.7

  database
  ```
  record(ai, "MTEST-JSON:A1") {
      field(VAL,  1)
      field(PINI, 1)
  }

  record(ai, "MTEST-JSON:inp_json_calc") {
      field(INP,
          {
              "calc": {
                  "expr": "A|B|C",
                  "args": [
                      {
                          "const": 0
                      },
                      0,
                      {
                          "pva": {
                              "pv": "MTEST-JSON:A1",
                              "field":"VAL",
                          }
                      }
                  ]
              }
          }
      )
  }
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/epics-base/+bug/2031563/+subscriptions


Replies:
[Bug 2031563] Re: json input link with calc->expr->pva not working Niko Kivel via Core-talk
[Bug 2031563] Re: json input link with calc->expr->pva not working Niko Kivel via Core-talk
[Bug 2031563] Re: json input link with calc->expr->pva not working Dirk Zimoch via Core-talk
[Bug 2031563] Re: json input link with calc->expr->pva not working Niko Kivel via Core-talk
[Bug 2031563] Re: json input link with calc->expr->pva not working Niko Kivel via Core-talk
[Bug 2031563] Re: json input link with calc->expr->pva not working mdavidsaver via Core-talk
[Bug 2031563] Re: json input link with calc->expr->pva not working mdavidsaver via Core-talk

Navigate by Date:
Prev: Build failed: EPICS Base 7 base-7.0-986 AppVeyor via Core-talk
Next: [Bug 2031563] Re: json input link with calc->expr->pva not working Niko Kivel via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: Build failed: EPICS Base 7 base-7.0-986 AppVeyor via Core-talk
Next: [Bug 2031563] Re: json input link with calc->expr->pva not working Niko Kivel via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024