New issue
Advanced search Search tips

Issue 772920 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Headless tries to write into the app directory on mac

Project Member Reported by skyos...@chromium.org, Oct 9 2017

Issue description

We try to create a crash dump directory into the app folder:

$ MacOS ./Google\ Chrome --headless
[1009/100340.443190:ERROR:crash_report_database_mac.mm(94)] mkdir /Applications/Google Chrome.app/Contents/Versions/61.0.3163.100/Google Chrome Framework.framework/Versions/A/new: Permission denied
[1009/100340.443558:ERROR:crash_report_database_mac.mm(94)] mkdir /Applications/Google Chrome.app/Contents/Versions/61.0.3163.100/Google Chrome Framework.framework/Versions/A/new: Permission denied
[1009/100340.443617:INFO:crashpad_client_mac.cc(295)] restarting handler in 0.987s
[1009/100340.590801:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.

Workaround: --crash-dumps-dir=/tmp

 
Project Member

Comment 1 by bugdroid1@chromium.org, Oct 10 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/0f7e111b6e05496c3b559d87cd2146d6387b9e13

commit 0f7e111b6e05496c3b559d87cd2146d6387b9e13
Author: Sami Kyostila <skyostil@chromium.org>
Date: Tue Oct 10 10:45:38 2017

headless: Write crash dumps to temporary directory by default

Instead of using the current or the binary directory for crash dumps,
write them to the system temporary directory because the former
directories may not be writeable. Note that you can override this
behavior with --crash-dumps-dir.

BUG= 772920 

Change-Id: I27c9edf58cd01082ce6d807c16ff5d6bffee791d
Reviewed-on: https://chromium-review.googlesource.com/708273
Reviewed-by: Alex Clarke <alexclarke@chromium.org>
Commit-Queue: Sami Kyöstilä <skyostil@chromium.org>
Cr-Commit-Position: refs/heads/master@{#507632}
[modify] https://crrev.com/0f7e111b6e05496c3b559d87cd2146d6387b9e13/headless/app/headless_shell.cc

Status: Fixed (was: Assigned)

Sign in to add a comment