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)