Skip to content
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

Infinite recursion in resolve_function_name #837

Closed
benjaminRomano opened this issue May 1, 2024 · 0 comments
Closed

Infinite recursion in resolve_function_name #837

benjaminRomano opened this issue May 1, 2024 · 0 comments

Comments

@benjaminRomano
Copy link
Contributor

benjaminRomano commented May 1, 2024

Background

We are processing DWARF symbols for one of our .so files and hitting infinite recursion on function name resolution.

Potentially, this is a bug in DWARF symbols generation from the Android NDK Toolchain. Effectively, there is a self-reference loop, but with one layer of indirection so the existing fix for this does not work: #202.

image

Potential fixes

  1. Add a depth check to prevent infinite recursion -- I'm not sure if this is necessary or not. I don't know if there is at-most one level of indirection or arbitrary amounts possible.
  2. Check if the next reference to inspect is not the same as the prior reference: Avoid infinite recursion on indirect self-references #836
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants