EPICS Home

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

Subject: Fw: RE: *** buffer overflow detected ***: ./ioc terminated
From: tanushyam bhattacharjee <[email protected]>
To: [email protected]
Date: Thu, 13 May 2010 19:48:09 +0530 (IST)


--- On Thu, 13/5/10, tanushyam bhattacharjee <[email protected]> wrote:

From: tanushyam bhattacharjee <[email protected]>
Subject: RE: *** buffer overflow detected ***: ./ioc terminated
To: "Mark Rivers" <[email protected]>
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 <[email protected]> wrote:

From: Mark Rivers <[email protected]>
Subject: RE: *** buffer overflow detected ***: ./ioc terminated
To: "tanushyam bhattacharjee" <[email protected]>, [email protected]
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: [email protected] on behalf of tanushyam bhattacharjee
Sent: Thu 5/13/2010 8:45 AM
To: [email protected]
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  2018  2019  2020  2021  2022  2023  2024 
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  2018  2019  2020  2021  2022  2023  2024