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

Issue 6331002: Do not read /proc/self/exe before forking if Chrome is ran under Valgrind.... (Closed)

Created:
9 years, 11 months ago by Alexander Potapenko
Modified:
9 years, 6 months ago
Reviewers:
kcc1, Evan Martin, evanm
CC:
chromium-reviews, kcc2
Visibility:
Public.

Description

Do not read /proc/self/exe before forking if Chrome is ran under Valgrind. This should prevent ui_tests from crashing under Valgrind on Linux. This fix was suggested by kcc (see the discussion of issue 28439) BUG=28439 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71590

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M chrome/common/child_process_host.cc View 2 chunks +5 lines, -1 line 1 comment Download

Messages

Total messages: 5 (0 generated)
Alexander Potapenko
Hi Evan, could you please take a look?
9 years, 11 months ago (2011-01-14 13:42:44 UTC) #1
evanm
http://codereview.chromium.org/6331002/diff/1/chrome/common/child_process_host.cc File chrome/common/child_process_host.cc (right): http://codereview.chromium.org/6331002/diff/1/chrome/common/child_process_host.cc#newcode69 chrome/common/child_process_host.cc:69: PathService::Get(base::FILE_EXE, &child_path); Do we know if this returns /proc/self/exe ...
9 years, 11 months ago (2011-01-14 17:19:20 UTC) #2
kcc1
On Fri, Jan 14, 2011 at 8:19 PM, <evanm@google.com> wrote: > > > http://codereview.chromium.org/6331002/diff/1/chrome/common/child_process_host.cc > ...
9 years, 11 months ago (2011-01-14 17:20:55 UTC) #3
evanm
On 2011/01/14 17:20:55, kcc1 wrote: > > Do we know if this returns /proc/self/exe too? ...
9 years, 11 months ago (2011-01-14 17:22:28 UTC) #4
Alexander Potapenko
9 years, 11 months ago (2011-01-14 18:10:34 UTC) #5
> Weird!  So exec'ing /proc/self/exe execs valgrind, but reading the
> /proc/self/exe symlink gives you the real path?
Yes, according to
http://old.nabble.com/valgrind:-failed-in-UME-with-error-22-(Invalid-argument...
> 
> LGTM then

Powered by Google App Engine
This is Rietveld 408576698