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

Assertion failure in getDef #12

Open
tluio opened this issue May 18, 2020 · 0 comments
Open

Assertion failure in getDef #12

tluio opened this issue May 18, 2020 · 0 comments

Comments

@tluio
Copy link

tluio commented May 18, 2020

When I used SVF to process Zephyr kernel codes, I found something wrong.
First, I ran cmake and got some files named build.make. Then I replaced 'clang' with 'wllvm' in these files and ran make.
Some warnings like

  1. objcopy: CMakeFiles/lib__libc__minimal.dir/source/stdout/stZ4lxPb: Failed to find link section for section 36
  2. /usr/bin/ld: warning: orphan section ’.llvm_bc' from ‘kernel/libkernel.a(idle.c.obj)' being placed in section ’.llvm_bc'.
    occurred. But I still got zephyr.elf. Then I ran extract-bc zephyr.elf and got zephyr.elf.bc.
    Finally, when I ran dvf -cxt -query=all -maxcxt=3 -flowbg=10000 -cxtbg=10000 zephyr.elf.bc, something wrong occurred.
    dvf: SVF-master/include/Util/VFG.h:311: NodeID VFG::getDef(const PAGNode*) const: Assertion `it!=PAGNodeToDefMap.end() && "PAG node does not have a definition??"' failed.

zephyr.elf.bc is avaliable at https://github.com/tluio/Zephyr_tmp.

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

1 participant