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

Avoid xref crash upon undefined functions in modules without debug_info #1597

Merged

Conversation

g-andrade
Copy link
Contributor

@g-andrade g-andrade commented Aug 5, 2017

This can be reproduced by running xref analysis against rebar3 plugin projects which don't list rebar3 as an explicit dependency -- calls to certain bundled modules ('rebar_state', 'rebar_api', 'ec_cnv', ...) will result in a failed pattern match as these modules appear to have had their abstract code stripped.

…ipped modules

This can be reproduced by running xref analysis against a rebar3
plugin project which doesn't list rebar3 as an explicit dependency
-- calls to certain bundled modules ('rebar_state', 'rebar_api',
'ec_cnv', ...) will result in a failed pattern match as these modules
appear to have had their abstract code stripped.
@g-andrade
Copy link
Contributor Author

Sample project which triggers the crash attached to this comment.

rebar3_xref_crash.zip

@ferd
Copy link
Collaborator

ferd commented Aug 5, 2017

This is working well for me. +1 and merging.

@ferd ferd changed the title Avoid xref crash upon undefined functions in stripped modules Avoid xref crash upon undefined functions in modules without debug_info Aug 5, 2017
@ferd ferd merged commit b956c14 into erlang:master Aug 5, 2017
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

Successfully merging this pull request may close these issues.

2 participants