[Casa-framework] Beware of exceptions

Wes Young wyoung at nrao.edu
Fri Dec 1 08:59:36 EST 2006


Greetings,

I've been sorting through the test results and I believe there is a  
problem with exceptions and gcc-3.4.6 set to optimization -O2 at the  
AOC. Basically you can catch one or maybe two exceptions before  
things go off in the weeds and just quit or dump core. The attached  
test program works just fine on the mac but not so good on the linux  
box.  I believe this problem accounts for a large number of UNKNOWN  
test results.  Btw, the problem has existed for some time.

The output is suppose to look like:

muse:~/micasa/code/casa/implement/Exceptions/test wyoung$ ./tError  
 >tError.out
muse:~/micasa/code/casa/implement/Exceptions/test wyoung$ cat tError.out
Caught Modulo 5!
1 2 3 4 Caught Modulo 5!
6 7 8 9 Caught Modulo 5!
11 12 13 14 Caught Modulo 5!
16 17 18 19 Caught Modulo 5!
21 22 23 24 Caught Modulo 5!
26 27 28 29 Caught Modulo 5!
31 32 33 34 Caught Modulo 5!
36 37 38 39 Caught Modulo 5!
41 42 43 44 Caught Modulo 5!
46 47 48 49 Caught Modulo 5!
51 52 53 54 Caught Modulo 5!
56 57 58 59 Caught Modulo 5!
61 62 63 64 Caught Modulo 5!
66 67 68 69 Caught Modulo 5!
71 72 73 74 Caught Modulo 5!
76 77 78 79 Caught Modulo 5!
81 82 83 84 Caught Modulo 5!
86 87 88 89 Caught Modulo 5!
91 92 93 94 Caught Modulo 5!
96 97 98 99

But on the linux box it is
wyoung at ballista-> ./tError
0 Caught Modulo 5!
1 2 3 4 5 Caught Modulo 5!

I've attached the test program below so you can see what I did.

wes
wyoung at aoc.nrao.edu

---
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tError.cc
Type: application/octet-stream
Size: 1860 bytes
Desc: not available
Url : http://listmgr.cv.nrao.edu/pipermail/casa-framework/attachments/20061201/a5e24e1f/attachment.obj 
-------------- next part --------------




More information about the Casa-framework mailing list