content_browsertests failing on internal.client.clank/asan-clang-phone |
||||
Issue descriptioncontent_browsertests failing on internal.client.clank/asan-clang-phone Type: build-failure Builders failed on: - asan-clang-phone: http://master7.golo.chromium.org/i/internal.client.clank/builders/asan-clang-phone DiscardableMemoryAddressSpace test is crashing: C 4340.019s Main [CRASH] ChildThreadImplBrowserTest.DiscardableMemoryAddressSpace: C 4340.019s Main [ RUN ] ChildThreadImplBrowserTest.DiscardableMemoryAddressSpace C 4340.019s Main [WARNING:dns_config_service_posix.cc(316)] Failed to read DnsConfig. C 4340.019s Main [ERROR:devtools_http_handler.cc(221)] Cannot start http server for devtools. Stop devtools. C 4340.019s Main [FATAL:memory.cc(22)] Out of memory. size=4194304 C 4340.019s Main #00 0x7a691c57 /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x00149c57 C 4340.019s Main #01 0x7a714803 /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x001cc803 C 4340.020s Main #02 0x7d1b3e95 /data/app-lib/org.chromium.content_browsertests_apk-1/libdiscardable_memory_client.cr.so+0x00004e95 C 4340.020s Main #03 0x7d1b35b7 /data/app-lib/org.chromium.content_browsertests_apk-1/libdiscardable_memory_client.cr.so+0x000045b7 C 4340.020s Main #04 0x93ec18fd /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x00cc78fd C 4340.020s Main #05 0x9415b251 /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x00f61251 C 4340.020s Main #06 0x941c1ca3 /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x00fc7ca3 C 4340.020s Main #07 0x9440a9ad /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x012109ad C 4340.020s Main #08 0x8f54c9d1 /data/app-lib/org.chromium.content_browsertests_apk-1/libcontent.cr.so+0x013659d1 C 4340.020s Main #09 0x8ff81f31 /data/app-lib/org.chromium.content_browsertests_apk-1/libcontent.cr.so+0x01d9af31 C 4340.020s Main #10 0x8f549071 /data/app-lib/org.chromium.content_browsertests_apk-1/libcontent.cr.so+0x01362071 C 4340.020s Main #11 0x8f554e79 /data/app-lib/org.chromium.content_browsertests_apk-1/libcontent.cr.so+0x0136de79 C 4340.020s Main #12 0x8f542ba7 /data/app-lib/org.chromium.content_browsertests_apk-1/libcontent.cr.so+0x0135bba7 C 4340.020s Main #13 0x941c1231 /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x00fc7231 C 4340.020s Main #14 0x9415ae37 /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x00f60e37 C 4340.020s Main #15 0x946ac1a1 /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x014b21a1 C 4340.020s Main #16 0x946ad9d9 /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x014b39d9 C 4340.020s Main #17 0x946ae95b /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x014b495b C 4340.020s Main #18 0x946bb5c9 /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x014c15c9 C 4340.020s Main #19 0x946badb5 /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x014c0db5 C 4340.020s Main #20 0x94337c11 /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x0113dc11 C 4340.020s Main #21 0x9416a7d9 /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x00f707d9 C 4340.020s Main #22 0x94290ccb /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x01096ccb C 4340.020s Main #23 0x9416a671 /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x00f70671 C 4340.020s Main #24 0x93efa30d /data/app-lib/org.chromium.content_browsertests_apk-1/lib_content_browsertests__library.cr.so+0x00d0030d C 4340.020s Main #25 0x4411dbcf /system/lib/libdvm.so+0x0001dbcf C 4340.020s Main #26 0x4414e125 /system/lib/libdvm.so+0x0004e125 C 4340.020s Main #27 0x44126fe3 /system/lib/libdvm.so+0x00026fe3 C 4340.020s Main #28 0x4412dfa3 /system/lib/libdvm.so+0x0002dfa3 C 4340.021s Main #29 0x4412b63b /system/lib/libdvm.so+0x0002b63b C 4340.021s Main #30 0x44160863 /system/lib/libdvm.so+0x00060863 C 4340.021s Main #31 0x441687c5 /system/lib/libdvm.so+0x000687c5 C 4340.021s Main #32 0x44126fe3 /system/lib/libdvm.so+0x00026fe3 C 4340.021s Main #33 0x4412dfa3 /system/lib/libdvm.so+0x0002dfa3 C 4340.021s Main #34 0x4412b63b /system/lib/libdvm.so+0x0002b63b C 4340.021s Main #35 0x4416057f /system/lib/libdvm.so+0x0006057f C 4340.021s Main #36 0x44149d0d /system/lib/libdvm.so+0x00049d0d C 4340.021s Main #37 0x407542b3 /system/lib/libandroid_runtime.so+0x0004d2b3 C 4340.021s Main #38 0x40754fd9 /system/lib/libandroid_runtime.so+0x0004dfd9 C 4340.021s Main #39 0x400a805d /system/bin/app_process32+0x0000105d C 4340.021s Main #40 0x4063e34b /system/lib/libc.so+0x0000e34b C 4340.021s Main #41 0x400a7d7f /system/bin/app_process32+0x00000d7f C 4340.021s Main C 4340.021s Main [ERROR:test_suite.cc(295)] Currently running: ChildThreadImplBrowserTest.DiscardableMemoryAddressSpace
,
Nov 23 2016
It's been happening at least since November 15th: https://uberchromegw.corp.google.com/i/internal.client.clank/builders/asan-clang-phone?numbuilds=200 Maybe even earlier, but the links to logs don't work before then, so it's hard to verify.
,
Nov 23 2016
Discardable memory system was moved to //components from //content on Nov 2. This might be related to that. penghuang@, can you take a look? This test verifies that memory is discarded properly by allocating more than 4GB. That should never cause a oom error.
,
Nov 24 2016
I don't see why my CL can cause this problem. mariakhomenko, Can I try a CL on this bot? How? I would like to create reverting CL and try it on this bot.
,
Nov 24 2016
I found the bot has been failing on test DiscardableMemoryAddressSpace before my CL, but the stack is different. https://luci-logdog.appspot.com/v/?s=chrome%2Fbb%2Finternal.client.clank%2Fasan-clang-phone%2F1227%2F%2B%2Frecipes%2Fsteps%2Fcontent_browsertests%2F0%2Fstdout I 4271.384s run_tests_on_device(0622a7e6003b8c5b) [ RUN ] ChildThreadImplBrowserTest.DiscardableMemoryAddressSpace I 4271.384s run_tests_on_device(0622a7e6003b8c5b) [WARNING:dns_config_service_posix.cc(316)] Failed to read DnsConfig. I 4271.384s run_tests_on_device(0622a7e6003b8c5b) [ERROR:devtools_http_handler.cc(220)] Cannot start http server for devtools. Stop devtools. I 4271.384s run_tests_on_device(0622a7e6003b8c5b) [FATAL:gl_context.cc(216)] Check failed: error == GL_NO_ERROR || error == GL_CONTEXT_LOST_KHR. GL error was: 1285 I 4271.384s run_tests_on_device(0622a7e6003b8c5b) #00 0x7a3edd67 /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x00141d67 I 4271.384s run_tests_on_device(0622a7e6003b8c5b) #01 0x812af3e5 /data/app-lib/org.chromium.content_browsertests_apk-1/libgl_wrapper.cr.so+0x0010d3e5 I 4271.384s run_tests_on_device(0622a7e6003b8c5b) #02 0x81d7407d /data/app-lib/org.chromium.content_browsertests_apk-1/libgpu.cr.so+0x000f107d I 4271.384s run_tests_on_device(0622a7e6003b8c5b) #03 0x81e36473 /data/app-lib/org.chromium.content_browsertests_apk-1/libgpu.cr.so+0x001b3473 I 4271.384s run_tests_on_device(0622a7e6003b8c5b) #04 0x81dc7757 /data/app-lib/org.chromium.content_browsertests_apk-1/libgpu.cr.so+0x00144757 I 4271.384s run_tests_on_device(0622a7e6003b8c5b) #05 0x81df07d9 /data/app-lib/org.chromium.content_browsertests_apk-1/libgpu.cr.so+0x0016d7d9 I 4271.384s run_tests_on_device(0622a7e6003b8c5b) #06 0x81d37c01 /data/app-lib/org.chromium.content_browsertests_apk-1/libgpu.cr.so+0x000b4c01 I 4271.384s run_tests_on_device(0622a7e6003b8c5b) #07 0x81d3a6fd /data/app-lib/org.chromium.content_browsertests_apk-1/libgpu.cr.so+0x000b76fd I 4271.384s run_tests_on_device(0622a7e6003b8c5b) #08 0x81feb0b9 /data/app-lib/org.chromium.content_browsertests_apk-1/libgpu.cr.so+0x003680b9 I 4271.384s run_tests_on_device(0622a7e6003b8c5b) #09 0x81feabaf /data/app-lib/org.chromium.content_browsertests_apk-1/libgpu.cr.so+0x00367baf I 4271.385s run_tests_on_device(0622a7e6003b8c5b) #10 0x81fe70f9 /data/app-lib/org.chromium.content_browsertests_apk-1/libgpu.cr.so+0x003640f9 I 4271.385s run_tests_on_device(0622a7e6003b8c5b) #11 0x81fd2987 /data/app-lib/org.chromium.content_browsertests_apk-1/libgpu.cr.so+0x0034f987 I 4271.385s run_tests_on_device(0622a7e6003b8c5b) #12 0x81fd2665 /data/app-lib/org.chromium.content_browsertests_apk-1/libgpu.cr.so+0x0034f665 I 4271.385s run_tests_on_device(0622a7e6003b8c5b) #13 0x7a3a03a9 /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x000f43a9 I 4271.385s run_tests_on_device(0622a7e6003b8c5b) #14 0x7a39ff63 /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x000f3f63 I 4271.385s run_tests_on_device(0622a7e6003b8c5b) #15 0x7a40b275 /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x0015f275 I 4271.385s run_tests_on_device(0622a7e6003b8c5b) #16 0x7a40bb45 /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x0015fb45 I 4271.385s run_tests_on_device(0622a7e6003b8c5b) #17 0x7a40c475 /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x00160475 I 4271.385s run_tests_on_device(0622a7e6003b8c5b) #18 0x7a415533 /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x00169533 I 4271.385s run_tests_on_device(0622a7e6003b8c5b) #19 0x7a40ac83 /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x0015ec83 I 4271.385s run_tests_on_device(0622a7e6003b8c5b) #20 0x7a47995b /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x001cd95b I 4271.385s run_tests_on_device(0622a7e6003b8c5b) #21 0x7a4fde81 /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x00251e81 I 4271.385s run_tests_on_device(0622a7e6003b8c5b) #22 0x7a4fe683 /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x00252683 I 4271.386s run_tests_on_device(0622a7e6003b8c5b) #23 0x7a4e7fe5 /data/app-lib/org.chromium.content_browsertests_apk-1/libbase.cr.so+0x0023bfe5 I 4271.386s run_tests_on_device(0622a7e6003b8c5b) #24 0x40624173 /system/lib/libc.so+0x0000d173 I 4271.386s run_tests_on_device(0622a7e6003b8c5b) #25 0x4062430b /system/lib/libc.so+0x0000d30b I 4271.386s run_tests_on_device(0622a7e6003b8c5b) #26 0x74b80eff <unknown> I 4271.386s run_tests_on_device(0622a7e6003b8c5b) I 4271.386s run_tests_on_device(0622a7e6003b8c5b) [ERROR:test_suite.cc(270)] Currently running: ChildThreadImplBrowserTest.DiscardableMemoryAddressSpace I 4271.386s run_tests_on_device(0622a7e6003b8c5b) I 4271.386s run_tests_on_device(0622a7e6003b8c5b) ChildThreadImplBrowserTest.DiscardableMemoryAddressSpaceUNKNOWN I 4271.386s run_tests_on_device(0622a7e6003b8c5b) OK (0 tests) I 4271.386s run_tests_on_device(0622a7e6003b8c5b) Finished running tests on this device. I 4271.386s run_tests_on_device(0694f579003c05c7) Finished running tests on this device.
,
Nov 28 2016
I don't think there's a trybot with this configuration. You could try to replicate locally, if you have an Android device. + Alex in case he has thoughts about the latter stack trace.
,
Nov 29 2016
This test will try to allocate 4GB + 4MB discardable memory. And for the android device, max discardable memory limit is 128MB. Is it possible the device cannot handle 128MB memory requirement for an asan build chrome?
,
Nov 29 2016
I tried add a printf in this test and run it locally and found out the upper bound for discardable memory is well maintained. So it is very likely the problem is because the device cannot handle 128MB memory requirement for the asan build chrome. So maybe we could reduce the limitation for asan android build or just disable this test for this bot. WDYT? https://codereview.chromium.org/2541573002/diff/1/content/child/child_thread_impl_browsertest.cc
,
Nov 30 2016
Hmm, the device on that bot is Nexus 5, running KTU84P. So it has 2GB of RAM. It's possible, but surprising that it wouldn't be able to handle 128MB memory requirement. I don't quite understand what this test is doing, but my preference would be to fix it for the asan bot, rather than disable it. If you can reduce the limitation and still have the test work, that sounds reasonable.
,
Dec 1 2016
I reproduced this issue locally with Nexus 5 KTU84P. I found several interesting things: 1. The crash is because the content_browsertest runs out of memory address space. In the log, in the memory map, the last /dev/ashmem mapped address range is very close to the [stack] address range. 2. The crash will happen when this test case allocates 391 discardable shared memory segments. 3. I put some code in base::SharedMemory to track mmap and munmap. And found out mapped memory never over 260MB. It reaches 260MB quickly, but the mapped memory is keeping in the range 252MB to 260MB until crash. 4. In Process memory map dump (See attached file): There are 66 mapped 4100KB /dev/ashmem blocks (I believe there are mapped by base::SharedMemory for discardable shared memory). I think half (33 blocks) is mapped by server side of discardable memory, and the other half (33 blocks) is mapped by client side of discardable memory. So I think the discardable shared memory does maintain the 128MB limitation. But there are many 2MB, 8MB and 11MB blocks are allocated between those /dev/ashmem blocks. They consumed a lot of memory address space. But not sure where are they come from. Any idea? (Maybe allocated by asan).
,
Dec 1 2016
BTW, I modified discardable shared memory limit from 128MB to 64MB, the test passed. Even if I increased the total allocated discardable shared memory in that test case from 4GB to 40GB, the test still passed. So the problem is because asan debug build chrome consumes too much memory address space. I am pretty sure, it is not related to my refactor CL. To fix the bot, we could ether disable the test for that bot, or reduce the discardable shared memory limit for asan debug build.
,
Dec 2 2016
Seems like this test is not really testing the right thing in ASAN mode because it's dominated by ASAN bloat, so I'd suggest just disabling it conditionally for ASAN.
,
Dec 2 2016
I agree we should disable conditionally for ASAN. I am not sure, but I think there's an ADDRESS_SANIZTIZER ifdef that you can use.
,
Dec 2 2016
I created a CL which uses ADDRESS_SANIZTIZER and OS_ANDROID for the condition of this test. https://codereview.chromium.org/2547063002/
,
Dec 2 2016
Thanks for investigating!
,
Dec 5 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/c1b2d7222c461133029f8dc7bee7c47145e442b1 commit c1b2d7222c461133029f8dc7bee7c47145e442b1 Author: penghuang <penghuang@chromium.org> Date: Mon Dec 05 16:13:28 2016 Disable DiscardableMemoryAddressSpace for Android Asan build BUG= 667837 Review-Url: https://codereview.chromium.org/2547063002 Cr-Commit-Position: refs/heads/master@{#436307} [modify] https://crrev.com/c1b2d7222c461133029f8dc7bee7c47145e442b1/content/renderer/render_thread_impl_browsertest.cc
,
Dec 5 2016
|
||||
►
Sign in to add a comment |
||||
Comment 1 by reve...@chromium.org
, Nov 23 2016