EPICS Controls Argonne National Laboratory

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  <20222023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: [Bug 1995728] [NEW] registerRecordDeviceDriver.pl bug
From: Dirk Zimoch via Core-talk <core-talk at aps.anl.gov>
To: core-talk at aps.anl.gov
Date: Fri, 04 Nov 2022 14:06:20 -0000
Public bug reported:

In EPICS 7, when processing a dbd file with a long function name (> 24
chars), registerRecordDeviceDriver.pl generates buggy output.

With the following file test.dbd:
function(abcdefghijklmnopqrstuvwxyz0123456789)

The command perl registerRecordDeviceDriver.pl test.dbd generates code with a line break in the middle of a variable name:
epicsShareExtern reg_func pvar_func_register_func_abcdefghijklmnopqrstuvwx
    yz0123456789;

I suspect the error is in line 191 caused by the usage of wrap().

I have tested this with perl v5.16.3 and v5.26.3.

** 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/1995728

Title:
  registerRecordDeviceDriver.pl bug

Status in EPICS Base:
  New

Bug description:
  In EPICS 7, when processing a dbd file with a long function name (> 24
  chars), registerRecordDeviceDriver.pl generates buggy output.

  With the following file test.dbd:
  function(abcdefghijklmnopqrstuvwxyz0123456789)

  The command perl registerRecordDeviceDriver.pl test.dbd generates code with a line break in the middle of a variable name:
  epicsShareExtern reg_func pvar_func_register_func_abcdefghijklmnopqrstuvwx
      yz0123456789;

  I suspect the error is in line 191 caused by the usage of wrap().

  I have tested this with perl v5.16.3 and v5.26.3.

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


Replies:
[Bug 1995728] Re: registerRecordDeviceDriver.pl bug Dirk Zimoch via Core-talk
[Bug 1995728] Re: registerRecordDeviceDriver.pl bug Andrew Johnson via Core-talk

Navigate by Date:
Prev: Build completed: pva2pva 1.0.60 AppVeyor via Core-talk
Next: [Bug 1995728] Re: registerRecordDeviceDriver.pl bug Dirk Zimoch via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: Build completed: pva2pva 1.0.60 AppVeyor via Core-talk
Next: [Bug 1995728] Re: registerRecordDeviceDriver.pl bug Dirk Zimoch via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
ANJ, 04 Nov 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·