Lines Matching refs:backtrace
34 backtrace related to the allocation. Starting in P, every single realloc
35 call changes the backtrace for the pointer no matter whether the pointer
55 If the backtrace option is also enabled, then any error message will include
56 the backtrace of the allocation site.
99 ### backtrace[=MAX\_FRAMES]
100 Enable capturing the backtrace of each allocation site.
105 Note that any backtrace frames that occur within the malloc backtrace library
109 capture in a backtrace. The default is 16 frames, the maximumum value
113 the backtrace and information about the original allocation. After that, this
116 As of P, this option will also enable dumping backtrace heap data to a
120 to the file /data/local/tmp/backtrace\_heap.**PID**.txt. This is useful when
127 ### backtrace\_enable\_on\_signal[=MAX\_FRAMES]
128 Enable capturing the backtrace of each allocation site. If the
129 backtrace capture is toggled when the process receives the signal
131 option is used alone, backtrace capture starts out disabled until the signal
132 is received. If both this option and the backtrace option are set, then
133 backtrace capture is enabled until the signal is received.
136 capture in a backtrace. The default is 16 frames, the maximumum value
140 the backtrace and information about the original allocation. After that, this
143 ### backtrace\_dump\_on\_exit
144 As of P, when the backtrace option has been enabled, this causes the backtrace
145 dump heap data to be dumped to a file when the program exits. If the backtrace
147 to the file named /data/local/tmp/backtrace\_heap.**PID**.exit.txt.
149 The file location can be changed by setting the backtrace\_dump\_prefix
152 ### backtrace\_dump\_prefix
153 As of P, when one of the backtrace options has been enabled, this sets the
155 the program exits and backtrace\_dump\_on\_exit is set.
157 The default is /data/local/tmp/backtrace\_heap.
160 on the signal will be backtrace\_dump\_prefix.**PID**.txt. The filename chosen
161 when the program exits will be backtrace\_dump\_prefix.**PID**.exit.txt.
163 ### backtrace\_min\_size=ALLOCATION\_SIZE\_BYTES
164 As of U, setting this in combination with the backtrace option means
167 with the backtrace\_max\_size option, then allocations greater than or
168 equal to backtrace\_min\_size and less than or equal to
169 backtrace\_max\_size will be backtraced. The backtrace\_size option
176 ### backtrace\_max\_size=ALLOCATION\_SIZE\_BYTES
177 As of U, setting this in combination with the backtrace option means
180 with the backtrace\_min\_size option, then allocations greater than or
181 equal to backtrace\_min\_size and less than or equal to
182 backtrace\_max\_size will be backtraced. The backtrace\_size option
189 ### backtrace\_size=ALLOCATION\_SIZE\_BYTES
190 As of U, setting this in combination with the backtrace option means
192 This option overrides the backtrace\_min\_size and the backtrace\_max\_size.
198 ### backtrace\_full
199 As of Q, any time that a backtrace is gathered, a different algorithm is used
204 As of U, add shorter aliases for backtrace related options to avoid property length restrictions.
208 | bt | backtrace |
209 | bt\_dmp\_on\_ex | backtrace\_dump\_on\_exit |
210 | bt\_dmp\_pre | backtrace\_dump\_prefix |
211 | bt\_en\_on\_sig | backtrace\_enable\_on\_signal |
212 | bt\_full | backtrace\_full |
213 | bt\_max\_sz | backtrace\_max\_size |
214 | bt\_min\_sz | backtrace\_min\_size |
215 | bt\_sz | backtrace\_size |
269 entire allocation is filled with the value 0xef, and the backtrace at
270 the time of the free is recorded. The backtrace recording is completely
271 separate from the backtrace option, and happens automatically if this
287 the backtrace and information about the original allocation. After that, this
310 backtrace frames to capture when an allocation is freed.
313 If the value is set to zero, then no backtrace will be captured when the
319 allocations will be dumped to the log. If the backtrace option was enabled,
320 then the log will include the backtrace of the leaked allocations. This
325 the backtrace and information about the original allocation. After that, this
499 …070 557 557 I malloc_debug: /system/bin/audioserver: Run: 'kill -47 557' to dump the backtrace.
547 This section describes the format of the backtrace heap dump. This data is
560 Backtrace size is the maximum number of backtrace frames that can be present.
575 same backtrace.
576 FRAMES is a list of instruction pointers that represent the backtrace of the
585 with this backtrace/size and a backtrace of 0xa230, 0xb500.
588 backtrace/size and a backtrace of 0xb000, 0xc000.
623 The new version no longer 0 pads the backtrace addresses. In v1.0/v1.1:
631 In addition, when the new option backtrace\_full is used, another line will
632 be added to every backtrace line. The line will be:
636 For each backtrace pc, there will be one element in braces.
638 MAP\_NAME is the name of the map in which the backtrace pc exists. If there is
651 In this example, the first backtrace frame has a pc of 0xa2a0 and is in the
654 The second backtrace frame has a pc of 0xb510 and is in the map named
663 Enable backtrace tracking of all allocation for all processes:
666 adb shell setprop libc.debug.malloc.options backtrace
669 Enable backtrace tracking for a specific process (ls):
671 adb shell setprop libc.debug.malloc.options backtrace
675 Enable backtrace tracking for the zygote and zygote based processes:
679 adb shell setprop libc.debug.malloc.options backtrace
682 Enable multiple options (backtrace and guard):
685 adb shell setprop libc.debug.malloc.options "\"backtrace guard\""
690 inner layer of quoting is sent to the device, to make 'backtrace guard'
697 # setprop libc.debug.malloc.options backtrace
704 # export LIBC_DEBUG_MALLOC_OPTIONS=backtrace
708 using the backtrace option.
711 adb shell setprop libc.debug.malloc.options backtrace
715 It is possible to use the backtrace\_enable\_on\_signal option as well,
736 adb shell setprop wrap.<APP> '"LIBC_DEBUG_MALLOC_OPTIONS=backtrace logwrapper"'
741 … adb shell setprop wrap.<APP> '"LIBC_DEBUG_MALLOC_OPTIONS=backtrace\ leak_track\ fill logwrapper"'
745 …rop wrap.com.google.android.googlequicksearchbox '"LIBC_DEBUG_MALLOC_OPTIONS=backtrace logwrapper"'
773 occurring. If you enable malloc debug with the backtrace option for your