Instruments crashes app with Hardened Runtime on macOS Mojave Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!How use Instruments and display the console in Command Lines applicationsWhere is JAVA_HOME on macOS Mojave (10.14) to Lion (10.7)?Xcode 4.4.1 code signing issueApps manually installed in simulator crashes upon loadapp signed on sierra crashed on el capitanmach_override() function is failing in mojave OSX 10.14Git is not working after macOS Mojave Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)Python crashed with OpenCV in MacOS MojaveHardened runtime for Java and MojaveDowngrading OpenGL in macOS Mojave
Could a cockatrice have parasitic embryos?
Why aren't road bicycle wheels tiny?
When does Bran Stark remember Jamie pushing him?
false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'
Israeli soda type drink
Is there a verb for listening stealthily?
Does every subgroup of an abelian group have to be abelian?
Is a self contained air-bullet cartridge feasible?
Will I be more secure with my own router behind my ISP's router?
Where to find documentation for `whois` command options?
What does the black goddess statue do and what is it?
Getting AggregateResult variables from Execute Anonymous Window
Putting Ant-Man on house arrest
Page Layouts : 1 column , 2 columns-left , 2 columns-right , 3 column
Does a Draconic Bloodline sorcerer's doubled proficiency bonus for Charisma checks against dragons apply to all dragon types or only the chosen one?
What do you call an IPA symbol that lacks a name (e.g. ɲ)?
How did Elite on the NES work?
Why do people think Winterfell crypts is the safest place for women, children and old people?
Why does Java have support for time zone offsets with seconds precision?
Where did Arya get these scars?
Is it accepted to use working hours to read general interest books?
Where can I find how to tex symbols for different fonts?
Does Prince Arnaud cause someone holding the Princess to lose?
What is the definining line between a helicopter and a drone a person can ride in?
Instruments crashes app with Hardened Runtime on macOS Mojave
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!How use Instruments and display the console in Command Lines applicationsWhere is JAVA_HOME on macOS Mojave (10.14) to Lion (10.7)?Xcode 4.4.1 code signing issueApps manually installed in simulator crashes upon loadapp signed on sierra crashed on el capitanmach_override() function is failing in mojave OSX 10.14Git is not working after macOS Mojave Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)Python crashed with OpenCV in MacOS MojaveHardened runtime for Java and MojaveDowngrading OpenGL in macOS Mojave
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I found that Xcode 10 Instruments (Leaks) would fail to attach to a command-line application signed with Hardened Runtime enabled, with the following error:
Error: Failed to attach to target process
I added the com.apple.security.get-task-allow entitlement to the application, and re-signed it. Then, instead of failing to attach, the application would crash with signal 9. When the application crashed, the following was logged to Console.app:
CODE SIGNING: process 93890[appname]: rejecting invalid page at address 0x1015f9000 from offset 0x0 in file "" (cs_mtime:0.0 == mtime:0.0) (signed:0 validated:0 tainted:0 nx:0 wpmapped:1 dirty:0 depth:0)
How do attach Instruments to this application? I am running macOS Mojave.
xcode macos macos-mojave codesign xcode-instruments
add a comment |
I found that Xcode 10 Instruments (Leaks) would fail to attach to a command-line application signed with Hardened Runtime enabled, with the following error:
Error: Failed to attach to target process
I added the com.apple.security.get-task-allow entitlement to the application, and re-signed it. Then, instead of failing to attach, the application would crash with signal 9. When the application crashed, the following was logged to Console.app:
CODE SIGNING: process 93890[appname]: rejecting invalid page at address 0x1015f9000 from offset 0x0 in file "" (cs_mtime:0.0 == mtime:0.0) (signed:0 validated:0 tainted:0 nx:0 wpmapped:1 dirty:0 depth:0)
How do attach Instruments to this application? I am running macOS Mojave.
xcode macos macos-mojave codesign xcode-instruments
add a comment |
I found that Xcode 10 Instruments (Leaks) would fail to attach to a command-line application signed with Hardened Runtime enabled, with the following error:
Error: Failed to attach to target process
I added the com.apple.security.get-task-allow entitlement to the application, and re-signed it. Then, instead of failing to attach, the application would crash with signal 9. When the application crashed, the following was logged to Console.app:
CODE SIGNING: process 93890[appname]: rejecting invalid page at address 0x1015f9000 from offset 0x0 in file "" (cs_mtime:0.0 == mtime:0.0) (signed:0 validated:0 tainted:0 nx:0 wpmapped:1 dirty:0 depth:0)
How do attach Instruments to this application? I am running macOS Mojave.
xcode macos macos-mojave codesign xcode-instruments
I found that Xcode 10 Instruments (Leaks) would fail to attach to a command-line application signed with Hardened Runtime enabled, with the following error:
Error: Failed to attach to target process
I added the com.apple.security.get-task-allow entitlement to the application, and re-signed it. Then, instead of failing to attach, the application would crash with signal 9. When the application crashed, the following was logged to Console.app:
CODE SIGNING: process 93890[appname]: rejecting invalid page at address 0x1015f9000 from offset 0x0 in file "" (cs_mtime:0.0 == mtime:0.0) (signed:0 validated:0 tainted:0 nx:0 wpmapped:1 dirty:0 depth:0)
How do attach Instruments to this application? I am running macOS Mojave.
xcode macos macos-mojave codesign xcode-instruments
xcode macos macos-mojave codesign xcode-instruments
edited Mar 9 at 5:05
craig65535
asked Mar 9 at 4:49
craig65535craig65535
2,1531439
2,1531439
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I found two ways to fix this:
Do not codesign with Hardened Runtime enabled - this is a good solution for debug builds, but not for a release build that you might want to notarize. Additionally, it misses out on the security protections provided by Hardened Runtime.
Add another entitlement: com.apple.security.cs.disable-executable-page-protection. This works, but it concerns me that it is required. It also impacts security, but less so than the first solution.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074082%2finstruments-crashes-app-with-hardened-runtime-on-macos-mojave%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I found two ways to fix this:
Do not codesign with Hardened Runtime enabled - this is a good solution for debug builds, but not for a release build that you might want to notarize. Additionally, it misses out on the security protections provided by Hardened Runtime.
Add another entitlement: com.apple.security.cs.disable-executable-page-protection. This works, but it concerns me that it is required. It also impacts security, but less so than the first solution.
add a comment |
I found two ways to fix this:
Do not codesign with Hardened Runtime enabled - this is a good solution for debug builds, but not for a release build that you might want to notarize. Additionally, it misses out on the security protections provided by Hardened Runtime.
Add another entitlement: com.apple.security.cs.disable-executable-page-protection. This works, but it concerns me that it is required. It also impacts security, but less so than the first solution.
add a comment |
I found two ways to fix this:
Do not codesign with Hardened Runtime enabled - this is a good solution for debug builds, but not for a release build that you might want to notarize. Additionally, it misses out on the security protections provided by Hardened Runtime.
Add another entitlement: com.apple.security.cs.disable-executable-page-protection. This works, but it concerns me that it is required. It also impacts security, but less so than the first solution.
I found two ways to fix this:
Do not codesign with Hardened Runtime enabled - this is a good solution for debug builds, but not for a release build that you might want to notarize. Additionally, it misses out on the security protections provided by Hardened Runtime.
Add another entitlement: com.apple.security.cs.disable-executable-page-protection. This works, but it concerns me that it is required. It also impacts security, but less so than the first solution.
edited Mar 9 at 5:05
answered Mar 9 at 4:49
craig65535craig65535
2,1531439
2,1531439
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55074082%2finstruments-crashes-app-with-hardened-runtime-on-macos-mojave%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown