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  <20102011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Fw: RE: *** buffer overflow detected ***: ./ioc terminated
From: tanushyam bhattacharjee <gettanu@yahoo.co.in>
To: tech-talk@aps.anl.gov
Date: Thu, 13 May 2010 19:48:09 +0530 (IST)


--- On Thu, 13/5/10, tanushyam bhattacharjee <gettanu@yahoo.co.in> wrote:

From: tanushyam bhattacharjee <gettanu@yahoo.co.in>
Subject: RE: *** buffer overflow detected ***: ./ioc terminated
To: "Mark Rivers" <rivers@cars.uchicago.edu>
Date: Thursday, 13 May, 2010, 7:46 PM

Most probably the problem is for sprintf functions I have used,although I have changed it by snprintf,however not sure.
There is no specific reason for using the old base and asyn.The old application were built using that and the same thing has been installed in new OS.
I will run the IOC under gdb and let you know,but if I use the latest asyn and base will I get rid of this  problem?I am not sure!!

Tanushyam

--- On Thu, 13/5/10, Mark Rivers <rivers@cars.uchicago.edu> wrote:

From: Mark Rivers <rivers@cars.uchicago.edu>
Subject: RE: *** buffer overflow detected ***: ./ioc terminated
To: "tanushyam bhattacharjee" <gettanu@yahoo.co.in>, tech-talk@aps.anl.gov
Date: Thursday, 13 May, 2010, 7:27 PM

I am not sure where that error is coming from.

You should either run your IOC under gdb, or enable core dumps (limit or ulimit commands in shell) and run gdb on the core dump.

Is there a reason you are running such an old version of EPICS and asyn?  asyn R4-4 is almost 5 years old, and lots of improvements have been done since then.

Mark


________________________________

From: tech-talk-bounces@aps.anl.gov on behalf of tanushyam bhattacharjee
Sent: Thu 5/13/2010 8:45 AM
To: tech-talk@aps.anl.gov
Subject: *** buffer overflow detected ***: ./ioc terminated


I have successfully compiled my application in base-3.14.8.2 with asyn-4-4 in ubuntu(gcc ubuntu 4.1).
The Ioc runs succesfuly,however, if I process some PV,it terminates and shows the following error:

*** buffer overflow detected ***: ./ioc terminated 

google search says:

In Ubuntu 8.10 and later versions, -D_FORTIFY_SOURCE=2 is set
by default, and is activated when -O is set to 2 or higher. This
enables additional compile-time and run-time checks for several
libc functions. To disable, specify either -U_FORTIFY_SOURCE or
-D_FORTIFY_SOURCE=0.

Please mention where do I specify it or please give me other possible solution.

Thanking You,
Tanushyam
   




Navigate by Date:
Prev: RE: *** buffer overflow detected ***: ./ioc terminated Mark Rivers
Next: Argonne Network Maintenance this weekend Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: RE: *** buffer overflow detected ***: ./ioc terminated Mark Rivers
Next: Argonne Network Maintenance this weekend Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·