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]
- Replies:
- Re: Problem with autosave module making it crash at random basis. Mooney, Tim M.
- Navigate by Date:
- Prev:
RE: Possible deadlock issue with asyn layer? Mark Rivers
- Next:
Re: Possible deadlock issue with asyn layer? Mark Davis
- 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
- Navigate by Thread:
- Prev:
RE: Problem with autosave module making it crash at random basis. Abdalla Ahmad
- Next:
Re: Problem with autosave module making it crash at random basis. Mooney, Tim M.
- 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
|