Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault while passing arrays as argument to actors #118

Closed
albertnetymk opened this issue Apr 14, 2015 · 1 comment
Closed

Segfault while passing arrays as argument to actors #118

albertnetymk opened this issue Apr 14, 2015 · 1 comment

Comments

@albertnetymk
Copy link
Contributor

class Agent {
  def init() : void {
    ();
  }

  def pass_arr(arr:[int]) : void {
    print arr[0];
  }

}

class Main {
  def main() : void {
    let
      l = 1*1000*1000
      arr = new [int](l)
      a = new Agent()
    in {
      a.pass_arr(arr);
    }
  }
}

After disabling GC for each actor, the above program still crashes. It's related to #116, but, maybe, it's a different bug.

@albertnetymk
Copy link
Contributor Author

Put gc_done(&actor->gc); in pony_create before return. It's already fixed in upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant