HP gnu source-level debugger 5992-4701 User Manual Page 175

  • Download
  • Add to my manuals
  • Print
  • Page
    / 369
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 174
Syntax:
info corruption [<file name>]
The run time memory checking must be enabled before using the info corruption
command to detect memory corruption. The corruption information is written to a file
specified in the .file name argument if provided. Otherwise, it is printed to the
stdout.
NOTE: Turning on bounds checking increases the program's memory requirements
because the extra guard bytes must be allocated at the beginning and end of each block.
14.10.8.3 Stop when a specified block address is allocated or deallocated
To stop a program whenever a block at a specified address is allocated or deallocated,
use the command:
set heap-check watch address
You can use this to debug situations such as multiple free() calls to the same block.
Limitation : This is not supported in batch mode debugging.
14.10.8.4 Scramble previous memory contents at malloc/free calls
WDB enables you to potentially expose latent memory access defects with the command:
In Interactive debugging mode: set heap-check scramble [on | off]
In batch mode debugging: scramble_blocks [on | off].
When this setting is turned on, any time a memory block is allocated or deallocated,
WDB scrambles the space and overwrites it with a specific pattern.
This change to the memory contents increases the chance that erroneous behaviors will
cause the program to fail. Examples of such behavior include attempting to access space
that is freed or depending on initial values of malloc() blocks.
You can now look at the stack trace to understand where and how the problem occurred.
NOTE: Turning on scrambling slows down the program slightly, because at every
malloc() and free() call, the space involved must be overwritten.
14.10.8.5 Detect dangling pointers and dangling blocks
A pointer is a Dangling pointer if the block of memory it points to, has been freed by
the application. The block is called Dangling Block.
The same freed block could be subsequently allocated to the application in response
to another memory allocation request. In this scenario, if the application incorrectly
tries to write into the freed memory block using the dangling pointer, it could result
in incorrect or an undefined program behavior, as the new owner or function owning
the same allocated block would nd different values in the heap block.
14.10 Debugging Memory Problems 175
Page view 174
1 2 ... 170 171 172 173 174 175 176 177 178 179 180 ... 368 369

Comments to this Manuals

No comments

Foremost AV equipment stands user manuals

The list of Foremost AV equipment stands products contains 12 user manuals for 12 models. All pdf user’s guides are available for download or viewing online.

Click on an alphabet below to scroll to the full list of models starting with that letter

Models Document Type
GAGM2432
Instruction Manual     Foremost GAGM2432 Instructions / Assembly, 4 pages
GAWW1924
Installation Guide   Foremost GAWW1924 Installation Guide, 4 pages
KOWA1934COMBO
Instruction Manual   Foremost KOWA1934COMBO Instructions / Assembly, 10 pages
KOWS0824
Instruction Manual   Foremost KOWS0824 Instructions / Assembly, 4 pages
NADGAT7222D
Instruction Manual     Foremost NADGAT7222D Instructions / Assembly, 5 pages
NADGL2474
Instruction Manual     Foremost NADGL2474 Instructions / Assembly, 4 pages
RACW1519
Instruction Manual   Foremost RACW1519 Instructions / Assembly, 5 pages
RACWH2015
Installation Guide     Foremost RACWH2015 Installation Guide, 5 pages
TENA3022
Instruction Manual     Foremost TENA3022 Instructions / Assembly, 4 pages
TENA5822D
Instruction Manual     Foremost TENA5822D Instructions / Assembly, 6 pages
TENW2528
Instruction Manual     Foremost TENW2528 Instructions / Assembly, 4 pages
WWMB1222
Instruction Manual     Foremost WWMB1222 Instructions / Assembly, 12 pages