Lines Matching refs:Block
152 // Program tried to free() something that's not a heap block (this
158 // Program allocates heap block with one function
166 Addr src; // Source block
167 Addr dst; // Destination block
845 ai->Addr.Block.block_kind = Block_Mallocd; // Nb: Not 'Block_Freed'
846 ai->Addr.Block.block_desc = "block";
847 ai->Addr.Block.block_szB = mc->szB;
848 ai->Addr.Block.rwoffset = 0;
849 ai->Addr.Block.allocated_at = MC_(allocated_at) (mc);
850 VG_(initThreadInfo) (&ai->Addr.Block.alloc_tinfo);
851 ai->Addr.Block.freed_at = MC_(freed_at) (mc);
1030 /* -- Perhaps it's a user-named block? -- */
1034 /* -- Perhaps it's in mempool block? -- */
1040 Custom blocks can be on both : a recently freed block might
1042 So, first search the malloc-ed block, as the most recent
1043 block is the probable cause of error.
1045 block. */
1046 /* -- Search for a currently malloc'd block which might bracket it. -- */
1051 ai->Addr.Block.block_kind = Block_Mallocd;
1053 ai->Addr.Block.block_desc = "recently re-allocated block";
1055 ai->Addr.Block.block_desc = "block";
1056 ai->Addr.Block.block_szB = mc->szB;
1057 ai->Addr.Block.rwoffset = (Word)a - (Word)mc->data;
1058 ai->Addr.Block.allocated_at = MC_(allocated_at)(mc);
1059 VG_(initThreadInfo) (&ai->Addr.Block.alloc_tinfo);
1060 ai->Addr.Block.freed_at = MC_(freed_at)(mc);
1064 /* -- Search for a recently freed block which might bracket it. -- */
1068 ai->Addr.Block.block_kind = Block_Freed;
1069 ai->Addr.Block.block_desc = "block";
1070 ai->Addr.Block.block_szB = mc->szB;
1071 ai->Addr.Block.rwoffset = (Word)a - (Word)mc->data;
1072 ai->Addr.Block.allocated_at = MC_(allocated_at)(mc);
1073 VG_(initThreadInfo) (&ai->Addr.Block.alloc_tinfo);
1074 ai->Addr.Block.freed_at = MC_(freed_at)(mc);
1078 /* No block found. Search a non-heap block description. */
1171 // detected. However, the address may be part of a user block, and if so
1172 // we override the pre-determined description with a user block one.
1175 extra->Err.FreeMismatch.ai.Addr.Block.block_kind);
1197 /* Perhaps it's a general block ? */
1204 ai->Addr.Block.block_kind = Block_UserG;
1205 ai->Addr.Block.block_desc = cgbs[i].desc;
1206 ai->Addr.Block.block_szB = cgbs[i].size;
1207 ai->Addr.Block.rwoffset = (Word)(a) - (Word)(cgbs[i].start);
1208 ai->Addr.Block.allocated_at = cgbs[i].where;
1209 VG_(initThreadInfo) (&ai->Addr.Block.alloc_tinfo);
1210 ai->Addr.Block.freed_at = VG_(null_ExeContext)();;
1232 ai->Addr.Block.block_kind = Block_MempoolChunk;
1233 ai->Addr.Block.block_desc = "block";
1234 ai->Addr.Block.block_szB = mc->szB;
1235 ai->Addr.Block.rwoffset = (Word)a - (Word)mc->data;
1236 ai->Addr.Block.allocated_at = MC_(allocated_at)(mc);
1237 VG_(initThreadInfo) (&ai->Addr.Block.alloc_tinfo);
1238 ai->Addr.Block.freed_at = MC_(freed_at)(mc);