[Trilinos-Users] epetra map constructor gives error

Heroux, Michael A maherou at sandia.gov
Wed Aug 27 12:03:23 MDT 2014


Antonella,

I suggest running this through valgrind or another memory checking tool.
Also, you might consider compiling with ³-g -O0² to keep symbols and
prohibit optimization.  All of these things together should give you a
good idea of where the memory error is occurring.

Mike

On 8/27/14, 4:29 AM, "Antonella Longo" <longo at pi.ingv.it> wrote:

>I am using the constructor of epetra map:
>
> Epetra_Map::Epetra_Map(int NumGlobalElements,
>                       int NumMyElements,
>                       const int *MyGlobalElements,
>                       int IndexBase,
>    	               const Epetra_Comm &Comm);
>
>passing a std::vector<int> whose pointers and size are all well defined.
>Despite this, the contructor gives the following error message:
>-----------------------------------------------------------------------
>[compute-0-28:08547] *** Process received signal ***
>[compute-0-28:08547] Signal: Segmentation fault (11)
>[compute-0-28:08547] Signal code: Address not mapped (1)
>[compute-0-28:08547] Failing at address: 0xaea5a68
>[compute-0-28:08547] [ 0] /lib64/libpthread.so.0 [0x397360de70]
>[compute-0-28:08547] [ 1]
>./littlemesh(_ZN21Epetra_MpiDistributor15CreateFromSendsERKiPS0_bRi+0xaf)
>[0x53a85f]
>[compute-0-28:08547] [ 2]
>./littlemesh(_ZN21Epetra_MpiDistributor13ComputeSends_EiRPKiS2_RiRPiS5_i+0
>x26d) [0x53cc3d]
>[compute-0-28:08547] [ 3]
>./littlemesh(_ZN21Epetra_MpiDistributor15CreateFromRecvsERKiPS0_S2_bRiRPiS
>5_+0x82) [0x53cf42]
>[compute-0-28:08547] [ 4]
>./littlemesh(_ZN13Epetra_ImportC1ERK15Epetra_BlockMapS2_+0x486) [0x4ec4d6]
>[compute-0-28:08547] [ 5]
>./littlemesh(_ZN5GALES16shared_gales_mapI10Epetra_MapE12check_sharedEv+0x4
>11) [0x47e471]
>[compute-0-28:08547] [ 6]
>./littlemesh(_ZN5GALES9build_mapINS_16shared_gales_mapI10Epetra_MapEESt6ve
>ctorIiSaIiEEE6do_mapERKS6_+0x283) [0x4877c3]
>[compute-0-28:08547] [ 7] ./littlemesh(main+0x1423) [0x44cbc3]
>[compute-0-28:08547] [ 8] /lib64/libc.so.6(__libc_start_main+0xf4)
>[0x3972a1d8a4]
>[compute-0-28:08547] [ 9] ./littlemesh(__gxx_personality_v0+0x439)
>[0x442b19]
>[compute-0-28:08547] *** End of error message ***
>mpirun noticed that job rank 0 with PID 8546 on node compute-0-28 exited
>on signal 15 (Terminated).
>--------------------------------------------------------------------------
>-
>Which could be the cause of the error?
>
>-----------------------------------------------
>Antonella Longo
>Istituto Nazionale di Geofisica e Vulcanologia
>Sezione di Pisa
>Via Uguccione della Faggiola, 32
>Pisa, Italy
>Tel. office: 050 8311939
>Cell.: 339 7532089
>
>_______________________________________________
>Trilinos-Users mailing list
>Trilinos-Users at software.sandia.gov
>https://software.sandia.gov/mailman/listinfo/trilinos-users



More information about the Trilinos-Users mailing list