[Trilinos-Users] Tpetra::Vector::{replace, sumInto}GlobalValue() crashes

Nico Schlömer nico.schloemer at ua.ac.be
Wed Aug 18 17:11:26 MDT 2010


Okay so,

I noticed that guarding the {replace, sumInto}GlobalValue() like

===================== *snip* =====================
if ( map->getLocalElement(i0) != Teuchos::OrdinalTraits<ORD>::invalid()
)
    x->replaceGlobalValue( i0, val );
===================== *snap* =====================

makes the the corruption go away, indicating that the only thing
{replace, sumInto}GlobalValue() does for me is calling getLocalElement()
on the map before insertion.
Fair enough, I'm gonna need to make sure then that the corresponding
map allows access to this particular element.

Cheers,
Nico





On Wed, 18 Aug 2010 18:36:24 -0400, Nico Schlömer
<nico.schloemer at ua.ac.be> wrote:
> Hi,
> 
> I'm experiencing some ungraceful crashes here using either of
> 
>    Tpetra::Vector::replaceGlobalValue()
>    Tpetra::Vector::sumIntoGlobalValue()
> 
> with something like
> 
> ============================== *snip* ==============================
> *** glibc detected *** 
> ../build/mpi/executables/piro-driver/piro-driver.exe: double free or 
> corruption (out): 0x00000000028271c0 ***
> ======= Backtrace: =========
> /lib/libc.so.6(+0x72966)[0x7f2cefbcb966]
> /lib/libc.so.6(cfree+0x6c)[0x7f2cefbd071c]
> [...]
> ============================== *snap* ==============================
> 
> Their local equivalents work all right.
> 
> This is with Trilinos 10.4 on a simple two core build, openmpi 1.4.1, 
> GCC 4.4.3.
> 
> Anyone with similar experiences?
> 
> Cheers,
> Nico
> 
> 
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users





More information about the Trilinos-Users mailing list