Use the debugger rendez-vous to populate the module list on Linux - #195
Use the debugger rendez-vous to populate the module list on Linux#195schopin-mozilla wants to merge 7 commits into
Conversation
This is notably useful when using an Apple Silicon machine for development.
6da86ef to
6cbd4fa
Compare
|
The branch is based on top of #194 to make my life easier debugging Android issues, hence the Draft status, although I'm not sure if the CI runs on draft PRs? |
This should hopefully reduce the number of intermittent failures due to slow emulator/hardware.
Co-authored-by: Chris Martin <marti4d@live.ca>
This constructor documents the process's memory mappings by walking the dynamic linker's debugger rendez-vous structure. This will let us enumerate mappings even when /proc/<pid>/maps is unavailable. Co-authored-by: Chris Martin <marti4d@live.ca>
At this stage, the main effect of suspend_threads is to attach ptrace, which we'll need when we add the rendez-vous-based fallback.
Co-authored-by: Chris Martin <marti4d@live.ca>
We move the tests in their own process to make sure we get an isolated failspot instance.
6cbd4fa to
d4e1e9e
Compare
|
I think I'm getting there in terms of understanding this code, and I think we AFAICT, the reason we want to use the rendezvous data is to generate a more
Another question: do we really want this as a fallback? Instead, I'd rather
My proposed new implementation plan is thus the following:
Assuming you'll agree with that plan, I'll still need clarification on which |
I'm taking #151 over from Chris.
Fixes #142.