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

Subject: Latest EPICS 7 snapshot causes IOC crash
From: "Williams Jr., Ernest L." <[email protected]>
To: EPICS core-talk <[email protected]>
Cc: "Straumann, Till" <[email protected]>, "Kim, Kukhee" <[email protected]>
Date: Tue, 5 Jun 2018 18:58:31 +0000

Hi everyone,


I am using the latest EPICS7 snapshot as of last night:


To synch up I did the following in my EPICS TOP directory:

(1)   git pull
(2)   .ci/checkout-modules.sh


==================================================================

ernesto@aird-pc90626  (core/master) $ pwd
/afs/slac/g/lcls/epics/base/master-base-7.0
ernesto@aird-pc90626  (core/master) $ git branch
* core/master
ernesto@aird-pc90626  (core/master) $ git describe --tags
R7.0.1.1-93-g2797233
===================================================================

Then I used  makeBaseApp.pl to create a test IOC application
makeBaseApp.pl -t example Saturn
makeBaseApp.pl  -i -t example sioc-b34-bl01

My EPICS_HOST_ARCH=linux-x86_64  (RHEL6)

When executing the IOC 
ernesto@aird-pc90626  $ ulimit -c unlimited
ernesto@aird-pc90626  $ ./st.cmd
#!../../bin/linux-x86_64/Saturn
< envPaths
epicsEnvSet("IOC","sioc-b34-bl01")
epicsEnvSet("TOP","/afs/slac.stanford.edu/g/lcls/vol8/epics/iocTop/users/ernesto/gitSandBox/epicsV4/Saturn")
epicsEnvSet("EPICS_BASE","/afs/slac/g/lcls/epics/base/master-base-7.0")
cd "/afs/slac.stanford.edu/g/lcls/vol8/epics/iocTop/users/ernesto/gitSandBox/epicsV4/Saturn"
## Register all support components
dbLoadDatabase "dbd/Saturn.dbd"
Saturn_registerRecordDeviceDriver pdbbase
## Load record instances
dbLoadTemplate "db/user.substitutions"
dbLoadRecords "db/SaturnVersion.db", "user=ernesto"
dbLoadRecords "db/dbSubExample.db", "user=ernesto"
#var mySubDebug 1
traceIocInit
iocInit will be traced
cd "/afs/slac.stanford.edu/g/lcls/vol8/epics/iocTop/users/ernesto/gitSandBox/epicsV4/Saturn/iocBoot/sioc-b34-bl01"
iocInit
iocInit: Reached initHookAtIocBuild
Starting iocInit
iocInit: Reached initHookAtBeginning
############################################################################
## EPICS R7.0.1.2-DEV
## EPICS Base built Jun  4 2018
############################################################################
iocInit: Reached initHookAfterCallbackInit
Segmentation fault (core dumped)
ernesto@aird-pc90626  $


Back Trace follows:

==============================================

(gdb) bt
#0  freeListMalloc (pvt=0x0) at ../../src/freeList/freeListLib.c:86
#1  0x00007f8b75104666 in freeListCalloc (pvt=<value optimized out>) at ../../src/freeList/freeListLib.c:69
#2  0x00007f8b755cd4ec in dbChannelCreate (name=0x23ed408 "ernesto:circle:angle.VAL") at ../../../src/ioc/db/dbChannel.c:486
#3  0x00007f8b765f559c in DBCH::DBCH (this=0x7ffd805984e0, name=<value optimized out>) at ../pvif.cpp:45
#4  0x00007f8b76607e43 in PDBProvider::PDBProvider (this=0x23ecc90) at ../pdb.cpp:399
#5  0x00007f8b76600731 in epics::pvAccess::SingletonChannelProviderFactory<PDBProvider>::sharedInstance (this=0x234d950)
    at /afs/slac.stanford.edu/g/lcls/vol8/epics/base/master-base-7.0_branch/include/pv/pvAccess.h:1334
#6  0x00007f8b765ffd0a in epics::pvAccess::SingletonChannelProviderFactory<PDBProvider>::newInstance (this=<value optimized out>,
    conf=<value optimized out>) at /afs/slac.stanford.edu/g/lcls/vol8/epics/base/master-base-7.0_branch/include/pv/pvAccess.h:1343
#7  0x00007f8b75e9001e in epics::pvAccess::ChannelProviderRegistry::createProvider (this=<value optimized out>,
    providerName=<value optimized out>, conf=std::tr1::shared_ptr (count 1) 0x23ecc20)
    at ../../src/factory/ChannelAccessFactory.cpp:52
#8  0x00007f8b75e7f5b0 in pvac::ClientProvider::ClientProvider (this=0x23ec700, providerName="server:QSRV",
    conf=std::tr1::shared_ptr (empty) 0x0) at ../../src/client/client.cpp:265
#9  0x00007f8b76634d9d in pvalink::pvaGlobal_t::pvaGlobal_t (this=0x23ec700) at ../pvalink_channel.cpp:23
#10 0x00007f8b766272f9 in (anonymous namespace)::initPVALink (state=<value optimized out>) at ../pvalink.cpp:103
#11 0x00007f8b755ea019 in initHookAnnounce (state=initHookAfterCaLinkInit) at ../../../src/ioc/db/initHooks.c:88
#12 0x00007f8b75600478 in iocBuild_2 () at ../../../src/ioc/misc/iocInit.c:149
#13 0x00007f8b75600ab5 in iocBuild () at ../../../src/ioc/misc/iocInit.c:202
#14 0x00007f8b75600b19 in iocInit () at ../../../src/ioc/misc/iocInit.c:107
#15 0x00007f8b75106660 in iocshBody (pathname=<value optimized out>, commandLine=0x0, macros=0x0) at ../../src/iocsh/iocsh.cpp:835
#16 0x00000000004051b2 in main (argc=<value optimized out>, argv=<value optimized out>) at ../SaturnMain.cpp:17
(gdb)








Cheers,


Ernest Williams
Dept. Head, Advanced Control Systems
Advanced Instrumentation Research, Technology Innovation Directorate
SLAC National Laboratory, Stanford University

Navigate by Date:
Prev: Jenkins build is back to normal : epics-base-3.16-win64 #216 APS Jenkins
Next: Build failed in Jenkins: epics-base-3.15-win64 #352 APS Jenkins
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Jenkins build is back to normal : epics-base-3.16-mac-test #204 APS Jenkins
Next: Build failed in Jenkins: epics-base-3.15-win64 #352 APS Jenkins
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 06 Jun 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·