Can't Rename chrome.exe File?

671 views
Skip to first unread message

Brian White

unread,
Feb 4, 2016, 10:05:03 AM2/4/16
to chromium-dev
I used to rename out/Debug/chrome.exe to be out/Debug/achrome.exe because it made it easy to distinguish the process from the running (stable) chrome on my workstation when trying to attach to it in VS or kill it from the Task Manager.  Something changed, however, and now it fails to start:

$ out/Debug/achrome
[0204/150210:ERROR:crashpad_client_win.cc(316)] CreateProcess: The system cannot find the file specified. (0x2)
[0204/150210:FATAL:crashpad_client_win.cc(353)] Check failed: !ipc_pipe_.empty().
Backtrace:
        base::debug::StackTrace::StackTrace [0x10091A21+33] (d:\src\chromium\src\base\debug\stack_trace_win.cc:215)
        logging::LogMessage::~LogMessage [0x100EA55B+75] (d:\src\chromium\src\base\logging.cc:522)
        crashpad::CrashpadClient::GetHandlerIPCPipe [0x004DFE24+244] (d:\src\chromium\src\third_party\crashpad\crashpad\client\crashpad_client_win.cc:353)
        crash_reporter::internal::PlatformCrashpadInitialization [0x0043E36F+943] (d:\src\chromium\src\components\crash\content\app\crashpad_win.cc:99)
        crash_reporter::InitializeCrashpad [0x00438D77+711] (d:\src\chromium\src\components\crash\content\app\crashpad.cc:121)
        wWinMain [0x00423A97+231] (d:\src\chromium\src\chrome\app\chrome_exe_main_win.cc:195)
        __tmainCRTStartup [0x0059F22C+540] (f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618)
        wWinMainCRTStartup [0x0059F36D+13] (f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:466)
        BaseThreadInitThunk [0x7588338A+18]
        RtlInitializeExceptionChain [0x76F19882+99]
        RtlInitializeExceptionChain [0x76F19855+54]

Any ideas?

  Brian
  bcw...@google.com
-----------------------------------------------------------------------------------------
Treat someone as they are and they will remain that way.
Treat someone as they can be and they will become that way.

Samuel Huang

unread,
Feb 4, 2016, 10:27:01 AM2/4/16
to Brian White, chromium-dev

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Jeremy Roman

unread,
Feb 4, 2016, 10:30:21 AM2/4/16
to bcw...@google.com, chromium-dev, Scott Graham
[cc scottmg, who seems to have written this code]

It looks like it depends on either chrome.exe or crashpad_handler.exe existing to initialize crashpad. Maybe it will work if you also build crashpad_handler (and have it use that, rather than the handler built into chrome.exe)?

On Thu, Feb 4, 2016 at 10:03 AM, 'Brian White' via Chromium-dev <chromi...@chromium.org> wrote:

Scott Graham

unread,
Feb 4, 2016, 11:56:58 AM2/4/16
to Brian White, chromium-dev
Hi, I should have used PathService(FILE_EXE). I'll fix it, or if it's urgent you can send me a CL.

Brian White

unread,
Feb 4, 2016, 9:04:51 PM2/4/16
to Scott Graham, chromium-dev
I'll see what I can find.  The specific link from Sam isn't the problem because I hadn't even imported that change locally.

-- Brian
--

Gesly George

unread,
Sep 12, 2016, 11:53:25 AM9/12/16
to Chromium-dev, sco...@chromium.org
Hi,
I came across this post searching for solutions to renaming chrome.exe. I tend to rename chrome.exe in my environment for various reasons. Since Chrome 54 this has not been possible. It crashes as soon as you launch. Wondering if you would be switching back to the old behavior where you could rename the exe and still use it. 

Thanks

Scott Graham

unread,
Sep 12, 2016, 12:30:44 PM9/12/16
to Gesly George, Chromium-dev
Hi, this regressed for a while, but should be working in Canary/55.
Reply all
Reply to author
Forward
0 new messages