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

Subject: Re: Problem with autosave module making it crash at random basis.
From: Michael Davidsaver <[email protected]>
To: Abdalla Ahmad <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 9 Apr 2018 09:15:45 -0700
A couple of points

* save_restore.c includes epicsStdio.h so it is using IOC shell redirection.
So the FILE* being used is not directly stdout/stderr.

* Installing debug symbol RPM for libc.so might give some more information about
whether the error involves the FILE*, the string buffer, or one of the arguments
to be formatted.

* Look for printf() format related warnings from GCC when building autosave.
It's not unheard of for incorrect format specs in (rarely run) error path
prints to turn a recoverable error into a crash.


On 04/07/2018 11:06 PM, Abdalla  Ahmad wrote:
> Hi
> 
>  
> 
> One of our IOCs crashed and it appears to do so from time to time. I used valgrind on the IOC process and the attached file contains valgrind output right when the IOC crashed. The first 2 lines are the IOC shell output before the segmentation fault happened. I could not figure out whether the problem from the module sending something corrupted to the printf functions or the standard C library itself is somehow corrupted. I tried cloning the latest autosave version from github but the build failed. Build output is in the attached too.
> 
>  
> 
> OS: Scientific Linux 6.4 32-bit.
> 
> EPICS: 3.14.12.3
> 
> SynApps 5.6
> 
> Autosave 4.8
> 
>  
> 
> Best Regards,
> 
>  
> 
> Abdalla Ahmad
> 
> Control Engineer
> 
> SESAME
> 
> Allan, Jordan.
> 
> Tel: (+962-5) 3511348 , ext. 265
> 
> Fax: (+962-5) 3511423
> 
> Mob: (+962-7)88183296
> 
> www.sesame.org.jo <http://www.sesame.org.jo/>
> 
>  
> 


Replies:
RE: Problem with autosave module making it crash at random basis. Abdalla Ahmad
References:
Problem with autosave module making it crash at random basis. Abdalla Ahmad

Navigate by Date:
Prev: Re: SMA100A Signal Generatordriver Benjamin Franksen
Next: EPICS CAS errors Oleg A. Makarov
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Problem with autosave module making it crash at random basis. Mark Rivers
Next: RE: Problem with autosave module making it crash at random basis. Abdalla Ahmad
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 26 Apr 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·