g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: catch in ubuntu gcc 4.6.1
From: "Hill, Jeff" <johill@lanl.gov>
To: "core-talk@aps.anl.gov" <core-talk@aps.anl.gov>
Date: Wed, 14 Nov 2012 23:33:04 +0000
BTW, on ubuntu with gcc 4.6.1, I notice that C++ try/catch constructs like this in the regression tests don't catch properly, but if I run the test in the debugger then the catch does work?! Has anyone else seen this issue? I see this issue with both epicsTimeTest and acctst.

        try {
            const epicsTimeStamp badTS = {1, 1000000000};
            epicsTime ts(badTS);
            char buf [32];
            ts.strftime(buf, sizeof(buf), pFormat);
            testFail("nanosecond overflow returned \"%s\"", buf);
        }
        catch ( ... ) {
            testPass("nanosecond overflow throws");
        }

Jeff
______________________________________________________
Jeffrey O. Hill           Email        johill@lanl.gov
LANL MS H820              Voice        505 665 1831
Los Alamos NM 87545 USA   FAX          505 665 5107

Message content: TSPA





Replies:
Re: catch in ubuntu gcc 4.6.1 Andrew Johnson

Navigate by Date:
Prev: Re: optimization to epicsTime Andrew Johnson
Next: Re: catch in ubuntu gcc 4.6.1 Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: RE: optimization to epicsTime Hill, Jeff
Next: Re: catch in ubuntu gcc 4.6.1 Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 26 Nov 2012 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·