[petsc-dev] valgrind errors in hypre runs
Barry Smith
bsmith at mcs.anl.gov
Sat Jan 16 12:34:37 CST 2016
Hypre folks,
When running PETSc examples with hypre we see valgrind warning messages about copying uninitialized data in MPI calls in hype. This is cause by hypre allocating some buffer space, but only putting values in part of the buffer and then sending the entire buffer via MPI to some other process. Technically this is not an "error" if you never access the non initialized data on the receiver process but it makes valgrind unusable for finding TRUE memory issues (since the output is filled with false positives).
The issue could be fixed by either 1) initializing the complete buffer allocated (for example when it is malloced), then MPI won't see uninitialized data or better IMHO 2) send shorter messages that don't contain this part of the buffer that is never used anyway.
Thanks
Barry
> ==17317== Syscall param writev(vector[...]) points to uninitialised byte(s)
> ==17317== at 0xE11ACDB: writev (writev.c:51)
> ==17317== by 0xDAC9596: MPL_large_writev (mplsock.c:32)
> ==17317== by 0xDAB8DC9: MPIDU_Sock_writev (sock_immed.i:610)
> ==17317== by 0xDA760DD: MPIDI_CH3_iStartMsgv (ch3_istartmsgv.c:110)
> ==17317== by 0xDA42DF3: MPIDI_CH3_EagerContigSend (ch3u_eager.c:182)
> ==17317== by 0xDA5FB6A: MPID_Send (mpid_send.c:143)
> ==17317== by 0xD93C26B: PMPI_Send (send.c:127)
> ==17317== by 0x695317B: hypre_MPI_Send (mpistubs.c:988)
> ==17317== by 0x6950F50: hypre_DataExchangeList (exchange_data.c:392)
> ==17317== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17317== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17317== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17317== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17317== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17317== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17317== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17317== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17317== by 0x405E42: main (ex10.c:316)
> ==17317== Address 0xf54fe38 is 8 bytes inside a block of size 28 alloc'd
> ==17317== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17317== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17317== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17317== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17317== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17317== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17317== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17317== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17317== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17317== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17317== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17317== by 0x405E42: main (ex10.c:316)
> ==17317== Uninitialised value was created by a heap allocation
> ==17317== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17317== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17317== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17317== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17317== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17317== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17317== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17317== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17317== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17317== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17317== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17317== by 0x405E42: main (ex10.c:316)
> ==17317==
> ==17318== Syscall param writev(vector[...]) points to uninitialised byte(s)
> ==17318== at 0xE11ACDB: writev (writev.c:51)
> ==17318== by 0xDAC9596: MPL_large_writev (mplsock.c:32)
> ==17318== by 0xDAB8DC9: MPIDU_Sock_writev (sock_immed.i:610)
> ==17318== by 0xDA760DD: MPIDI_CH3_iStartMsgv (ch3_istartmsgv.c:110)
> ==17318== by 0xDA42DF3: MPIDI_CH3_EagerContigSend (ch3u_eager.c:182)
> ==17319== Syscall param writev(vector[...]) points to uninitialised byte(s)
> ==17318== by 0xDA5FB6A: MPID_Send (mpid_send.c:143)
> ==17319== at 0xE11ACDB: writev (writev.c:51)
> ==17319== by 0xDAC9596: MPL_large_writev (mplsock.c:32)
> ==17319== by 0xDAB8DC9: MPIDU_Sock_writev (sock_immed.i:610)
> ==17319== by 0xDA760DD: MPIDI_CH3_iStartMsgv (ch3_istartmsgv.c:110)
> ==17319== by 0xDA42DF3: MPIDI_CH3_EagerContigSend (ch3u_eager.c:182)
> ==17319== by 0xDA5FB6A: MPID_Send (mpid_send.c:143)
> ==17319== by 0xD93C26B: PMPI_Send (send.c:127)
> ==17319== by 0x695317B: hypre_MPI_Send (mpistubs.c:988)
> ==17319== by 0x6950F50: hypre_DataExchangeList (exchange_data.c:392)
> ==17319== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17319== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17319== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17319== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17319== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17318== by 0xD93C26B: PMPI_Send (send.c:127)
> ==17318== by 0x695317B: hypre_MPI_Send (mpistubs.c:988)
> ==17318== by 0x6950F50: hypre_DataExchangeList (exchange_data.c:392)
> ==17318== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17319== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17318== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17318== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17318== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17318== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17318== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17318== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17318== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17318== by 0x405E42: main (ex10.c:316)
> ==17318== Address 0xf4dd578 is 8 bytes inside a block of size 28 alloc'd
> ==17318== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17318== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17318== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17318== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17318== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17318== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17318== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17318== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17318== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17318== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17318== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17318== by 0x405E42: main (ex10.c:316)
> ==17318== Uninitialised value was created by a heap allocation
> ==17318== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17318== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17318== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17318== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17318== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17318== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17318== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17318== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17318== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17318== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17318== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17318== by 0x405E42: main (ex10.c:316)
> ==17318==
> ==17319== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17319== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17319== by 0x405E42: main (ex10.c:316)
> ==17319== Address 0xf4dcfb8 is 8 bytes inside a block of size 28 alloc'd
> ==17319== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17319== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17319== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17319== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17319== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17319== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17319== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17319== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17319== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17319== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17319== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17319== by 0x405E42: main (ex10.c:316)
> ==17319== Uninitialised value was created by a heap allocation
> ==17319== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17319== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17319== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17319== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17319== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17319== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17319== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17319== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17319== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17319== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17319== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17319== by 0x405E42: main (ex10.c:316)
> ==17319==
/sandbox/petsc/petsc.clone/src/ksp/ksp/examples/tutorials
Possible problem with ex10_17, diffs above
=========================================
0a1,92
> ==17384== Syscall param writev(vector[...]) points to uninitialised byte(s)
> ==17384== at 0xE11ACDB: writev (writev.c:51)
> ==17384== by 0xDAC9596: MPL_large_writev (mplsock.c:32)
> ==17384== by 0xDAB8DC9: MPIDU_Sock_writev (sock_immed.i:610)
> ==17384== by 0xDA760DD: MPIDI_CH3_iStartMsgv (ch3_istartmsgv.c:110)
> ==17384== by 0xDA42DF3: MPIDI_CH3_EagerContigSend (ch3u_eager.c:182)
> ==17384== by 0xDA5FB6A: MPID_Send (mpid_send.c:143)
> ==17384== by 0xD93C26B: PMPI_Send (send.c:127)
> ==17384== by 0x695317B: hypre_MPI_Send (mpistubs.c:988)
> ==17384== by 0x6950F50: hypre_DataExchangeList (exchange_data.c:392)
> ==17384== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17384== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17384== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17384== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17384== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17384== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17384== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17384== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17384== by 0x405E42: main (ex10.c:316)
> ==17384== Address 0xf49cf38 is 8 bytes inside a block of size 28 alloc'd
> ==17384== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17384== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17384== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17384== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17384== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17384== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17384== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17384== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17384== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17384== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17384== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17384== by 0x405E42: main (ex10.c:316)
> ==17384== Uninitialised value was created by a heap allocation
> ==17384== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17384== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17384== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17384== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17384== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17384== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17384== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17384== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17384== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17384== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17384== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17384== by 0x405E42: main (ex10.c:316)
> ==17384==
> ==17383== Syscall param writev(vector[...]) points to uninitialised byte(s)
> ==17383== at 0xE11ACDB: writev (writev.c:51)
> ==17383== by 0xDAC9596: MPL_large_writev (mplsock.c:32)
> ==17383== by 0xDAB8DC9: MPIDU_Sock_writev (sock_immed.i:610)
> ==17383== by 0xDA760DD: MPIDI_CH3_iStartMsgv (ch3_istartmsgv.c:110)
> ==17383== by 0xDA42DF3: MPIDI_CH3_EagerContigSend (ch3u_eager.c:182)
> ==17383== by 0xDA5FB6A: MPID_Send (mpid_send.c:143)
> ==17383== by 0xD93C26B: PMPI_Send (send.c:127)
> ==17383== by 0x695317B: hypre_MPI_Send (mpistubs.c:988)
> ==17383== by 0x6950F50: hypre_DataExchangeList (exchange_data.c:392)
> ==17383== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17383== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17383== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17383== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17383== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17383== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17383== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17383== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17383== by 0x405E42: main (ex10.c:316)
> ==17383== Address 0xf5418d8 is 8 bytes inside a block of size 28 alloc'd
> ==17383== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17383== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17383== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17383== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17383== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17383== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17383== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17383== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17383== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17383== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17383== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17383== by 0x405E42: main (ex10.c:316)
> ==17383== Uninitialised value was created by a heap allocation
> ==17383== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17383== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17383== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17383== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17383== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17383== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17383== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17383== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17383== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17383== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17383== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17383== by 0x405E42: main (ex10.c:316)
> ==17383==
/sandbox/petsc/petsc.clone/src/ksp/ksp/examples/tutorials
Possible problem with ex10_boomeramg_schwarz, diffs above
=========================================
0a1,92
> ==17445== Syscall param writev(vector[...]) points to uninitialised byte(s)
> ==17445== at 0xE11ACDB: writev (writev.c:51)
> ==17445== by 0xDAC9596: MPL_large_writev (mplsock.c:32)
> ==17445== by 0xDAB8DC9: MPIDU_Sock_writev (sock_immed.i:610)
> ==17445== by 0xDA760DD: MPIDI_CH3_iStartMsgv (ch3_istartmsgv.c:110)
> ==17445== by 0xDA42DF3: MPIDI_CH3_EagerContigSend (ch3u_eager.c:182)
> ==17445== by 0xDA5FB6A: MPID_Send (mpid_send.c:143)
> ==17445== by 0xD93C26B: PMPI_Send (send.c:127)
> ==17445== by 0x695317B: hypre_MPI_Send (mpistubs.c:988)
> ==17445== by 0x6950F50: hypre_DataExchangeList (exchange_data.c:392)
> ==17445== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17445== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17445== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17445== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17445== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17445== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17445== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17445== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17445== by 0x405E42: main (ex10.c:316)
> ==17445== Address 0xf49df88 is 8 bytes inside a block of size 28 alloc'd
> ==17445== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17445== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17445== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17445== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17445== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17445== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17445== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17445== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17445== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17445== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17445== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17445== by 0x405E42: main (ex10.c:316)
> ==17445== Uninitialised value was created by a heap allocation
> ==17445== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17445== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17445== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17445== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17445== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17445== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17445== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17445== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17445== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17445== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17445== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17445== by 0x405E42: main (ex10.c:316)
> ==17445==
> ==17444== Syscall param writev(vector[...]) points to uninitialised byte(s)
> ==17444== at 0xE11ACDB: writev (writev.c:51)
> ==17444== by 0xDAC9596: MPL_large_writev (mplsock.c:32)
> ==17444== by 0xDAB8DC9: MPIDU_Sock_writev (sock_immed.i:610)
> ==17444== by 0xDA760DD: MPIDI_CH3_iStartMsgv (ch3_istartmsgv.c:110)
> ==17444== by 0xDA42DF3: MPIDI_CH3_EagerContigSend (ch3u_eager.c:182)
> ==17444== by 0xDA5FB6A: MPID_Send (mpid_send.c:143)
> ==17444== by 0xD93C26B: PMPI_Send (send.c:127)
> ==17444== by 0x695317B: hypre_MPI_Send (mpistubs.c:988)
> ==17444== by 0x6950F50: hypre_DataExchangeList (exchange_data.c:392)
> ==17444== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17444== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17444== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17444== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17444== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17444== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17444== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17444== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17444== by 0x405E42: main (ex10.c:316)
> ==17444== Address 0xf542928 is 8 bytes inside a block of size 28 alloc'd
> ==17444== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17444== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17444== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17444== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17444== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17444== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17444== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17444== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17444== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17444== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17444== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17444== by 0x405E42: main (ex10.c:316)
> ==17444== Uninitialised value was created by a heap allocation
> ==17444== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17444== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17444== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17444== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17444== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17444== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17444== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17444== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17444== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17444== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17444== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17444== by 0x405E42: main (ex10.c:316)
> ==17444==
/sandbox/petsc/petsc.clone/src/ksp/ksp/examples/tutorials
Possible problem with ex10_boomeramg_parasails, diffs above
=========================================
0a1,92
> ==17505== Syscall param writev(vector[...]) points to uninitialised byte(s)
> ==17505== at 0xE11ACDB: writev (writev.c:51)
> ==17505== by 0xDAC9596: MPL_large_writev (mplsock.c:32)
> ==17505== by 0xDAB8DC9: MPIDU_Sock_writev (sock_immed.i:610)
> ==17505== by 0xDA760DD: MPIDI_CH3_iStartMsgv (ch3_istartmsgv.c:110)
> ==17505== by 0xDA42DF3: MPIDI_CH3_EagerContigSend (ch3u_eager.c:182)
> ==17505== by 0xDA5FB6A: MPID_Send (mpid_send.c:143)
> ==17505== by 0xD93C26B: PMPI_Send (send.c:127)
> ==17505== by 0x695317B: hypre_MPI_Send (mpistubs.c:988)
> ==17505== by 0x6950F50: hypre_DataExchangeList (exchange_data.c:392)
> ==17505== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17505== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17505== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17505== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17505== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17505== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17505== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17505== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17505== by 0x405E42: main (ex10.c:316)
> ==17505== Address 0xf49df88 is 8 bytes inside a block of size 28 alloc'd
> ==17505== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17505== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17505== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17505== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17505== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17505== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17505== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17505== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17505== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17505== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17505== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17505== by 0x405E42: main (ex10.c:316)
> ==17505== Uninitialised value was created by a heap allocation
> ==17505== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17505== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17505== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17505== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17505== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17505== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17505== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17505== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17505== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17505== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17505== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17505== by 0x405E42: main (ex10.c:316)
> ==17505==
> ==17504== Syscall param writev(vector[...]) points to uninitialised byte(s)
> ==17504== at 0xE11ACDB: writev (writev.c:51)
> ==17504== by 0xDAC9596: MPL_large_writev (mplsock.c:32)
> ==17504== by 0xDAB8DC9: MPIDU_Sock_writev (sock_immed.i:610)
> ==17504== by 0xDA760DD: MPIDI_CH3_iStartMsgv (ch3_istartmsgv.c:110)
> ==17504== by 0xDA42DF3: MPIDI_CH3_EagerContigSend (ch3u_eager.c:182)
> ==17504== by 0xDA5FB6A: MPID_Send (mpid_send.c:143)
> ==17504== by 0xD93C26B: PMPI_Send (send.c:127)
> ==17504== by 0x695317B: hypre_MPI_Send (mpistubs.c:988)
> ==17504== by 0x6950F50: hypre_DataExchangeList (exchange_data.c:392)
> ==17504== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17504== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17504== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17504== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17504== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17504== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17504== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17504== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17504== by 0x405E42: main (ex10.c:316)
> ==17504== Address 0xf542928 is 8 bytes inside a block of size 28 alloc'd
> ==17504== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17504== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17504== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17504== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17504== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17504== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17504== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17504== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17504== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17504== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17504== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17504== by 0x405E42: main (ex10.c:316)
> ==17504== Uninitialised value was created by a heap allocation
> ==17504== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
> ==17504== by 0x69518E1: hypre_MAlloc (hypre_memory.c:62)
> ==17504== by 0x695083F: hypre_DataExchangeList (exchange_data.c:212)
> ==17504== by 0x68A49F2: hypre_NewCommPkgCreate_core (new_commpkg.c:267)
> ==17504== by 0x68A799F: hypre_MatvecCommPkgCreate (par_csr_communication.c:478)
> ==17504== by 0x6878EB9: hypre_BoomerAMGCreateS (par_strength.c:190)
> ==17504== by 0x67F90FD: hypre_BoomerAMGSetup (par_amg_setup.c:883)
> ==17504== by 0x67EDBFD: HYPRE_BoomerAMGSetup (HYPRE_parcsr_amg.c:52)
> ==17504== by 0x5FAB506: PCSetUp_HYPRE (hypre.c:229)
> ==17504== by 0x5DA8CFA: PCSetUp (precon.c:984)
> ==17504== by 0x6023C6F: KSPSetUp (itfunc.c:390)
> ==17504== by 0x405E42: main (ex10.c:316)
> ==17504==
7c99
< Residual norm 8.60096e-11
---
More information about the petsc-dev
mailing list