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

linked-list style of recursive types cause crash ( x = < x*, data > ) #4

Open
dtzWill opened this issue Nov 1, 2018 · 1 comment
Open

Comments

@dtzWill
Copy link

dtzWill commented Nov 1, 2018

Ran into this on an actual program, but it can be reproduced with the recursive-type-3.ll test from LLVM, available here:

https://github.com/llvm-mirror/llvm/blob/e19f1300d602cb47372a155a71e336e6463aafc0/test/Verifier/recursive-type-3.ll

Crash is what one'd expect, infinite recursion trying to process the type.

Don't know if there's a good way to handle this -- I'd suggest some map {type -> debuginfo} and use it as a cache and to avoid processing types twice, but the tricky part is the details of course :). Maybe upstream's -debugify would have some inspiration, not sure.

Let me know if more information would be useful, thanks for making this available!

@thestr4ng3r
Copy link
Owner

Sorry, I don't have any time to work on this project at the moment. But I would be happy to receive a pr if you can implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants