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

Crash during call tree enhancement "Exception has occured: KeyError 'callers'" #39

Closed
Lykkeberg opened this issue Oct 9, 2020 · 2 comments

Comments

@Lykkeberg
Copy link
Contributor

I have downloaded the Puncover tool (thanks for a great tool btw). I ran it on my code, which is running on a ARM Cortex M0 with som ROM code being called. This seems to cause this issue.

When parsing the "nm" output, the Puncover stumbles on an absolute address definition:
Example (there are several):
07f1d989 A __eaabi_uidivmod
...

These absolute values are actually entries into a ROM code section, so they are actually getting called from the application.

How can this be handled correctly in Puncover? I have made a quick-fix in Collector.py::parse_size_lines() method. Simply just add an entry in 'types' for the 'A' type as a TYPE_FUNCTION.

The commit ID is 9eaabf8

campbellyoung added a commit to campbellyoung/puncover that referenced this issue Jan 17, 2022
@campbellyoung
Copy link

Thanks for describing your workaround, it fixes things for me!

@noahp
Copy link
Collaborator

noahp commented Mar 2, 2023

Apologies for the slow turnaround here, I've merged the patch in #73 and released this in version 0.3.3, let me know if there's any problems!

@noahp noahp closed this as completed Mar 2, 2023
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

3 participants