]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
valgrind on newsyn
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 28 Nov 2007 01:22:24 +0000 (01:22 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 28 Nov 2007 01:22:24 +0000 (01:22 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@2125 29311d96-e01e-0410-9327-a35deaab8ce9

trunk/ceph/messages/MClientReply.h
trunk/ceph/messages/MOSDPGQuery.h
trunk/ceph/msg/Message.h
trunk/ceph/valgrind.supp

index 8de58ba1bef0ff8acb91cf43a7934418e052c06d..71290843bb8f85bee80b8b4b2a750ac87ce7cf83 100644 (file)
@@ -141,6 +141,7 @@ struct InodeStat {
      * note: encoding matches struct ceph_client_reply_inode
      */
     struct ceph_client_reply_inode e;
+    memset(&e, 0, sizeof(e));
     e.ino = in->inode.ino;
     e.layout = in->inode.layout;
     e.ctime = in->inode.ctime.tv_ref();
index 70dbfdbb96fd7f4b90f921d5bd41ba0c3f77b10d..dc8ee664e5fd430a7891b32e411bfec258be8a57 100644 (file)
@@ -38,13 +38,12 @@ class MOSDPGQuery : public Message {
   char *get_type_name() { return "PGq"; }
 
   void encode_payload() {
-    payload.append((char*)&epoch, sizeof(epoch));
+    ::_encode(epoch, payload);
     ::_encode(pg_list, payload);
   }
   void decode_payload() {
     int off = 0;
-    payload.copy(off, sizeof(epoch), (char*)&epoch);
-    off += sizeof(epoch);
+    ::_decode(epoch, payload, off);
     ::_decode(pg_list, payload, off);
   }
 };
index 6bf468524b2ad90331a140ebaa076bfa94388fef..75b50c4be411ad34d6111325ff7fb227878acf78 100644 (file)
@@ -120,6 +120,7 @@ public:
   Message() { };
   Message(int t) {
     env.type = t;
+    env.data_off = 0;
   }
   virtual ~Message() { }
 
index 356df039050c409a31b8b2ba58153f681115dbc7..c46970e023a99d971979063d35223a9480026154 100644 (file)
    fun:_ZN4Rank10start_rankEv
    fun:main
 }
+{
+   <insert a suppression name here>
+   Memcheck:Param
+   socketcall.sendto(msg)
+   fun:send
+   fun:get_mapping
+   fun:__nscd_get_map_ref
+   fun:nscd_gethst_r
+   fun:__nscd_gethostbyname_r
+   fun:gethostbyname_r@@GLIBC_2.2.5
+   fun:gethostbyname
+   fun:_ZN4Rank8Accepter5startEv
+   fun:_ZN4Rank10start_rankEv
+   fun:_Z17mpi_bootstrap_newRiRPPcP6MonMap
+   fun:main
+}
 
 # gethostbyname
 
    obj:/lib/libc-2.6.1.so
 }
 
+# mpi on issdm
+{
+   <insert a suppression name here>
+   Memcheck:Overlap
+   fun:memcpy
+   fun:MPIR_Localcopy
+   fun:MPIR_Gather
+   fun:MPI_Gather
+   fun:_Z17mpi_bootstrap_newRiRPPcP6MonMap
+   fun:main
+}
+{
+   <insert a suppression name here>
+   Memcheck:Param
+   writev(vector[...])
+   fun:writev
+   fun:MPIDU_Sock_writev
+   fun:MPIDI_CH3_iStartMsgv
+   fun:MPIDI_CH3_EagerContigSend
+   fun:MPID_Send
+   fun:MPIC_Send
+   fun:MPIR_Bcast
+   fun:MPI_Bcast
+   fun:_Z17mpi_bootstrap_newRiRPPcP6MonMap
+   fun:main
+}
+{
+   <insert a suppression name here>
+   Memcheck:Param
+   write(buf)
+   obj:/lib64/tls/libpthread-2.3.4.so
+   fun:MPIDU_Sock_write
+   fun:MPIDI_CH3_iSend
+   fun:MPID_Isend
+   fun:MPIC_Sendrecv
+   fun:MPIR_Barrier
+   fun:MPI_Barrier
+   fun:_Z17mpi_bootstrap_newRiRPPcP6MonMap
+   fun:main
+}
+{
+   <insert a suppression name here>
+   Memcheck:Param
+   write(buf)
+   obj:/lib64/tls/libpthread-2.3.4.so
+   fun:MPIDU_Sock_write
+   fun:MPIDI_CH3_iStartMsg
+   fun:MPIDI_CH3U_VC_SendClose
+   fun:MPIDI_PG_Close_VCs
+   fun:MPID_Finalize
+   fun:MPI5:    <insert a suppression name here>
+   fun:main
+}
+{
+   <insert a suppression name 5:    obj:/lib64/tls/libpthread-2.3.4.so
+   Memcheck:Param
+   write(buf)
+   obj:/lib64/tls/libpthread-2.3.4.so
+   fun:MPIDU_Sock_write
+   fun:MPIDI_CH3_iStartMsg
+   fun:MPIDI_CH3_PktHandler_Close
+   fun:MPIDI_CH3I_Progress_handle_sock_event
+   fun:MPIDI_CH3_Progress_wait
+   fun:MPIDI_CH3U_VC_WaitForClose
+   fun:MPID_Finalize
+   fun:MPI_Finalize
+   fun:main
+}
+{
+   <insert a suppression name here>
+   Memcheck:Param
+   write(buf)
+   obj:/lib64/tls/libpthread-2.3.4.so
+   fun:MPIDU_Sock_write
+   fun:MPIDI_CH3_iSend
+   fun:MPID_Isend
+   fun:MPIC_Sendrecv
+   fun:MPIR_Barrier
+   fun:MPI_Barrier
+   fun:main
+}
+{
+   <insert a suppression name here>
+   Memcheck:Param
+   write(buf)
+   obj:/lib64/tls/libpthread-2.3.4.so
+   fun:MPIDU_Sock_write
+   fun:MPIDI_CH3_iStartMsg
+   fun:MPIDI_CH3U_VC_SendClose
+   fun:MPIDI_PG_Close_VCs
+   fun:MPID_Finalize
+   fun:MPI_Finalize
+   fun:main
+}
+ {
+   <insert a suppression name here>
+   Memcheck:Param
+   writev(vector[...])
+   fun:writev
+   fun:MPIDU_Socki_handle_write
+   fun:MPIDU_Sock_wait
+   fun:MPIDI_CH3_Progress_wait
+   fun:MPIC_Wait
+   fun:MPIC_Send
+   fun:MPIR_Gather
+   fun:MPI_Gather
+   fun:_Z17mpi_bootstrap_newRiRPPcP6MonMap
+   fun:main
+}
+