Skip to Content.
Sympa Menu

charm - [charm] segfault upon migration

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

[charm] segfault upon migration


Chronological Thread 
  • From: Nicolas Bock <nicolasbock AT gmail.com>
  • To: "charm AT cs.uiuc.edu" <charm AT cs.uiuc.edu>
  • Subject: [charm] segfault upon migration
  • Date: Fri, 16 Aug 2013 17:02:43 -0600
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm/>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

Hi,

please have a look at the attached code. The code consists of two chare arrays, one holding some data, one doing some work. The main code calls a reduction on the Work array which gets information from the Data array to do something. When I run this (make run) on more than one PE with the GreedyCommLB load balancer the code segfaults at random points when the load balancer kicks in. I think what's going on is that the Data::info() call in Work::doSomething() suspends the chare and it just so happens that it sometimes is migrated while being suspended. If I comment out the code block that calls Data::info() the program executes just fine.

Is what I am thinking correct, or is there another problem in the code that I have overlooked?

Thanks already,

nick

Attachment: migration.tar.bz2
Description: BZip2 compressed data




Archive powered by MHonArc 2.6.16.

Top of Page