1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 <2020> 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 <2020> 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: tsub record: assert(prt->no_fields == 558) fails |
From: | John Dobbins via Tech-talk <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Wed, 17 Jun 2020 16:07:32 +0000 |
I find that the tpmac-master from github has two different tsubRecord.dbd
./pmacApp/src/tsubRecord.dbd
./pmacApp/tsubSrc/tsubRecord.dbd
differing by the addition of the STYP field.
Is this intentional?
John
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of John Dobbins via Tech-talk <tech-talk at aps.anl.gov>
Sent: Tuesday, June 16, 2020 12:03 PM To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: tsub record: assert(prt->no_fields == 558) fails
All,
I am trying to add the tsub record from TPMAC to an IOC.
Everything builds without trouble but when I run the IOC I get an assert failure for number of fields in the tsub record, see console output below.
This is linux-x86_64, using base 7.0.3, asyn-R4-38, motor-R7-1
Downloaded tpmac-master from
BTW, I did poke around enough to realize I didn't know if 'prt->no_fields' is supposed
to be the number of fields or the index of the last field. If I count the tsub record fields in my jbiTest.dbd I get 559.
Hoping you can help me figure out where I went astray.
Regards,
John Dobbins
Research Support Specialist
Cornell High Energy Synchrotron Source
Cornell University
www.chess.cornell.edu
jad22@lnx615 $ ../../bin/linux-x86_64/jbiTest st.cmd
#!../../bin/linux-x86_64/jbiTest
< envPaths
epicsEnvSet("IOC","iocjbiTest")
epicsEnvSet("TOP","/nfs/chess/user/jad22/JBluIce/epics/jbiTest")
epicsEnvSet("TPMAC","/nfs/chess/user/jad22/epics/support/tpmac")
epicsEnvSet("EPICS_BASE","/nfs/chess/epics/release/base/base-7.0.2")
## Register all support components
dbLoadDatabase("../../dbd/jbiTest.dbd",0,0)
jbiTest_registerRecordDeviceDriver(pdbbase)
A call to 'assert(prt->no_fields == 558)'
by thread '_main_' failed in ../O.Common/tsubRecord.h line 1145.
Dumping a stack trace of thread '_main_':
[ 0x51447b]: ../../bin/linux-x86_64/jbiTest(epicsStackTrace+0x4b)
[ 0x50ff8a]: ../../bin/linux-x86_64/jbiTest(epicsAssert+0x3a)
[ 0x439c0b]: ../../bin/linux-x86_64/jbiTest(tsubRecordSizeOffset+0x3b)
[ 0x4bcae8]: ../../bin/linux-x86_64/jbiTest(registerRecordTypes+0xc8)
[ 0x439880]: ../../bin/linux-x86_64/jbiTest(jbiTest_registerRecordDeviceDriver+0x60)
[ 0x5026b5]: ../../bin/linux-x86_64/jbiTest(iocshBody+0xb15)
[ 0x439552]: ../../bin/linux-x86_64/jbiTest(main+0x12)
[ 0x7f0bc7507545]: /lib64/libc.so.6(__libc_start_main+0xf5)
[ 0x439752]: ../../bin/linux-x86_64/jbiTest(_start+0x29)
EPICS Release EPICS R7.0.2.
Local time is 2020-06-16 11:47:22.592146284 EDT
Please E-mail this message to the author or to tech-talk at aps.anl.gov
|