charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew()
Chronological Thread
- From: Jozsef Bakosi <jbakosi AT gmail.com>
- To: Phil Miller <mille121 AT illinois.edu>, "charm AT cs.uiuc.edu" <charm AT cs.uiuc.edu>
- Subject: Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew()
- Date: Wed, 23 Nov 2016 08:46:56 -0700
Alright, here is what I have found.
The problem can be reproduced with the unmodified example in charm/examples/charm++/reductions/typed_reduction, which segfaults at the same memcpy, tested with valgrind, only on cray, linux/openmpi is fine).
It only segfaults with the gcc/6.1.0 cray module and only if any optimization is used: i.e., -O0 is okay, -O[123] fails.
Swapping the gcc module to gcc/5.3.0 solves the problem: both debug and opt buld are fine with this earlier gcc version.
PrgEnv-intel/6.0.3 is also fine (only tried -O3).
A side question: Is it safe to reduce a uint64_t using CkReduction::sum_int? It appears to be so, but I'd like to be sure.
Jozsef
On Tue, Nov 22, 2016 at 10:19 PM, Phil Miller <mille121 AT illinois.edu> wrote:
On Tue, Nov 22, 2016 at 11:12 PM, Jozsef Bakosi <jbakosi AT gmail.com> wrote:- What build configuration are you using on the Cray system? gni-crayxc? mpi-crayxc? smp or no? The full ./build command line would be useful, along with output from 'module list'No smp. The build command and modules:$ build charm++ mpi-crayxc --with-production -j40 -O3 -DNDEBUGAs you explore further, could you test out a build without the optimization flags above, and with -g? It would be useful to know if this is a case where compiler optimizations are changing behavior - likely indicating that the code is doing something invalid in the vicinity, but potentially a compiler bug.In the same vein, could you try with an earlier version of the gcc module loaded, maybe a 4.8.x or 4.9.x? Or with Intel's compiler and corresponding PrgEnv-intel module?
- [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Jozsef Bakosi, 11/22/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Phil Miller, 11/22/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Jozsef Bakosi, 11/22/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Phil Miller, 11/22/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Jozsef Bakosi, 11/23/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Phil Miller, 11/23/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Jozsef Bakosi, 11/23/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Phil Miller, 11/23/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Jozsef Bakosi, 11/23/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Jozsef Bakosi, 11/23/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Phil Miller, 11/23/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Jozsef Bakosi, 11/23/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Phil Miller, 11/22/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Jozsef Bakosi, 11/22/2016
- Re: [charm] Use of uninitialised value of size 8 from CkReductionMsg::buildNew(), Phil Miller, 11/22/2016
Archive powered by MHonArc 2.6.19.