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  <20092010  2011  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  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: sigsev while creating new gdd in multiple threads
From: Bruno Coudoin <[email protected]>
To: [email protected]
Date: Mon, 22 Jun 2009 20:15:46 +0200
Hi,

Tonight I found something odd. I am perhaps doing something wrong but
after several test the results were consistant.

I have a multithreaded application, at startup each thread creates
several gdd. It ends up frequently in the following SIGSEGV:
  Program received signal SIGSEGV, Segmentation fault.
  [Switching to Thread 0x98a35b90 (LWP 1020)]
  0x00f2b2b8 in gdd::operator new (size=44) at ../gdd.cc:26
  26      gdd_NEWDEL_NEW(gdd)

My code to create the gdd is as simple as:
  gdd *pDD;
  pDD = new gddScalar ( gddAppType_value, aitEnumInt32 );

It seems like my program crashes at startup but if it passed the first
gdd creation of each threads, it becomes stable after that. More threads
I have, more chance I have to see the crash.

My configuration:
Epics 3.14.10
CentOS 5.3
Multi core processor.

Has anybody ever seen this issue? I'll try to dig further tomorrow, if
someone has ideas on workarounds or tests to do to refine the issue,
your welcome.

Bruno.



Replies:
Re: sigsev while creating new gdd in multiple threads Dirk Zimoch

Navigate by Date:
Prev: Re: MVME 5500 Kate Feng
Next: Re: sigsev while creating new gdd in multiple threads Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Epics extension problems Dudley, David
Next: Re: sigsev while creating new gdd in multiple threads Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·