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

Issue 10786038: Prevent loading libffmpegsumo.so to python (autotests) process. (Closed)

Created:
8 years, 5 months ago by glotov
Modified:
8 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, Nirnimesh
Visibility:
Public.

Description

Prevent loading libffmpegsumo.so to python (autotests) process. This is needed for ASAN environment because libffmpegsumo.so, being built with ASAN support, fails to load to python process (which is not ASAN-ed currently). At the same time it loads file to chrome or to gtest processes (like content_unittests) because they do have ASAN runtime. FYI: Alternative approach (https://chromiumcodereview.appspot.com/10692190/) was skipped because it disallowed ASAN to test libffmpegsumo.so. BUG=chromium-os:32259 TESTS=unit Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148183

Patch Set 1 #

Patch Set 2 : restrict to OS_CHROMEOS #

Total comments: 4

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 2

Patch Set 5 : sync + name change #

Total comments: 2

Patch Set 6 : update #

Patch Set 7 : sync + iteration #

Total comments: 4

Patch Set 8 : iteration #

Total comments: 6

Patch Set 9 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -2 lines) Patch
M chrome/test/base/chrome_test_suite.cc View 1 2 3 4 5 6 7 8 3 chunks +24 lines, -0 lines 0 comments Download
M content/public/test/content_test_suite_base.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M content/test/content_test_suite_base.cc View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
glotov
Hi Andrew! I think I found much simpler solution. What do you think?
8 years, 5 months ago (2012-07-17 18:45:24 UTC) #1
scherkus (not reviewing)
https://chromiumcodereview.appspot.com/10786038/diff/5002/content/test/content_test_suite_base.cc File content/test/content_test_suite_base.cc (right): https://chromiumcodereview.appspot.com/10786038/diff/5002/content/test/content_test_suite_base.cc#newcode29 content/test/content_test_suite_base.cc:29: #ifdef OS_CHROMEOS #if defined(OS_CHROMEOS) https://chromiumcodereview.appspot.com/10786038/diff/5002/content/test/content_test_suite_base.cc#newcode33 content/test/content_test_suite_base.cc:33: const char kPythonPrefix[] ...
8 years, 5 months ago (2012-07-18 17:40:02 UTC) #2
glotov
https://chromiumcodereview.appspot.com/10786038/diff/5002/content/test/content_test_suite_base.cc File content/test/content_test_suite_base.cc (right): https://chromiumcodereview.appspot.com/10786038/diff/5002/content/test/content_test_suite_base.cc#newcode29 content/test/content_test_suite_base.cc:29: #ifdef OS_CHROMEOS On 2012/07/18 17:40:02, scherkus wrote: > #if ...
8 years, 5 months ago (2012-07-19 20:12:40 UTC) #3
scherkus (not reviewing)
lgtm w/ nits +nirnimesh as FYI since he also solved some FFmpeg + PyAuto bugs ...
8 years, 5 months ago (2012-07-19 20:38:53 UTC) #4
glotov
https://chromiumcodereview.appspot.com/10786038/diff/20002/content/test/content_test_suite_base.cc File content/test/content_test_suite_base.cc (right): https://chromiumcodereview.appspot.com/10786038/diff/20002/content/test/content_test_suite_base.cc#newcode8 content/test/content_test_suite_base.cc:8: #include <unistd.h> On 2012/07/19 20:38:53, scherkus wrote: > this ...
8 years, 5 months ago (2012-07-19 21:45:33 UTC) #5
Nirnimesh
https://chromiumcodereview.appspot.com/10786038/diff/23001/content/test/content_test_suite_base.cc File content/test/content_test_suite_base.cc (right): https://chromiumcodereview.appspot.com/10786038/diff/23001/content/test/content_test_suite_base.cc#newcode39 content/test/content_test_suite_base.cc:39: return false; This statement is not true for non-chromeos. ...
8 years, 5 months ago (2012-07-20 01:57:37 UTC) #6
glotov
https://chromiumcodereview.appspot.com/10786038/diff/23001/content/test/content_test_suite_base.cc File content/test/content_test_suite_base.cc (right): https://chromiumcodereview.appspot.com/10786038/diff/23001/content/test/content_test_suite_base.cc#newcode39 content/test/content_test_suite_base.cc:39: return false; On 2012/07/20 01:57:37, Nirnimesh wrote: > This ...
8 years, 5 months ago (2012-07-20 16:28:57 UTC) #7
Nirnimesh
Code I commented on LGTM
8 years, 5 months ago (2012-07-20 19:07:28 UTC) #8
jam
http://codereview.chromium.org/10786038/diff/21005/content/test/content_test_suite_base.cc File content/test/content_test_suite_base.cc (right): http://codereview.chromium.org/10786038/diff/21005/content/test/content_test_suite_base.cc#newcode32 content/test/content_test_suite_base.cc:32: int num_read = readlink("/proc/self/exe", buf, sizeof(buf) - 1); this ...
8 years, 5 months ago (2012-07-20 21:46:15 UTC) #9
glotov
http://codereview.chromium.org/10786038/diff/21005/content/test/content_test_suite_base.cc File content/test/content_test_suite_base.cc (right): http://codereview.chromium.org/10786038/diff/21005/content/test/content_test_suite_base.cc#newcode32 content/test/content_test_suite_base.cc:32: int num_read = readlink("/proc/self/exe", buf, sizeof(buf) - 1); Adding ...
8 years, 5 months ago (2012-07-20 23:47:29 UTC) #10
glotov
I committed the change to make bots green. If the change does not look good, ...
8 years, 5 months ago (2012-07-21 14:52:42 UTC) #11
jam
On 2012/07/21 14:52:42, glotov wrote: > I committed the change to make bots green. If ...
8 years, 5 months ago (2012-07-21 22:09:11 UTC) #12
glotov
Done, as discussed by chat. Please have a look now.
8 years, 5 months ago (2012-07-23 18:29:37 UTC) #13
jam
http://codereview.chromium.org/10786038/diff/25001/chrome/test/base/chrome_test_suite.cc File chrome/test/base/chrome_test_suite.cc (right): http://codereview.chromium.org/10786038/diff/25001/chrome/test/base/chrome_test_suite.cc#newcode176 chrome/test/base/chrome_test_suite.cc:176: content::ContentTestSuiteBase::DisableLoadingExternalLibraries(); now you're doing this for all chrome test ...
8 years, 5 months ago (2012-07-23 23:02:40 UTC) #14
glotov
https://chromiumcodereview.appspot.com/10786038/diff/25001/chrome/test/base/chrome_test_suite.cc File chrome/test/base/chrome_test_suite.cc (right): https://chromiumcodereview.appspot.com/10786038/diff/25001/chrome/test/base/chrome_test_suite.cc#newcode176 chrome/test/base/chrome_test_suite.cc:176: content::ContentTestSuiteBase::DisableLoadingExternalLibraries(); On 2012/07/23 23:02:40, John Abd-El-Malek wrote: > now ...
8 years, 5 months ago (2012-07-24 13:06:55 UTC) #15
jam
lgtm with nits http://codereview.chromium.org/10786038/diff/22009/chrome/test/base/chrome_test_suite.cc File chrome/test/base/chrome_test_suite.cc (right): http://codereview.chromium.org/10786038/diff/22009/chrome/test/base/chrome_test_suite.cc#newcode167 chrome/test/base/chrome_test_suite.cc:167: static bool IsCrosPythonProcess() { nit: put ...
8 years, 5 months ago (2012-07-24 15:32:19 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/glotov@chromium.org/10786038/11008
8 years, 5 months ago (2012-07-24 16:23:40 UTC) #17
glotov
https://chromiumcodereview.appspot.com/10786038/diff/22009/chrome/test/base/chrome_test_suite.cc File chrome/test/base/chrome_test_suite.cc (right): https://chromiumcodereview.appspot.com/10786038/diff/22009/chrome/test/base/chrome_test_suite.cc#newcode167 chrome/test/base/chrome_test_suite.cc:167: static bool IsCrosPythonProcess() { I'd leave it here: locality ...
8 years, 5 months ago (2012-07-24 16:23:41 UTC) #18
jam
https://chromiumcodereview.appspot.com/10786038/diff/22009/chrome/test/base/chrome_test_suite.cc File chrome/test/base/chrome_test_suite.cc (right): https://chromiumcodereview.appspot.com/10786038/diff/22009/chrome/test/base/chrome_test_suite.cc#newcode167 chrome/test/base/chrome_test_suite.cc:167: static bool IsCrosPythonProcess() { On 2012/07/24 16:23:41, glotov wrote: ...
8 years, 5 months ago (2012-07-24 16:27:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/glotov@chromium.org/10786038/25004
8 years, 5 months ago (2012-07-24 16:51:26 UTC) #20
glotov
https://chromiumcodereview.appspot.com/10786038/diff/22009/chrome/test/base/chrome_test_suite.cc File chrome/test/base/chrome_test_suite.cc (right): https://chromiumcodereview.appspot.com/10786038/diff/22009/chrome/test/base/chrome_test_suite.cc#newcode167 chrome/test/base/chrome_test_suite.cc:167: static bool IsCrosPythonProcess() { On 2012/07/24 16:27:55, John Abd-El-Malek ...
8 years, 5 months ago (2012-07-24 17:05:05 UTC) #21
commit-bot: I haz the power
Try job failure for 10786038-25004 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-24 18:08:47 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/glotov@chromium.org/10786038/25004
8 years, 5 months ago (2012-07-24 18:25:43 UTC) #23
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary filesare still unsupported at ...
8 years, 5 months ago (2012-07-24 18:41:05 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/glotov@chromium.org/10786038/2016
8 years, 5 months ago (2012-07-24 18:41:11 UTC) #25
commit-bot: I haz the power
8 years, 5 months ago (2012-07-24 20:17:48 UTC) #26
Change committed as 148183

Powered by Google App Engine
This is Rietveld 408576698