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: How to: IOC reading information from file? |
From: | Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov> |
To: | "Marco A. Barra Montevechi Filho" <marco.filho at lnls.br> |
Cc: | "Nariyoshi, Pedro" <nariyosh at frib.msu.edu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Mon, 28 Nov 2022 12:55:39 -0800 |
On 11/28/22 12:37, Michael Davidsaver wrote:
On 11/28/22 12:05, Marco A. Barra Montevechi Filho via Tech-talk wrote:Thanks for the suggestion, Pedro! At the end of the day, i figured that maybe autosave fdbrestore function would do what i wanted. Unfortunately, the function was resulting in segmentation fault. Looking in tech-talk i found this thread: https://epics.anl.gov/tech-talk/2014/msg01851.php <https://epics.anl.gov/tech-talk/2014/msg01851.php> which suggested that for autosave versions before 5.4.1 it is a known bug which is fixed after that. Since im using autosave 5-10-2 and the PVs are not very long, i gave up using autosave for this.Could you provide any details which might go into a ticket? Specific arguments used? ideally a stack trace? etc... https://github.com/epics-modules/autosave/issues
I haven't tried fdbrestore() previously, so I'm not certain about the caput() errors. It certainly didn't crash on me. Did you do full cleanup and rebuild when switching between autosave versions? (eg. "make distclean", or just deleting and re-downloading the source) Linking in old object code files is great way to experience some bizarre crashes.
epics> var save_restoreDebug 5 epics> fdbrestore "ioc_settings.sav" save_restore:fdbrestore:entry save_restore:request_manual_restore: entry save_restore task: calling do_manual_restore('ioc_settings.sav') save_restore:do_manual_restore: entry for file 'ioc_settings.sav' epics> do_manual_restore:ca_put() to 'TST:Speed-SP.VAL'failed. do_manual_restore:ca_put() to 'TST:DM-Sel.VAL'failed. do_manual_restore:ca_put() to 'TST:SampT-Sel.VAL'failed. do_manual_restore:ca_put() to 'TST:SampT:N-Sel.VAL'failed. do_manual_restore:ca_put() to 'TST:SampDet-Sel.VAL'failed. do_manual_restore:ca_put() to 'TST:Plt-SP.VAL'failed. do_manual_restore:ca_put() to 'TST:Samp-SP.VAL'failed. do_manual_restore:ca_put() to 'TST:Plt:N-SP.VAL'failed. do_manual_restore:ca_put() to 'TST:Samp:N-SP.VAL'failed. do_manual_restore:ca_put() to 'TST:Gn:X-SP.VAL'failed. do_manual_restore:ca_put() to 'TST:Gn:Y-SP.VAL'failed. do_manual_restore:ca_put() to 'TST:Gn:Z-SP.VAL'failed. do_manual_restore:ca_put() to 'TST:Tl-Sel.VAL'failed. save_restore: manual restore status=1 (0==success)