Hi

I'm completely new to the X10 language and I tried the following code and I
get a segmentation fault when using more than one Place. I get the same
error when running X10's Monte Carlo sample with more than one Place. I am
using X10 version 2.3 on a 64bit Debian Linux on a Core i7 2Ghz processor.
The weird thing is that the code works fine on an Ubuntu 10.04 32 bit on a
Core 2 Duo Vaio Laptop.

import x10.util.Timer;
public class placetest{
        public static def main(args: Array[String](1)){
                finish for(var i:Int=1;i<=4;i++){
                      val ii = i;
                      val pk = Place.place(ii);
                      val k = 1;
                      async at(pk) count(k);
                }
                Console.OUT.println("Finished");
        }
        public static def count(i:Int){
                Console.OUT.println("Test" + i);
        }
}

BTW, this only happens when I send a val parameter to the count function.

Any help is greatly appreciated. It's driving me nuts.

-- 
Regards
Mo.A.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to