OSDN Git Service
Elliott Hughes [Mon, 17 Jul 2017 22:31:46 +0000 (22:31 +0000)]
Loosen _POSIX_THREAD_PROCESS_SHARED test.
am:
7b41aaf3d5
Change-Id: Ieb17d253ea1e421219c04ffdb804c2e8460d997e
Elliott Hughes [Thu, 13 Jul 2017 17:28:21 +0000 (10:28 -0700)]
Loosen _POSIX_THREAD_PROCESS_SHARED test.
Bug: http://b/
62424597
Test: bionic unistd.sysconf test
Change-Id: I4adb6d227f761360e9d3fe084a45c386bc6944da
TreeHugger Robot [Fri, 23 Jun 2017 20:28:29 +0000 (20:28 +0000)]
Merge "Shave another uninteresting stack frame off aborts." into oc-dr1-dev
Paul Lawrence [Fri, 23 Jun 2017 19:28:15 +0000 (19:28 +0000)]
Expand Seccomp whitelist
am:
c0c56ec7ce
Change-Id: Ic29b7a227acae74444c1534ccc9366b1891ce3bf
Paul Lawrence [Fri, 23 Jun 2017 15:10:18 +0000 (08:10 -0700)]
Expand Seccomp whitelist
This seccomp failure is in the fault handler:
05-25 12:03:25.042 10201 27425 27425 F DEBUG : backtrace:
05-25 12:03:25.042 10201 27425 27425 F DEBUG : #00 pc
00015380
/data/data/redacted/files/storage/lib/libcrashsdk.so
So whenever an app using this crash sdk crashes it looks like a seccomp
problem. Fixing this won't stop the apps crashing, but will make the
crash reports accurate and useful.
So yes, the bug below is already fixed, but this issue has come back 2
or 3 times with different apps (b/
62090571, b/
62874867). This change
doesn't fix that crash either, but again it improves the reporting.
Bug:
62947697
Test: Device boots, app still fails but no longer with SECCOMP error
Change-Id: Ie0f8dc965001c8bc43f6a545b35bdcd38f006213
Elliott Hughes [Tue, 20 Jun 2017 21:26:56 +0000 (14:26 -0700)]
Shave another uninteresting stack frame off aborts.
With this, stack frame 0 is the abort, not tgkill.
arm:
#00 pc
0001a41c /system/lib/libc.so (abort+63)
arm64:
#00 pc
000000000001d75c /system/lib64/libc.so (abort+120)
Also "include what you use" for <sys/syscall.h>.
(cherry picked from commit
d7c52625f2da8322b4f0adb4c67674f0d66e619a)
Bug:
62810360
Test: ran `crasher abort` and `crasher64 abort`
Change-Id: I6517ac67b39b4133e890d52efc115071c812958b
Josh Gao [Fri, 23 Jun 2017 06:16:37 +0000 (06:16 +0000)]
Whitelist __NR__newselect.
am:
d87e5aa769
Change-Id: Ib15584b751ff4dd99060ba272a260b14eba6c1b8
Josh Gao [Thu, 22 Jun 2017 23:46:19 +0000 (16:46 -0700)]
Whitelist __NR__newselect.
Bug: http://b/
62779795
Test: treehugger
Merged-In: I3e0279385641d4f06fcdeb955819a01c12c5229e
Change-Id: I3e0279385641d4f06fcdeb955819a01c12c5229e
(cherry picked from commit
c45b5881121f9c3af50af3f76113b09d0144f60d)
Matthias Hausner [Sat, 3 Jun 2017 21:24:40 +0000 (21:24 +0000)]
bionic: tests: only test falloc_punch on ext4 am:
47a52109a4
am:
7864cb7495
Change-Id: I3f4ea6bd21e81902c1ea7a7053599dc3314e709d
Matthias Hausner [Sat, 3 Jun 2017 21:20:40 +0000 (21:20 +0000)]
bionic: tests: only test falloc_punch on ext4
am:
47a52109a4
Change-Id: Ie12666653eaf324dc6d93f09d20000e3d8a87281
Christopher Ferris [Fri, 2 Jun 2017 22:18:41 +0000 (22:18 +0000)]
Merge "Use libdemangle for function names." am:
5c76fec282 am:
0b65dc85ac am:
734a59577e
am:
eda488216a
Change-Id: I0409a3cbef6fb0d159a5a92bc99949e288508f6b
Christopher Ferris [Fri, 2 Jun 2017 22:16:11 +0000 (22:16 +0000)]
Merge "Use libdemangle for function names." am:
5c76fec282 am:
0b65dc85ac
am:
734a59577e
Change-Id: I67d5acc79f0ebc5a6568cb5918de058dbde13e54
Christopher Ferris [Fri, 2 Jun 2017 22:12:12 +0000 (22:12 +0000)]
Merge "Use libdemangle for function names." am:
5c76fec282
am:
0b65dc85ac
Change-Id: I78957fcc07495269d5d6ac924c7cde64f5edb8c8
Christopher Ferris [Fri, 2 Jun 2017 22:09:10 +0000 (22:09 +0000)]
Merge "Use libdemangle for function names."
am:
5c76fec282
Change-Id: Iabe599c79e7662594a32431aad12d711f9c0e4dc
Christopher Ferris [Fri, 2 Jun 2017 22:02:53 +0000 (22:02 +0000)]
Merge "Use libdemangle for function names."
Matthias Hausner [Fri, 2 Jun 2017 17:09:19 +0000 (10:09 -0700)]
bionic: tests: only test falloc_punch on ext4
Test fcntl#falloc_punch is wrong. It checks that fallocate() with mode
FALLOC_FL_PUNCH_HOLE fails on ext4 file system on older kernels. The
test fails to ensure that the file it creates is indeed on an ext4
partition. On an Angelfish device for example, the file is created on an
f2fs partition, which supports FALLOC_FL_PUNCH_HOLE, and thus the test
fails (wrongly).
Change-Id: I23c1ba4d0fcee81551531779e93ac3d5e19ba1d7
Fixes:
62220977
Test: run bionic-unit-tests as per bionic/README.md###Device tests
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Christopher Ferris [Thu, 1 Jun 2017 21:16:32 +0000 (14:16 -0700)]
Use libdemangle for function names.
Bug:
62141808
Test: Ran unit tests, ran malloc debug with leaks and verified functions
Test: are demangled.
Change-Id: I1900632e9a55bb818b1aabc798224ff3eebc1fca
Elliott Hughes [Fri, 2 Jun 2017 00:02:11 +0000 (00:02 +0000)]
Merge "Fix boost build with unified headers." am:
498b4de964 am:
799a5c4121 am:
0c12408773
am:
6ab21db586
Change-Id: I143c3f9f120b0f1a90d630a8454fa7c64336dfe8
Elliott Hughes [Thu, 1 Jun 2017 23:49:11 +0000 (23:49 +0000)]
Merge "Fix boost build with unified headers." am:
498b4de964 am:
799a5c4121
am:
0c12408773
Change-Id: Ic6f893ce4675e42935af9919be79988fe319a9ad
Elliott Hughes [Thu, 1 Jun 2017 23:41:09 +0000 (23:41 +0000)]
Merge "Fix boost build with unified headers." am:
498b4de964
am:
799a5c4121
Change-Id: I3e13ef7804daa5d15aa3f51ef9402fe48cccdec4
Elliott Hughes [Thu, 1 Jun 2017 23:37:39 +0000 (23:37 +0000)]
Merge "Fix boost build with unified headers."
am:
498b4de964
Change-Id: I5cd210231b3c254e272ad0db5d77f02dad5466b9
Treehugger Robot [Thu, 1 Jun 2017 23:30:56 +0000 (23:30 +0000)]
Merge "Fix boost build with unified headers."
Elliott Hughes [Thu, 1 Jun 2017 21:08:58 +0000 (14:08 -0700)]
Fix boost build with unified headers.
boost (1.64.0 at least) assumes that if you have POSIX_MADV_NORMAL, you have
posix_madvise. With unified headers, this isn't true. Rather than make life
harder for projects that don't use configure, just make it so. We already
applied similar workarounds for epoll_create1 and inotify_init1.
Bug: https://github.com/android-ndk/ndk/issues/395
Test: built boost (long story!)
Change-Id: I5d2d8de7b30921dde913251d35dcd249a2876f94
Goran Ferenc [Thu, 1 Jun 2017 18:04:46 +0000 (18:04 +0000)]
Merge "MIPS: 32/64-bit VDSO support" am:
72c8fce6c9 am:
d32465b255 am:
85fb061c24
am:
12678c583c
Change-Id: Icb5035f697c0575ab940c50d62db5c65f259eef4
Goran Ferenc [Thu, 1 Jun 2017 17:59:47 +0000 (17:59 +0000)]
Merge "MIPS: 32/64-bit VDSO support" am:
72c8fce6c9 am:
d32465b255
am:
85fb061c24
Change-Id: Idc1b6422a1c3213d0c746e135f6c15b49fc5dbc8
Goran Ferenc [Thu, 1 Jun 2017 17:56:43 +0000 (17:56 +0000)]
Merge "MIPS: 32/64-bit VDSO support" am:
72c8fce6c9
am:
d32465b255
Change-Id: I9679f0f032d463fbde8996a9174938476f10d276
Goran Ferenc [Thu, 1 Jun 2017 17:54:12 +0000 (17:54 +0000)]
Merge "MIPS: 32/64-bit VDSO support"
am:
72c8fce6c9
Change-Id: I51eb897eae07978233f49cc2dce292df98a5daf1
Treehugger Robot [Thu, 1 Jun 2017 17:44:40 +0000 (17:44 +0000)]
Merge "MIPS: 32/64-bit VDSO support"
Christopher Ferris [Thu, 1 Jun 2017 15:58:35 +0000 (15:58 +0000)]
Move mallopt to correct section. am:
8d88abc6c6 -s ours
am:
025bd7a109
Change-Id: I178dff33ef924eee44f6deb43a42dd4e83b226a3
Christopher Ferris [Thu, 1 Jun 2017 15:56:03 +0000 (15:56 +0000)]
Move mallopt to correct section.
am:
8d88abc6c6 -s ours
Change-Id: Ifca710e9b54519033f4beee5c5bcf92b1fdffbe1
Goran Ferenc [Tue, 30 May 2017 14:00:41 +0000 (16:00 +0200)]
MIPS: 32/64-bit VDSO support
File libc/SYSCALLS.TXT is updated to generate bionic's system call wrappers
for clock_gettime() & gettimeofday() that will be called if kernel vdso
implementations fail to execute.
The system call wrappers are generated using a python script gensyscalls.py.
Since all architectures support vdso now, there is no more need for conditional
statements regarding supported architectures in libc/bionic/vdso.cpp &
libc/private/bionic_vdso.h files.
Test: builds
Change-Id: I7213f29c179a7929851499d78a72900638ae861a
Signed-off-by: Goran Ferenc <goran.ferenc@imgtec.com>
Dimitry Ivanov [Thu, 1 Jun 2017 07:26:29 +0000 (07:26 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry" am:
533cf06474 am:
1e55a0420e am:
c27ac0df9b
am:
c3c83d9f4b
Change-Id: I0db36c9b828fee348d25e312c970ced8a19b7e03
Dimitry Ivanov [Thu, 1 Jun 2017 07:24:29 +0000 (07:24 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry" am:
533cf06474 am:
1e55a0420e
am:
c27ac0df9b
Change-Id: Ida956645eaf002113587960e931acc570e44c7a3
Dimitry Ivanov [Thu, 1 Jun 2017 07:22:28 +0000 (07:22 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry" am:
533cf06474
am:
1e55a0420e
Change-Id: I80c1b5f9169c5d7ae7e139d52643fce981c2f7a3
Dimitry Ivanov [Thu, 1 Jun 2017 07:20:27 +0000 (07:20 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry"
am:
533cf06474
Change-Id: I80e365b464ca7326da3c3d3a0f0bdf3dac5921c7
Treehugger Robot [Thu, 1 Jun 2017 07:16:11 +0000 (07:16 +0000)]
Merge "Make dl_iterate_phdr return correct name for first entry"
Dimitry Ivanov [Wed, 31 May 2017 22:07:41 +0000 (15:07 -0700)]
Make dl_iterate_phdr return correct name for first entry
Test: bionic-unit-tests --gtest_filter=link*
Change-Id: Ib3f1e0fbc76fed9a5f27ffdd9bbf847a3e8d3665
Christopher Ferris [Wed, 31 May 2017 18:00:18 +0000 (11:00 -0700)]
Move mallopt to correct section.
Bug:
62202823
Test: Built and built unit tests.
(cherry picked from commit
488eb8b7d2fb7a51c90664ae0baea75b7280cddd)
Change-Id: Iae82f77ed84a42f3859d861b533fd7945e2d40d9
Christopher Ferris [Wed, 31 May 2017 20:42:01 +0000 (20:42 +0000)]
Merge "Move mallopt to correct section." am:
15eaaddef9 am:
c613ed2ab2 am:
fe4edf65dd
am:
8999d6f656
Change-Id: I9d2c734531b5fb12d97c9b4b90a22021d53f04cc
Christopher Ferris [Wed, 31 May 2017 20:30:57 +0000 (20:30 +0000)]
Merge "Move mallopt to correct section." am:
15eaaddef9 am:
c613ed2ab2
am:
fe4edf65dd
Change-Id: Icbb7dd9bac9228693b1d547ab3e1c191ecc50fa1
Christopher Ferris [Wed, 31 May 2017 20:25:57 +0000 (20:25 +0000)]
Merge "Move mallopt to correct section." am:
15eaaddef9
am:
c613ed2ab2
Change-Id: I36ed519b1a3d42d97f2960622195584f0273d024
Christopher Ferris [Wed, 31 May 2017 20:20:58 +0000 (20:20 +0000)]
Merge "Move mallopt to correct section."
am:
15eaaddef9
Change-Id: I592a15ea6503f8753c9fdc512fa383d55f48525e
Christopher Ferris [Wed, 31 May 2017 20:07:29 +0000 (20:07 +0000)]
Merge "Move mallopt to correct section."
Christopher Ferris [Wed, 31 May 2017 18:57:53 +0000 (18:57 +0000)]
Merge "Revert "Make mallopt available in the future."" am:
8f7a987cd0 am:
bf52fee214 am:
5e465f7644
am:
c39af283fe
Change-Id: I3e1bf1f0fc8abbbb58e52fa7afcbafa0bdbd5efb
Christopher Ferris [Wed, 31 May 2017 18:36:20 +0000 (18:36 +0000)]
Merge "Revert "Make mallopt available in the future."" am:
8f7a987cd0 am:
bf52fee214
am:
5e465f7644
Change-Id: I81ea1202bfbb8614c5662f7b72bded35716ab4ef
Christopher Ferris [Wed, 31 May 2017 18:32:26 +0000 (18:32 +0000)]
Merge "Revert "Make mallopt available in the future."" am:
8f7a987cd0
am:
bf52fee214
Change-Id: I318f22e95f2ef59b240bf5b8bfc87eb0babb2d98
Christopher Ferris [Wed, 31 May 2017 18:28:21 +0000 (18:28 +0000)]
Merge "Revert "Make mallopt available in the future.""
am:
8f7a987cd0
Change-Id: I0db255e6778cd2cfb64206c3a2ec635e62a18e9a
Christopher Ferris [Wed, 31 May 2017 18:15:09 +0000 (18:15 +0000)]
Merge "Revert "Make mallopt available in the future.""
Christopher Ferris [Wed, 31 May 2017 18:12:23 +0000 (18:12 +0000)]
Merge "Add mallopt to canonical list of exports." am:
8f6f70db45 am:
21d0a8c15b am:
be5bc2b8ad
am:
5a8aff819e
Change-Id: I242e211829bc57bdc17ac0a398c6f4ab13ee0c5f
Christopher Ferris [Wed, 31 May 2017 18:02:49 +0000 (18:02 +0000)]
Merge "Add mallopt to canonical list of exports." am:
8f6f70db45 am:
21d0a8c15b
am:
be5bc2b8ad
Change-Id: I7776ada456afc4771af9ab04baf1d737750a226e
Christopher Ferris [Wed, 31 May 2017 18:00:18 +0000 (11:00 -0700)]
Move mallopt to correct section.
Bug:
62202823
Test: Built and built unit tests.
Change-Id: Icefc152eb756fd60ce8f51d694f22923a41a9cd1
Christopher Ferris [Wed, 31 May 2017 17:54:06 +0000 (17:54 +0000)]
Merge "Add mallopt to canonical list of exports." am:
8f6f70db45
am:
21d0a8c15b
Change-Id: Iad3d739123a5e8132d8c201a1032fbf95f1167ea
Christopher Ferris [Wed, 31 May 2017 17:49:04 +0000 (17:49 +0000)]
Merge "Add mallopt to canonical list of exports."
am:
8f6f70db45
Change-Id: I3bd9320bf7c53c4f2f6586d55d5a3c0f3e8307e9
Christopher Ferris [Wed, 31 May 2017 17:40:31 +0000 (17:40 +0000)]
Merge "Add mallopt to canonical list of exports."
Christopher Ferris [Wed, 31 May 2017 00:35:28 +0000 (17:35 -0700)]
Add mallopt to canonical list of exports.
Bug:
62202823
Test: Ran script and verified that none of the other map files are modified.
Change-Id: Ib890ce77c60b877434fbb65a5add8f6c4603d3d0
Christopher Ferris [Wed, 31 May 2017 00:14:15 +0000 (00:14 +0000)]
Revert "Make mallopt available in the future."
This reverts commit
083923d96acb7cfe4e1a1c22100047fa87feb347.
Reason for revert: No longer correct, this will be in API 26.
Change-Id: Iaf82d797405135fcd30455fd750b23fc57e9623a
Jiyong Park [Sat, 27 May 2017 01:54:27 +0000 (01:54 +0000)]
Merge "linker: disable ld.config.txt in ASAN mode" into oc-dev am:
41e0ceb5c9
am:
08d3f97e7f
Change-Id: I32c0e73d2080ae1f65e5855bce6ecca467f20e42
Jiyong Park [Sat, 27 May 2017 01:50:49 +0000 (01:50 +0000)]
Merge "linker: disable ld.config.txt in ASAN mode" into oc-dev
am:
41e0ceb5c9
Change-Id: I6e9faedbb26d94aab7064c2c8620362c776143be
TreeHugger Robot [Sat, 27 May 2017 01:45:31 +0000 (01:45 +0000)]
Merge "linker: disable ld.config.txt in ASAN mode" into oc-dev
Jiyong Park [Fri, 26 May 2017 06:14:52 +0000 (15:14 +0900)]
linker: disable ld.config.txt in ASAN mode
Currently, multiple namespaces does not support ASAN mode where some
symbols should be intercepted via LD_PRELOAD; LD_PRELOADed libs are not
preloaded into the linked namespaces other than the default namespace.
Until we fix the problem, we temporarily disable ld.config.txt in ASAN
mode.
Bug:
38114603
Test: 1. ./external/compiler-rt/lib/asan/scripts/asan_device_setup --lib
prebuilts/clang/host/linux-x86/clang-stable/lib64/clang/3.8/lib/linux
2. enable talkback shortcut
3. in the home screen, hold vol-up/down together
4. device does not reboots and talkback shortcut is toggled
Test: bionic-unit-tests and linker-unit-tests successful
Change-Id: I091874dd36b36f56dff2ad899d76ff86931909ed
Paul Lawrence [Fri, 26 May 2017 18:28:48 +0000 (18:28 +0000)]
Expand whitelist am:
ec00401dff
am:
84ea200ef0
Change-Id: I91a8e2ee1a95627af10b1db8cb0cb5c56faca081
Paul Lawrence [Fri, 26 May 2017 18:26:47 +0000 (18:26 +0000)]
Expand whitelist
am:
ec00401dff
Change-Id: I71c7c4da0757e194405ee1f6f38117b21d927b8e
Elliott Hughes [Fri, 26 May 2017 18:14:19 +0000 (18:14 +0000)]
Merge "Enable exporting the non-uapi scsi headers." am:
6be65c135b am:
d0b030eb9c am:
d165d458b6
am:
e3892b870f
Change-Id: I8bd07e24d900a5f6fcc42277f2590b9c7740b0f6
Elliott Hughes [Fri, 26 May 2017 18:12:46 +0000 (18:12 +0000)]
Merge "Enable exporting the non-uapi scsi headers." am:
6be65c135b am:
d0b030eb9c
am:
d165d458b6
Change-Id: I536d4de1a970eb3b9f48f441c991c4ab923d03bd
Elliott Hughes [Fri, 26 May 2017 18:10:47 +0000 (18:10 +0000)]
Merge "Enable exporting the non-uapi scsi headers." am:
6be65c135b
am:
d0b030eb9c
Change-Id: I90f87bfd05e8be59ad507f3466b8f78c0e885656
Elliott Hughes [Fri, 26 May 2017 18:08:21 +0000 (18:08 +0000)]
Merge "Enable exporting the non-uapi scsi headers."
am:
6be65c135b
Change-Id: Id8c535cf060b6cb9f38efc70dcda43031f2375fb
Elliott Hughes [Fri, 26 May 2017 18:04:26 +0000 (18:04 +0000)]
Merge "Enable exporting the non-uapi scsi headers."
Christopher Ferris [Fri, 26 May 2017 17:09:17 +0000 (17:09 +0000)]
Merge "Add offset to backtrace_string printing." am:
f6a5afcb62 am:
c4d31c981a am:
1ac92e24b8
am:
ae5faae606
Change-Id: Ic41d681631bf059bbbf82b49894ed83733ae15d8
Christopher Ferris [Fri, 26 May 2017 17:07:11 +0000 (17:07 +0000)]
Merge "Add offset to backtrace_string printing." am:
f6a5afcb62 am:
c4d31c981a
am:
1ac92e24b8
Change-Id: I7aa9398a3eb181195183d56e0c97fc79652e5cef
Christopher Ferris [Fri, 26 May 2017 17:05:11 +0000 (17:05 +0000)]
Merge "Add offset to backtrace_string printing." am:
f6a5afcb62
am:
c4d31c981a
Change-Id: Iab1201771f12ce3e59954a88d2a897ba68f74984
Christopher Ferris [Fri, 26 May 2017 17:03:11 +0000 (17:03 +0000)]
Merge "Add offset to backtrace_string printing."
am:
f6a5afcb62
Change-Id: I06647308b9cf01405007b136dc5978c436cbcbb6
Christopher Ferris [Fri, 26 May 2017 16:57:58 +0000 (16:57 +0000)]
Merge "Add offset to backtrace_string printing."
Paul Lawrence [Thu, 25 May 2017 21:15:23 +0000 (14:15 -0700)]
Expand whitelist
Bug:
37769298
Test: Boots. Cannot test app behavior without account
Change-Id: Iebb7616f100368bf2e702ec51f637df1f3727885
Elliott Hughes [Fri, 26 May 2017 00:13:32 +0000 (17:13 -0700)]
Enable exporting the non-uapi scsi headers.
Callers are supposed to #include <scsi/sg.h> but if we tell soong to add
bionic/libc/kernel/android/ to the include path, the uapi headers in there
would be (unintentionally) accessible as either <linux/name.h> or
<uapi/linux/name.h>.
Bug: N/A (hit while upgrading strace to 4.17)
Test: builds
Change-Id: I8d47dd51da688c38f747a255d401dfb2c209c805
Dimitry Ivanov [Fri, 26 May 2017 01:55:13 +0000 (01:55 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am:
232681160a am:
82f4098497 am:
e1c7a94d8b
am:
985bcf14a7
Change-Id: I5b70d7eb136f78f333a688462f7dfa9af0b43670
Dimitry Ivanov [Fri, 26 May 2017 01:43:12 +0000 (01:43 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am:
232681160a am:
82f4098497
am:
e1c7a94d8b
Change-Id: I000ec2526a8023651736920778a32ab156a60701
Dimitry Ivanov [Fri, 26 May 2017 01:41:41 +0000 (01:41 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test" am:
232681160a
am:
82f4098497
Change-Id: I02cf9d73a15e93f109639edb13a4048bd91101d2
Dimitry Ivanov [Fri, 26 May 2017 01:39:41 +0000 (01:39 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test"
am:
232681160a
Change-Id: Ie2d150492163e59814a0557baed86a5bed9fa125
Christopher Ferris [Fri, 26 May 2017 01:26:37 +0000 (18:26 -0700)]
Add offset to backtrace_string printing.
The libmemunreachable code uses backtrace_string to print out the backtrace
information. However, when the offset of the map that a frame is in is
non-zero, no information is printed. This means that when a frame comes from
a shared library loaded from an apk, it's impossible to tell which
shared library the frame is really coming from.
Add the offset display when it's non-zero. This means this can now be fed
to development/scripts/stack to decode the frame.
Bug:
37276041
Test: Ran dumpsys meminfo --unreachable on an app that leaks from a
Test: shared library and verified the offset output is present.
Change-Id: I61d34ae3f617622d354cc099eff520a64782b6e2
Treehugger Robot [Fri, 26 May 2017 01:30:01 +0000 (01:30 +0000)]
Merge "Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test"
Paul Lawrence [Fri, 26 May 2017 01:14:10 +0000 (01:14 +0000)]
Merge "Expand whitelist" am:
eca29cb508 am:
27752635e9 am:
fcb452e602
am:
4c18818524
Change-Id: Id5af566740f45748c71e58c915a43f402cd4e2e8
Paul Lawrence [Fri, 26 May 2017 01:12:39 +0000 (01:12 +0000)]
Merge "Expand whitelist" am:
eca29cb508 am:
27752635e9
am:
fcb452e602
Change-Id: Ia2251c04295adfcb4f105abedc25aa19a2c20efc
Paul Lawrence [Fri, 26 May 2017 01:10:39 +0000 (01:10 +0000)]
Merge "Expand whitelist" am:
eca29cb508
am:
27752635e9
Change-Id: I6669f8bb0820f7ba51157ac32a0eb4326b1c963e
Paul Lawrence [Fri, 26 May 2017 01:08:39 +0000 (01:08 +0000)]
Merge "Expand whitelist"
am:
eca29cb508
Change-Id: Ic673b3fcaca1bb311da4aa23b8c8f2e24598d4f6
Treehugger Robot [Fri, 26 May 2017 01:01:54 +0000 (01:01 +0000)]
Merge "Expand whitelist"
Christopher Ferris [Fri, 26 May 2017 00:48:40 +0000 (00:48 +0000)]
Merge "Update malloc debug documentation." am:
a559cff654 am:
b597371036 am:
f2de106e9c
am:
9106fbfe0b
Change-Id: I028fb6609d9aec60d839e816a444891e15f6b6f5
Christopher Ferris [Fri, 26 May 2017 00:47:07 +0000 (00:47 +0000)]
Merge "Update malloc debug documentation." am:
a559cff654 am:
b597371036
am:
f2de106e9c
Change-Id: Iac5f96696f1b126254cb9bbe381b1c34409801a1
Christopher Ferris [Fri, 26 May 2017 00:43:07 +0000 (00:43 +0000)]
Merge "Update malloc debug documentation." am:
a559cff654
am:
b597371036
Change-Id: I3867e2b66f2062d061f9e34e6ca1b75f17823319
Christopher Ferris [Fri, 26 May 2017 00:41:07 +0000 (00:41 +0000)]
Merge "Update malloc debug documentation."
am:
a559cff654
Change-Id: I9efbff08ce65d3c973a588065841b99f1faac17a
Christopher Ferris [Fri, 26 May 2017 00:29:59 +0000 (00:29 +0000)]
Merge "Update malloc debug documentation."
Christopher Ferris [Thu, 25 May 2017 02:04:33 +0000 (19:04 -0700)]
Update malloc debug documentation.
Test: NA
Change-Id: I8ab73bfc28c7a673efb5b0cec6067989153f092a
Paul Lawrence [Thu, 25 May 2017 21:15:23 +0000 (14:15 -0700)]
Expand whitelist
Bug:
37769298
Test: Boots. Cannot test app behavior without account
Change-Id: Iebb7616f100368bf2e702ec51f637df1f3727885
Elliott Hughes [Thu, 25 May 2017 23:22:01 +0000 (23:22 +0000)]
Merge "Remove the repetitive warnings from the uapi headers." am:
025fb33c9d am:
fd387e7d0a am:
13db96bbeb
am:
9ca718f941
Change-Id: I7aa2c23b2c05c68fdeafcf9fe0445255469806f4
Elliott Hughes [Thu, 25 May 2017 23:17:30 +0000 (23:17 +0000)]
Merge "Remove the repetitive warnings from the uapi headers." am:
025fb33c9d am:
fd387e7d0a
am:
13db96bbeb
Change-Id: Ic7d28cc8160cb5abc03ed2875f1fab73d370a8f5
Elliott Hughes [Thu, 25 May 2017 23:08:00 +0000 (23:08 +0000)]
Merge "Remove the repetitive warnings from the uapi headers." am:
025fb33c9d
am:
fd387e7d0a
Change-Id: Idcf8c0db2ca3c1fe0cd5cd9ea5148fe6598b2c4b
Elliott Hughes [Thu, 25 May 2017 23:03:00 +0000 (23:03 +0000)]
Merge "Remove the repetitive warnings from the uapi headers."
am:
025fb33c9d
Change-Id: I98bb1dd996bd331948d0e2ec3b2acf17c2d3f4c3
Treehugger Robot [Thu, 25 May 2017 22:50:05 +0000 (22:50 +0000)]
Merge "Remove the repetitive warnings from the uapi headers."
Dimitry Ivanov [Thu, 25 May 2017 21:02:03 +0000 (14:02 -0700)]
Relax flaky _SC_AVPHYS_PAGES check in sys_sysinfo_test
The number of available physical pages is not constant and can
potentially change between calls to get_avphys_pages and
sysconf(_SC_AVPHYS_PAGES) calls.
Relax the assert to check that sconf(_SC_AVPHYS_PAGES) <= phys_pages.
Bug: http://b/
31502852
Test: build and run bionic-unit-tests
Change-Id: Ibf8873d2151d93239391d2638dfbf055b70cde3a
Elliott Hughes [Thu, 25 May 2017 20:48:01 +0000 (13:48 -0700)]
Remove the repetitive warnings from the uapi headers.
Having
WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS
every four lines made the headers harder to read, made the diffs much worse
each time we upgraded, and wasn't really providing any benefit. Before the
next uapi update, let's just stop doing this.
Bug: N/A
Test: builds, manually inspected files look right
Change-Id: Id7088cf750894c9d24950f3d53587fe3156c4f7d
Elliott Hughes [Thu, 25 May 2017 01:55:35 +0000 (01:55 +0000)]
Merge "Stop including <sys/sysmacros.h> from <sys/types.h>." am:
f58179cda5 am:
b9bf674cc8 am:
4107ee67e4
am:
634144cd08
Change-Id: I622a373fc62a44b5c2bc3885f4741351f38c21af