Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Issue 2365333002: Fix memory corruption in base_unittests in some configuration. (Closed)

Created:
4 years, 2 months ago by sdefresne
Modified:
4 years, 2 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix memory corruption in base_unittests in some configuration. On some combination of devices and version of OS (currently 64-bit iPad running iOS 10), sysctlbyname("vm.pagesize", ...) fails. This cause the wrapper ProcessMemoryDump::GetSystemPageSize to call base::GetPageSize, which is incorrect when used for mincore() on iOS. Instead use vm_kernel_page_size as recommended by Apple Staff on Apple developer forums: https://forums.developer.apple.com/thread/47532. BUG=542671 Committed: https://crrev.com/8bb015fe2ae98f0c019cda45096d8bfa0fc82d72 Cr-Commit-Position: refs/heads/master@{#421205}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -13 lines) Patch
M base/trace_event/process_memory_dump.cc View 2 chunks +7 lines, -13 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
sdefresne
Please take a look.
4 years, 2 months ago (2016-09-26 12:43:09 UTC) #4
sdefresne
On 2016/09/26 12:43:09, sdefresne wrote: > Please take a look. Note that "vm.pagesize" is not ...
4 years, 2 months ago (2016-09-26 12:43:53 UTC) #5
Primiano Tucci (use gerrit)
Feels like a deja-vu from https://codereview.chromium.org/1793943002 where somebody pointed out it was corrupting memory and ...
4 years, 2 months ago (2016-09-26 14:24:05 UTC) #8
sdefresne
On 2016/09/26 14:24:05, Primiano Tucci wrote: > Feels like a deja-vu from https://codereview.chromium.org/1793943002 where > ...
4 years, 2 months ago (2016-09-26 14:43:19 UTC) #9
sdefresne
https://codereview.chromium.org/2365333002/diff/1/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (left): https://codereview.chromium.org/2365333002/diff/1/base/trace_event/process_memory_dump.cc#oldcode72 base/trace_event/process_memory_dump.cc:72: return base::GetPageSize(); On 2016/09/26 14:24:05, Primiano Tucci wrote: > ...
4 years, 2 months ago (2016-09-26 14:44:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2365333002/1
4 years, 2 months ago (2016-09-26 15:13:05 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/286136)
4 years, 2 months ago (2016-09-26 16:37:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2365333002/20001
4 years, 2 months ago (2016-09-27 13:37:44 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-09-27 14:39:55 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 14:42:25 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8bb015fe2ae98f0c019cda45096d8bfa0fc82d72
Cr-Commit-Position: refs/heads/master@{#421205}

Powered by Google App Engine
This is Rietveld 408576698