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\_full
164 As of Q, any time that a backtrace is gathered, a different algorithm is used
197 entire allocation is filled with the value 0xef, and the backtrace at
198 the time of the free is recorded. The backtrace recording is completely
199 separate from the backtrace option, and happens automatically if this
215 the backtrace and information about the original allocation. After that, this
238 backtrace frames to capture when an allocation is freed.
241 If the value is set to zero, then no backtrace will be captured when the
247 allocations will be dumped to the log. If the backtrace option was enabled,
248 then the log will include the backtrace of the leaked allocations. This
253 the backtrace and information about the original allocation. After that, this
417 …070 557 557 I malloc_debug: /system/bin/audioserver: Run: 'kill -47 557' to dump the backtrace.
465 This section describes the format of the backtrace heap dump. This data is
478 Backtrace size is the maximum number of backtrace frames that can be present.
493 same backtrace.
494 FRAMES is a list of instruction pointers that represent the backtrace of the
503 with this backtrace/size and a backtrace of 0xa230, 0xb500.
506 backtrace/size and a backtrace of 0xb000, 0xc000.
541 The new version no longer 0 pads the backtrace addresses. In v1.0/v1.1:
549 In addition, when the new option backtrace\_full is used, another line will
550 be added to every backtrace line. The line will be:
554 For each backtrace pc, there will be one element in braces.
556 MAP\_NAME is the name of the map in which the backtrace pc exists. If there is
569 In this example, the first backtrace frame has a pc of 0xa2a0 and is in the
572 The second backtrace frame has a pc of 0xb510 and is in the map named
584 Enable backtrace tracking of all allocation for all processes:
587 adb shell setprop libc.debug.malloc.options backtrace
590 Enable backtrace tracking for a specific process (ls):
592 adb shell setprop libc.debug.malloc.options backtrace
596 Enable backtrace tracking for the zygote and zygote based processes:
600 adb shell setprop libc.debug.malloc.options backtrace
603 Enable multiple options (backtrace and guard):
606 adb shell setprop libc.debug.malloc.options "\"backtrace guard\""
611 inner layer of quoting is sent to the device, to make 'backtrace guard'
618 # setprop libc.debug.malloc.options backtrace
625 # export LIBC_DEBUG_MALLOC_OPTIONS=backtrace
629 using the backtrace option.
632 adb shell setprop libc.debug.malloc.options backtrace
636 It is possible to use the backtrace\_enable\_on\_signal option as well,
650 adb shell setprop wrap.<APP> '"LIBC_DEBUG_MALLOC_OPTIONS=backtrace logwrapper"'
655 … adb shell setprop wrap.<APP> '"LIBC_DEBUG_MALLOC_OPTIONS=backtrace\ leak_track\ fill logwrapper"'
659 …rop wrap.com.google.android.googlequicksearchbox '"LIBC_DEBUG_MALLOC_OPTIONS=backtrace logwrapper"'
687 occurring. If you enable malloc debug with the backtrace option for your