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  2018  <20192020  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  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: CA exception
From: Michael Davidsaver via Tech-talk <[email protected]>
To: Rolf Keitel <[email protected]>, "[email protected]" <[email protected]>
Date: Thu, 24 Oct 2019 14:46:45 -0700
On 10/24/19 1:45 PM, Rolf Keitel via Tech-talk wrote:
> I am working on a CA client and am getting the following exception:
> 
>  
> 
> CA client library tcp receive thread terminating due to C++ exception "Invalid argument"

My guess is that this originates as an EINVAL error code.

> What exactly causes this exception?

Good question.

The process I'd follow starts with running in gdb with a breakpoint set in the
c++ exception base class constructor.  With gdb this is "break std::exception::exception".
This will break each time an exception is to be thrown.  Be aware that this may not be
the exception which you see.  So the first time through just "continue" to make sure
there aren't further exceptions throw.

When you identify the last exception being thrown, the stack trace will hopefully give
some idea why.


> I had a quick look at the EPICS code  (3.14.12.5) but came up empty-handed.

The specific string may come from strerror() or similar.

References:
CA exception Rolf Keitel via Tech-talk

Navigate by Date:
Prev: RE: Streamdevice segmentation fault Brown, Garth via Tech-talk
Next: stream device @init and LINEAR conversion Kasemir, Kay via Tech-talk
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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: CA exception Rolf Keitel via Tech-talk
Next: stream device @init and LINEAR conversion Kasemir, Kay via Tech-talk
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  <20192020  2021  2022  2023  2024 
ANJ, 25 Oct 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·