EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20192020  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  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Streamdevice segmentation fault
From: "Brown, Garth via Tech-talk" <[email protected]>
To: "'[email protected]'" <[email protected]>
Date: Tue, 15 Oct 2019 23:06:06 +0000

After updating an IOC from:

streamdevice 2.5, asyn 4.21, base 3.14.12

to:

streamdevice 2.8.9 (also tested 2.7.7), asyn 4.32 (also tested 4.31 and 4.35), base 7.0.2

I’m seeing 100% repeatable segfaults after processing the first response from a Hybricon VME crate.

I’ve attached the db and protocol files I’m using.

 

The text it is processing when it crashes is:

S/N Z834ÿÿÿÿ   U/N      Q:SN=Z834    ,UN=     ,IP=172.027.005.094,V3=3308,V5=5005,V+12=12009,V-12=12415,V24=00000,T1=29,T2=27,T3=28,T4=0,F1=07230,F2=07380,F3=07410,F4=07290,F5=07290,F6=07290,F7=00000,F8=00000,F9=00000,OT=0,OV=0,UV=000000,FF=0,PS1=1,PS2=1,MSG=0,SW=1,PROT=00,BS=0,HV=1,SD=1,WP=1,OS=000,CODE=10156F8F,ENET=D6.10,PSFAIL=00,POH=34848.0,MAXTMP=61,MINTMP=06

;EV0001000000000000ET00000000EF000000000OT0OV0UV000000FF0PS11MSG0SW1BS0HV1SD1WP1OS000

 

You can get a better idea of the raw ASCII in the attached console log with ASYN debug output, or in the streamdevice debug log (too huge to attach) at: https://gist.github.com/SLACer-garth/6505fd173dd71d7cfa2620d09e325276

One quirk that stands out to me is that the line terminator is \r\000\n. It would not surprise me if that null character in the middle causes parsing problems. I have tried changing the protocol file to use just \r or just \n, and it still crashed.

The call stack  at the point where it segfaults is:

Thread #7 252221 [core: 0] (Suspended : Signal : SIGSEGV:Segmentation fault)   

                AsynDriverInterface::startTimer() at AsynDriverInterface.cc:228 0x49f9b9             

                AsynDriverInterface::readRequest() at AsynDriverInterface.cc:845 0x49c769         

                StreamBusInterface::Client::busReadRequest() at StreamBusInterface.h:82 0x4c0180       

                StreamCore::evalIn() at StreamCore.cc:921 0x4ba493      

                StreamCore::readCallback() at StreamCore.cc:1,092 0x4bb48b    

                StreamBusInterface::readCallback() at StreamBusInterface.h:118 0x49f5a8           

                AsynDriverInterface::readHandler() at AsynDriverInterface.cc:1,064 0x49d793     

                AsynDriverInterface::handleRequest() at AsynDriverInterface.cc:1,510 0x49ee87

                AsynDriverInterface::handleRequest() at AsynDriverInterface.cc:243 0x49fa4b    

                portThread() at asynManager.c:879 0x492439    

                start_routine() at osdThread.c:403 0x5e1f9c       

                start_thread() at 0x7ffff79a4aa1               

                clone() at 0x7ffff6902c4d             

 

The pointer “timer” on line 226 of AsynDriverInterface.c (this is code in the streamdevice module) has a value which, when decoded as ASCII, contains part of the message from the crate, “SW1BS0HV1SD1WP1O”. It looks likely that inputBuffer.local was written beyond its limit. Right after inputBuffer.local in memory is inputBuffer.len. If you look at that memory location, decoded as ASCII, it’s that last line from the crate data, “EV00010000000000”. The “timer” pointer is a few memory addresses past there. But I haven’t been able to identify a root cause, the point where a buffer overflows or whatever it is. Has anyone seen this before?

 

Garth

 

Attachment: crat_hybricon_8slot.template
Description: crat_hybricon_8slot.template

Attachment: crat_hybricon_8slot.proto.db
Description: crat_hybricon_8slot.proto.db

[gwbrown@mcclogin:sioc-li24-nw03]$ ./st.cmd 
#!../../bin/rhel6-x86_64/IOCManager
#==============================================================
#
#  Abs:  Startup script for Network IOC (Development)
#
#  Name: st.cmd
#
#  Desc: This soft ioc performs IOCManager functions for LI24
#
#  Facility: LCLS IOC Management
#
#  Auth: dd-mmm-yyyy, Sonya Hoobler   (SONYA):
#  Rev:  dd-mmm-yyyy, Reviewer's Name (USERNAME)
#  Mod:
#       27-Aug-2019, K. Luchini       (LUCHINI):
#         add caPutLogInit()
#       21-Feb-2019, K. Luchini        (LUCHINI):
#         load cpu_li24.db
#       10-Oct-2017, K. Luchini        (LUCHINI):
#         load acsw_li24.db
#       4-Oct-2019, G. Brown           (GWBROWN)
#         Split this off from sioc-li24-nw01 with only Hybricon crates, for testing
#
#==============================================================
#
# Set environment variables
epicsEnvSet("ENGINEER"  ,"Sonya Hoobler")
epicsEnvSet("LOCATION"  ,"lcls-daemon1")
epicsEnvSet("IOC_NAME"  ,"SIOC:LI24:NW03")
epicsEnvSet("PORT"      ,"crat-li24-bp01")
# Load generic startup
<../common/init_st_soft.cmd
#=============================================================
#
#  Abs:  Generic piece of startup script for soft IOCs
#
#  Name: init_st_soft.cmd
#
#  Side:  This script expecte the following macors
#         to be defined upon entry:
#            IOC_NAME  - IOC device name   (eg. SIOC:SYS0:NWDEV)
#            BOOT_HOST - host soft ioc booted from (eg.  lcls-dev2)
#            PORT      - Asny port (eg. ioc-b34-bp01)
#
#  Facility: IOC Manager
#
#  Auth: 15-Mar-2013, Kristi Luchini  (LUCHINI)
#  Rev:  dd-mmm-yyyy, Reviewer's Name (USERNAME)
#  Mod:
#        27-Aug-2019, K. Luchini      (LUCHINI):
#          add env var SUBSYS and load init_log.cmd.soft
#
#==============================================================
#
# Set environmment variables
< envPaths
epicsEnvSet("IOC","sioc-li24-nw03")
epicsEnvSet("TOP","/afs/slac.stanford.edu/u/re/gwbrown/w/IOCManager")
epicsEnvSet("EPICS_SITE_TOP","/afs/slac/g/lcls/epics")
epicsEnvSet("BASE_SITE_TOP","/afs/slac/g/lcls/epics/base")
epicsEnvSet("EPICS_MODULES","/afs/slac/g/lcls/epics/R7.0.2-1.1/modules")
epicsEnvSet("IOC_SITE_TOP","/afs/slac/g/lcls/epics/iocTop")
epicsEnvSet("PACKAGE_SITE_TOP","/afs/slac/g/lcls/package")
epicsEnvSet("PSPKG_ROOT","/afs/slac/g/lcls/pkg_mgr")
epicsEnvSet("TOOLS_SITE_TOP","/afs/slac/g/lcls/tools")
epicsEnvSet("ALARM_CONFIGS_TOP","/afs/slac/g/lcls/tools/AlarmConfigsTop")
epicsEnvSet("ASYN","/afs/slac/g/lcls/epics/R7.0.2-1.1/modules/asyn/R4.32-1.0.0")
epicsEnvSet("AUTOSAVE","/afs/slac/g/lcls/epics/R7.0.2-1.1/modules/autosave/R5.8-2.1.0")
epicsEnvSet("CALC","/afs/slac/g/lcls/epics/R7.0.2-1.1/modules/calc/R3.7-1.0.1")
epicsEnvSet("CEXP","/afs/slac/g/lcls/epics/R7.0.2-1.1/modules/cexpsh/R1.1.2")
epicsEnvSet("IOCADMIN","/afs/slac/g/lcls/epics/R7.0.2-1.1/modules/iocAdmin/R3.1.16-1.1.0")
epicsEnvSet("SSCAN","/afs/slac/g/lcls/epics/R7.0.2-1.1/modules/sscan/R2.10.2-1.0.0")
epicsEnvSet("STREAMDEVICE","/afs/slac/g/lcls/epics/R7.0.2-1.1/modules/streamdevice/R2.8.9-1.0.4")
epicsEnvSet("EPICS_BASE","/afs/slac/g/lcls/epics/base/R7.0.2-1.1")
# Enviroment variables for iocAdmin 
epicsEnvSet("IOC_BOOT"  , "/afs/slac.stanford.edu/u/re/gwbrown/w/IOCManager/iocBoot/sioc-li24-nw03")
epicsEnvSet("ST_CMD"    , "startup.cmd")
epicsEnvSet("STARTUP"   , "/afs/slac/g/lcls/epics/iocCommon/sioc-li24-nw03")
epicsEnvSet("SUBSYS"    , "iocMgr")
# Path to stream protocol file
epicsEnvSet("STREAM_PROTOCOL_PATH","../../db")
# Change to TOP of ioc application
cd /afs/slac.stanford.edu/u/re/gwbrown/w/IOCManager
# Load EPICS Database
dbLoadDatabase("dbd/IOCManager.dbd")
IOCManager_registerRecordDeviceDriver(pdbbase)
# Load record instances
dbLoadRecords("db/iocAdminSoft.db","IOC=SIOC:LI24:NW03")
dbLoadRecords("db/iocRelease.db"  ,"IOC=SIOC:LI24:NW03")
dbLoadRecords("db/asynRecord.db"  ,"P=SIOC:LI24:NW03:,R=ASYNDRIVER,PORT=crat-li24-bp01,ADDR=0,IMAX=0,OMAX=0")
# Load Access Configuration file
macLib: macro ACF_INIT is undefined (expanding string < ${ACF_INIT})
# Load logging prefix
< /afs/slac/g/lcls/epics/iocCommon/common/init_log.cmd.soft
#==============================================================
#
#  Abs:   Start IOC Log Client
#
#  Name: init_log.cmd
#
#  Rem:  Upon entry we expect that cexp is available and
#        and that the following macros ar defined:
#           
#         SUBSYS - IOC Subsystem
#    
#  Side: Must load this script before iocInit()
#        WARNING!!! There must be a space before the
#        final quote of the LOG_MACRO
#
#     epicsEnvSet("LOG_MACRO", "fac=${SUBSYS} proc=${IOC} ")
#
#        THIS IS A BUG WORKAROUND, SO DO NOT REMOVE THIS SPACE.
#        THIS ONLY FOR iocLogPrefix(). 
#
#  Facility: SLAC Controls
#
#  Auth: 10-May-2019, K. Luchini      (LUCHINI)
#  Rev:  dd-mmm-yyyy, Reviewer's Name (USERNAME)
#  Mod:
#         09-Oct-2019, K. Luchini     (LUCHINI):
#           add iocLogShow to check if the log
#           prefix has been set.
#         12-Aug-2019, K. Luchini     (LUCHINI):
#           due to bug in iocLogPrefix() must
#           add space before last quote of macro
#           definition
#
#==============================================================
#
# Build argument for iocLogPrefix
epicsEnvSet("LOG_MACRO", "fac=iocMgr proc=sioc-li24-nw03 ")
#  Start IOC log client
iocLogInit()
log client: failed to connect to "134.79.151.21:7004" because 111="Connection refused"
log client create: timed out synchronizing with circuit connect to "134.79.151.21:7004" after 5.0 seconds
iocLogPrefix("fac=iocMgr proc=sioc-li24-nw03 ")
iocLogShow()
log client: disconnected from log server at "134.79.151.21:7004"
log client: prefix is "fac=iocMgr proc=sioc-li24-nw03 "
# End of script
# Set this to see messages from mySub
#var mySubDebug 1
# End of script
# Initalize asyn ports
< iocBoot/sioc-li24-nw03/init_asyn.cmd
#==============================================================
#
#  Abs:  Configure Asyn ports for LI24
#
#  Name: init_asyn.cmd
#
#  Side:  acsw - Ethernet Power Strips
#         crat - Crates
#
#     Wiener crates      - port 80
#     Elma   crates      - port 23
#     Hybricon crates    - port 23
#     WTI power switches - port 23
#     APC power switches - port 23
#     UPS                - port 23
#
#  Facility: LCLS IOC Management
#
#  Auth: dd-mmm-yyyy, Sonya Hoobler   (SONYA):
#  Rev:  dd-mmm-yyyy, Reviewer's Name (USERNAME)
#  Mod:
#        10-Sep-2019, K. Luchini      (LUCHINI):
#         remove crat-li24-mg01,crat-li24-mg02
#        18-Sep-2015, K. Luchini        (LUCHINI):
#         add acsw-li24-nw10
#        17-Jul-2017, N. Balakrishnan   (NAMRATA)
#         add cpu-li24-mc01
#        21-Jul-2017, N. Balakrishnan   (NAMRATA)
#         add acsw-li24-nw11
#       4-Oct-2019, G. Brown           (GWBROWN)
#         Split this off from sioc-li24-nw01 with only Hybricon crates, for testing
#
#==============================================================
#
# VME Crates (port 23)
drvAsynIPPortConfigure ("crat-li24-bp02","crat-li24-bp02:23",0,0,0)
# Asyn messages
asynSetTraceMask("crat-li24-bp02",-1,0xf)
asynSetTraceIOMask("crat-li24-bp02",-1,0x6)
asynSetTraceIOTruncateSize("crat-li24-bp02",-1,512)
#log debug output to file
streamSetLogfile hcratStreamDebug.log
#enable debug output
var streamDebug 1
# End of file
# Load record instances
dbLoadRecords("db/crat_hybricon_li24.db")
dbLoadRecords("db/ioc_li24.db","iocmanager=SIOC:LI24:NW03")
# Restore PVs
< iocBoot/common/init_restore_soft.cmd
#==============================================================
#
#  Abs:  Autosave initalization (for a soft IOC)
#
#  Name: init_restore_soft.cmd    
#
#  Facility:  LCLS CAMAC Controls
#
#  Auth: 27-Jan-2011, Kristi Luchini  (LUCHINI)
#  Rev:  dd-mmm-yyyy, Reviewer's Name (USERNAME)
#  Mod:
#        dd-mmm-yyyy, Reviewer's Name (USERNAME)
#          comment
#
#==============================================================
#
# Specify where request and save_restore files can be found
set_requestfile_path("/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave-req")
set_savefile_path("/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave")
# Status-PV prefix, so save_restore can find its status PVs.
save_restoreSet_status_prefix("SIOC:LI24:NW03:")
# Load bumpless reboot status database
dbLoadRecords("db/save_restoreStatus.db","P=SIOC:LI24:NW03:")
# Ok to restore a save set that had missing values (no CA connection to PV)?
# Ok to save a file if some CA connections are bad?
save_restoreSet_IncompleteSetsOk(1)
# In the restore operation, a copy of the save file will be written.  The
# file name can look like "auto_settings.sav.bu", and be overwritten every
# reboot, or it can look like "auto_settings.sav_020306-083522" (this is what
# is meant by a dated backup file) and every reboot will write a new copy.
#save_restoreSet_DatedBackupFiles(1)
# Specify what save files should be restored and when.
# Note: up to eight files can be specified for each pass.
set_pass0_restoreFile("info_positions.sav")
set_pass0_restoreFile("info_settings.sav")
set_pass1_restoreFile("info_settings.sav")
# Number of sequenced backup files (e.g., 'info_settings.sav0') to write
save_restoreSet_NumSeqFiles(3)
# Time interval between sequenced backups
save_restoreSet_SeqPeriodInSeconds(600)
# Time between failed .sav-file write and the retry.
save_restoreSet_RetrySeconds(60)
# End of script
cd /afs/slac.stanford.edu/u/re/gwbrown/w/IOCManager/iocBoot/sioc-li24-nw03
iocInit()
Starting iocInit
############################################################################
## EPICS R7.0.2.2-1.1.3
## EPICS Base built Sep 24 2019
############################################################################
reboot_restore: entry for file 'info_positions.sav'
reboot_restore: Found filename 'info_positions.sav' in restoreFileList.
*** restoring from '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_positions.sav' at initHookState 6 (before record/device init) ***
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_positions.sav'.
save_restore: Trying backup file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_positions.savB'
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_positions.savB'.
save_restore: Can't figure out which seq file is most recent,
save_restore: so I'm just going to start with '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_positions.sav0'.
save_restore: Trying backup file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_positions.sav0'
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_positions.sav0'.
save_restore: Trying backup file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_positions.sav1'
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_positions.sav1'.
save_restore: Trying backup file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_positions.sav2'
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_positions.sav2'.
save_restore: Can't find a file to restore from...
save_restore: ...last tried '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_positions.sav2'. I give up.
save_restore: **********************************

save_restore: Can't open save file.
reboot_restore: entry for file 'info_settings.sav'
reboot_restore: Found filename 'info_settings.sav' in restoreFileList.
*** restoring from '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav' at initHookState 6 (before record/device init) ***
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav'.
save_restore: Trying backup file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.savB'
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.savB'.
save_restore: Can't figure out which seq file is most recent,
save_restore: so I'm just going to start with '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav0'.
save_restore: Trying backup file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav0'
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav0'.
save_restore: Trying backup file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav1'
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav1'.
save_restore: Trying backup file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav2'
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav2'.
save_restore: Can't find a file to restore from...
save_restore: ...last tried '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav2'. I give up.
save_restore: **********************************

save_restore: Can't open save file.
2019/10/15 11:54:33.981 SIOC:LI24:NW03:ASYNDRIVER: Connect error, status=3, asynManager:connectDevice port crat-li24-bp01 not found
reboot_restore: entry for file 'info_settings.sav'
reboot_restore: Found filename 'info_settings.sav' in restoreFileList.
*** restoring from '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav' at initHookState 7 (after record/device init) ***
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav'.
save_restore: Trying backup file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.savB'
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.savB'.
save_restore: Can't figure out which seq file is most recent,
save_restore: so I'm just going to start with '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav0'.
save_restore: Trying backup file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav0'
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav0'.
save_restore: Trying backup file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav1'
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav1'.
save_restore: Trying backup file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav2'
save_restore: Can't open file '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav2'.
save_restore: Can't find a file to restore from...
save_restore: ...last tried '/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave/info_settings.sav2'. I give up.
save_restore: **********************************

save_restore: Can't open save file.
iocRun: All initialization complete
#enable debug output
var streamDebug 1
# Start autosave
< ../common/start_restore_soft.cmd
#==============================================================
#
#  Abs:  Start the autosave task (for a soft IOC)
#
#  Name: start_restore_soft.cmd
#
#  Side: load this script after iocInit
#
#       "In the lore that has built up around autosave, 
#        PV's that should be restored only before record
#        initialization have been termed "positions".
#        All other PV's have been termed "settings".
#
#        Thus, you might run across a file called
#        'auto_positions.req', and now you'll know that 
#        the parameters in this file are intended to be 
#        restored only during autosave's pass-0."
#           - from autosave documentation
#
#  Facility:  LCLS LCAMAC Controls
#
#  Auth: 27-Jan-2011, Kristi Luchini  (LUCHINI)
#  Rev:  dd-mmm-yyyy, Reviewer's Name (USERNAME)
#  Mod:
#        dd-mmm-yyyy, First Lastname  (USERNAME):
#          comment
#
#==============================================================
#
# Wait before building autosave files
epicsThreadSleep(1)
2019/10/15 11:54:34.699 crat-li24-bp02:23 read 28
S/N Z834\377\377\377\377\377\377\377\377   U/N      

53 2f 4e 20 5a 38 33 34 ff ff ff ff ff ff ff ff 20 20 20 55 
2f 4e 20 20 20 20 20 20 
2019/10/15 11:54:34.699 crat-li24-bp02 asynOctetBase interrupt
2019/10/15 11:54:34.702 crat-li24-bp02 read
S/N Z834\377\377\377\377\377\377\377\377   U/N      

53 2f 4e 20 5a 38 33 34 ff ff ff ff ff ff ff ff 20 20 20 55 
2f 4e 20 20 20 20 20 20 
# Generate the autosave PV list
# Note we need change directory to 
# where we are saving the restore 
# request file.
cd("/nfs/slac/g/lcls/epics/ioc/data/sioc-li24-nw03/autosave-req")
Invalid directory path, ignored
makeAutosaveFiles()
# Start the save_restore task 
# save changes on change, but no faster
# than every 5 seconds.
# Note: the last arg cannot be set to 0
create_monitor_set("info_positions.req", 5 )
save_restore:readReqFile: unable to open file info_positions.req. Exiting.
create_monitor_set("info_settings.req" , 5 )
save_restore:readReqFile: unable to open file info_settings.req. Exiting.
# change directory to TOP of application
cd("/afs/slac.stanford.edu/u/re/gwbrown/w/IOCManager")
pwd()
/afs/slac.stanford.edu/u/re/gwbrown/w/IOCManager
# Turn off save_restore messages 
#save_restoreSet_Debug(0)
# End of script
# Initialize caPutLog
macLib: macro EPICS_CA_PUT_LOG_ADDR is undefined (expanding string caPutLogInit("${EPICS_CA_PUT_LOG_ADDR}"))
# End of file
epics> 2019/10/15 11:54:39.002 crat-li24-bp02:23 write 1
Q

51 
2019/10/15 11:54:39.002 crat-li24-bp02 wrote
Q

51 
2019/10/15 11:54:39.034 crat-li24-bp02:23 read 179
:SN=Z834    ,UN=     ,IP=172.027.005.094,V3=3310,V5=5004,V+12=12011,V-12=12415,V24=00000,T1=22,T2=19,T3=20,T4=0,F1=07140,F2=07350,F3=07410,F4=07230,F5=07290,F6=07290,F7=00000,F8=0

3a 53 4e 3d 5a 38 33 34 20 20 20 20 2c 55 4e 3d 20 20 20 20 
20 2c 49 50 3d 31 37 32 2e 30 32 37 2e 30 30 35 2e 30 39 34 
2c 56 33 3d 33 33 31 30 2c 56 35 3d 35 30 30 34 2c 56 2b 31 
32 3d 31 32 30 31 31 2c 56 2d 31 32 3d 31 32 34 31 35 2c 56 
32 34 3d 30 30 30 30 30 2c 54 31 3d 32 32 2c 54 32 3d 31 39 
2c 54 33 3d 32 30 2c 54 34 3d 30 2c 46 31 3d 30 37 31 34 30 
2c 46 32 3d 30 37 33 35 30 2c 46 33 3d 30 37 34 31 30 2c 46 
34 3d 30 37 32 33 30 2c 46 35 3d 30 37 32 39 30 2c 46 36 3d 
30 37 32 39 30 2c 46 37 3d 30 30 30 30 30 2c 46 38 3d 30 
2019/10/15 11:54:39.035 crat-li24-bp02 asynOctetBase interrupt
2019/10/15 11:54:39.036 crat-li24-bp02 read
:SN=Z834    ,UN=     ,IP=172.027.005.094,V3=3310,V5=5004,V+12=12011,V-12=12415,V24=00000,T1=22,T2=19,T3=20,T4=0,F1=07140,F2=07350,F3=07410,F4=07230,F5=07290,F6=07290,F7=00000,F8=0

3a 53 4e 3d 5a 38 33 34 20 20 20 20 2c 55 4e 3d 20 20 20 20 
20 2c 49 50 3d 31 37 32 2e 30 32 37 2e 30 30 35 2e 30 39 34 
2c 56 33 3d 33 33 31 30 2c 56 35 3d 35 30 30 34 2c 56 2b 31 
32 3d 31 32 30 31 31 2c 56 2d 31 32 3d 31 32 34 31 35 2c 56 
32 34 3d 30 30 30 30 30 2c 54 31 3d 32 32 2c 54 32 3d 31 39 
2c 54 33 3d 32 30 2c 54 34 3d 30 2c 46 31 3d 30 37 31 34 30 
2c 46 32 3d 30 37 33 35 30 2c 46 33 3d 30 37 34 31 30 2c 46 
34 3d 30 37 32 33 30 2c 46 35 3d 30 37 32 39 30 2c 46 36 3d 
30 37 32 39 30 2c 46 37 3d 30 30 30 30 30 2c 46 38 3d 30 
2019/10/15 11:54:39.055 crat-li24-bp02:23 read 122
0000,F9=00000,OT=0,OV=0,UV=000000,FF=0,PS1=1,PS2=1,MSG=0,SW=1,PROT=00,BS=0,HV=1,SD=1,WP=1,OS=000,CODE=10156F8F,ENET=D6.10,

30 30 30 30 2c 46 39 3d 30 30 30 30 30 2c 4f 54 3d 30 2c 4f 
56 3d 30 2c 55 56 3d 30 30 30 30 30 30 2c 46 46 3d 30 2c 50 
53 31 3d 31 2c 50 53 32 3d 31 2c 4d 53 47 3d 30 2c 53 57 3d 
31 2c 50 52 4f 54 3d 30 30 2c 42 53 3d 30 2c 48 56 3d 31 2c 
53 44 3d 31 2c 57 50 3d 31 2c 4f 53 3d 30 30 30 2c 43 4f 44 
45 3d 31 30 31 35 36 46 38 46 2c 45 4e 45 54 3d 44 36 2e 31 
30 2c 
2019/10/15 11:54:39.055 crat-li24-bp02 asynOctetBase interrupt
2019/10/15 11:54:39.057 crat-li24-bp02 read
0000,F9=00000,OT=0,OV=0,UV=000000,FF=0,PS1=1,PS2=1,MSG=0,SW=1,PROT=00,BS=0,HV=1,SD=1,WP=1,OS=000,CODE=10156F8F,ENET=D6.10,

30 30 30 30 2c 46 39 3d 30 30 30 30 30 2c 4f 54 3d 30 2c 4f 
56 3d 30 2c 55 56 3d 30 30 30 30 30 30 2c 46 46 3d 30 2c 50 
53 31 3d 31 2c 50 53 32 3d 31 2c 4d 53 47 3d 30 2c 53 57 3d 
31 2c 50 52 4f 54 3d 30 30 2c 42 53 3d 30 2c 48 56 3d 31 2c 
53 44 3d 31 2c 57 50 3d 31 2c 4f 53 3d 30 30 30 2c 43 4f 44 
45 3d 31 30 31 35 36 46 38 46 2c 45 4e 45 54 3d 44 36 2e 31 
30 2c 
2019/10/15 11:54:39.076 crat-li24-bp02:23 read 123
PSFAIL=00,POH=35032.6,MAXTMP=61,MINTMP=06\r\000\n;EV0001000000000000ET00000000EF000000000OT0OV0UV000000FF0PS11MSG0SW1BS0HV1SD1WP

50 53 46 41 49 4c 3d 30 30 2c 50 4f 48 3d 33 35 30 33 32 2e 
36 2c 4d 41 58 54 4d 50 3d 36 31 2c 4d 49 4e 54 4d 50 3d 30 
36 0d 00 0a 3b 45 56 30 30 30 31 30 30 30 30 30 30 30 30 30 
30 30 30 45 54 30 30 30 30 30 30 30 30 45 46 30 30 30 30 30 
30 30 30 30 4f 54 30 4f 56 30 55 56 30 30 30 30 30 30 46 46 
30 50 53 31 31 4d 53 47 30 53 57 31 42 53 30 48 56 31 53 44 
31 57 50 
2019/10/15 11:54:39.077 crat-li24-bp02 asynOctetBase interrupt
2019/10/15 11:54:39.091 crat-li24-bp02 read
PSFAIL=00,POH=35032.6,MAXTMP=61,MINTMP=06\r\000\n;EV0001000000000000ET00000000EF000000000OT0OV0UV000000FF0PS11MSG0SW1BS0HV1SD1WP

50 53 46 41 49 4c 3d 30 30 2c 50 4f 48 3d 33 35 30 33 32 2e 
36 2c 4d 41 58 54 4d 50 3d 36 31 2c 4d 49 4e 54 4d 50 3d 30 
36 0d 00 0a 3b 45 56 30 30 30 31 30 30 30 30 30 30 30 30 30 
30 30 30 45 54 30 30 30 30 30 30 30 30 45 46 30 30 30 30 30 
30 30 30 30 4f 54 30 4f 56 30 55 56 30 30 30 30 30 30 46 46 
30 50 53 31 31 4d 53 47 30 53 57 31 42 53 30 48 56 31 53 44 
31 57 50 
2019/10/15 11:54:40.087 crat-li24-bp02:23 read 9
1OS000\r\000\n

31 4f 53 30 30 30 0d 00 0a 
2019/10/15 11:54:40.087 crat-li24-bp02 asynOctetBase interrupt
2019/10/15 11:54:40.093 crat-li24-bp02 read
1OS000\r\000\n

31 4f 53 30 30 30 0d 00 0a 
Segmentation fault

Replies:
Re: Streamdevice segmentation fault Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: few questions on autosave J. Lewis Muir via Tech-talk
Next: Re: few questions on autosave Jeong Han Lee via Tech-talk
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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Asyn port driver generate parameters Mark Rivers via Tech-talk
Next: Re: Streamdevice segmentation fault Mark Rivers via Tech-talk
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  <20192020  2021  2022  2023  2024 
ANJ, 20 Oct 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·