Chrome crashpad crashes on xattr

9

2

I have a macos High Sierra 10.13.3. When running Chrome in headless mode to execute automated tests, I get this error:

[0207/114344.742771:ERROR:xattr.cc(64)] setxattr org.chromium.crashpad.database.initialized on file /var/folders/8c/s_296_fd25sfywfxclkjcz_w0000gp/T/: Operation not permitted (1)
[karma2] [0207/114344.743721:INFO:crashpad_client_mac.cc(292)] restarting handler in 0.980s

I have tried to clear the extended attributes on that file with xattr -c /var/folders/8c/s_296_fd25sfywfxclkjcz_w0000gp/T/ but I'm also getting an Operation Not Permitted, even with sudo.

I can list the attributes:

$ xattr /var/folders/8c/s_296_fd25sfywfxclkjcz_w0000gp/T
com.apple.rootless

So how can I fix the permissions on this file? It use to work until recently.

Francis

Posted 2018-02-07T17:15:09.943

Reputation: 101

Does this question and (very) clear answer provide a solution?

– agtoever – 2018-02-09T19:42:28.690

I tried the 4 commands suggested in that post, but I'm still getting the issue. I can't sudo chown , I get a Operation Not Permitted – Francis – 2018-02-15T15:23:00.180

@agtoever Intrigued to know why you think a 6 year old solution to an unrelated problem (aside from part of the error message) is likely to work here.. – geotheory – 2018-03-17T19:48:16.270

Answers

9

There is a simple workaround. Just provide a different directory for "crash dumps" when starting Chrome, like this:

path_to_chrome --headless --crash-dumps-dir=/tmp

Nikola Mihajlović

Posted 2018-02-07T17:15:09.943

Reputation: 191