-
Notifications
You must be signed in to change notification settings - Fork 28.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternative fix to #6468 #6475
Alternative fix to #6468 #6475
Conversation
723a32c
to
102d478
Compare
cc @bnoordhuis |
@indutny I like this approach. Can you propose this upstream? |
@ofrobots just did it: https://codereview.chromium.org/1934453003/ |
msg.Append("shared-library,\"%s\",0x%08" V8PRIxPTR ",0x%08" V8PRIxPTR, | ||
library_path.c_str(), start, end); | ||
msg.Append("shared-library,\"%s\",0x%08" V8PRIxPTR ",0x%08" V8PRIxPTR | ||
",0x%08" V8PRIxPTR, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should probably print the slide as a signed base 10 number because it can be < 0. For that matter, the code should really be updated to use intptr_t
because that's what _dyld_get_image_vmaddr_slide()
returns.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any pros of using unsigned int and base 10 here? I like how things may work both ways here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, may I ask you to raise this concern on CL page?
Left a comment. The approach in general looks fine to me. |
CL has just landed. Guess we should revisit this when it will gets to us with a v8 upgrade. |
Superseded by #6558 |
Checklist
Affected core subsystem(s)
deps
Description of change
Note: this PR should not be landed until this patch will be upstreamed to the v8's trunk.
Here I propose, instead of turning off ASLR at either runtime or compile-time, export the ASLR slide in the profile data and parse it to resolve the symbols during
--prof-process
.Fix: #6466