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

Subject: DESC field overflow
From: "Johnson, Andrew N. via Core-talk" <core-talk at aps.anl.gov>
To: Ralph Lange <Ralph.Lange at gmx.de>, EPICS core-talk <core-talk at aps.anl.gov>
Date: Wed, 8 Oct 2025 17:00:38 +0000
Hi Ralph,

Loading this file into the softIoc

record(ai, test) {

  field(DESC, "This is a long string that will not fit into the field")

}

fails for me on EPICS versions 7.0.9, 7.0.2, 3.15.9 and 3.14.12.8; the softIoc exits immediately with an error. On 3.14.12.5 the error was shown, but the softIoc didn’t exit so presumably following commands in an st.cmd file may have been executed.

A check for the string length in dbPutString() was moved in 106fae3b back in March 2016 (pre-3.14.12.6). Previously a truncated string was copied into the field before the length was checked and the error returned by dbPutString(). Since that commit the field value isn’t set at all, it returns the error code S_dbLib_strLen immediately.

I don’t see how any overly-long DESC field value could have been loaded from a dbLoadRecords command since 3.14.12.6. Are you sure your db-file generation code hasn’t changed and triggered this problem instead?

- Andrew


-- 

Complexity comes for free, Simplicity you have to work for.



Replies:
Re: DESC field overflow Ralph Lange via Core-talk

Navigate by Date:
Prev: Build failed: epics-base base-doc-callback-h-1123 AppVeyor via Core-talk
Next: Re: DESC field overflow Ralph Lange 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  2023  2024  <20252026 
Navigate by Thread:
Prev: Build failed: epics-base base-doc-callback-h-1123 AppVeyor via Core-talk
Next: Re: DESC field overflow Ralph Lange 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  2023  2024  <20252026 
ANJ, 09 Oct 2025 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·