Hi Abdalla,
> The first 2 lines are the IOC shell output before the segmentation
> fault happened.
Seems like it's happening in this line:
https://github.com/epics-modules/autosave/blob/synApps_5_6/asApp/src/save_restore.c#L1371
I can think of 3 reasons why it might crash:
1. Invalid file descriptor out_fd
2. Invalid C string SRversion - which BTW seems to contain a wrong
version number ;-)
3. Invalid C string datetime
(2) Seems unlikely as SRversion is a pointer to a constant string.
Regarding (3): This gets populated in [1]. Note that the whole function
has been rewritten recently [2]. I'm wondering if this is because
someone else ran into problems... Missing 0-termination for example
might cause a segfault. You might want to try the latest version of
fGetDateStr.c. I would also recommend to run your IOC in the debugger so
you can inspect these variables after the IOC crashed (or turn on core
files).
-Martin
[1]
https://github.com/epics-modules/autosave/blob/synApps_5_6/asApp/src/fGetDateStr.c
[2]
https://github.com/epics-modules/autosave/commit/39d1dcbfbbf0971dc6fd6f13b0e77d65e21b577c#diff-101e75ddd0243986d9009539b0f7ece1
--
Martin Konrad
High Performance Controls Team Leader
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email:
[email protected]