Comments (6)
Thanks for the additional detail.
I will incorporate fixes for this along with the addition of follow on support that is needed to identify memory accesses and the types of accessed data to abstract them as LLVM variables as appropriate. (Issue #21).
from llvm-mctoll.
Thanks for reporting the failure. Will look at it.
from llvm-mctoll.
I have the same issue. The function X86MachineInstructionRaiser::getFunctionReturnType()
may push a null pointer on WorkList
if it didn't find a proper RetBlock
, resulting a dereference of nullptr and crashes the program. However, fixing it by returning nullptr whenever RetBlock
not found causes program to abort at X86MachineInstructionRaiser::raiseMachineJumpTable
from llvm-mctoll.
hi, when I use this tool to raise ls cmd, get core dump.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007ffff676442a in __GI_abort () at abort.c:89
#2 0x00007ffff675be67 in __assert_fail_base (fmt=,
assertion=assertion@entry=0x555558082670 "tempFunctionPtr != nullptr && "Function not found in module list"",
file=file@entry=0x55555807bb60 "/home/liujingyang/src/llvm/tools/llvm-mctoll/X86/X86MachineInstructionRaiser.cpp", line=line@entry=1677,
function=function@entry=0x555558084cc0 X86MachineInstructionRaiser::getRaisedFunctionPrototype()::__PRETTY_FUNCTION__ "virtual llvm::FunctionType* X86MachineInstructionRaiser::getRaisedFunctionPrototype()")
at assert.c:92
#3 0x00007ffff675bf12 in __GI___assert_fail (
assertion=0x555558082670 "tempFunctionPtr != nullptr && "Function not found in module list"",
file=0x55555807bb60 "/home/liujingyang/src/llvm/tools/llvm-mctoll/X86/X86MachineInstructionRaiser.cpp",
line=1677,
function=0x555558084cc0 X86MachineInstructionRaiser::getRaisedFunctionPrototype()::__PRETTY_FUNCTION__ "virtual llvm::FunctionType* X86MachineInstructionRaiser::getRaisedFunctionPrototype()") at assert.c:101
#4 0x000055555672bd8e in X86MachineInstructionRaiser::getRaisedFunctionPrototype() ()
#5 0x0000555555a3c0ca in ModuleRaiser::runMachineFunctionPasses() ()
#6 0x0000555555a0668d in DisassembleObject(llvm::object::ObjectFile const*, bool) [clone .constprop.701] ()
#7 0x000055555597491e in main ()
from llvm-mctoll.
This is the current problem I have with raising 'ls'.
Assertion failed: (JmpTblBaseCalcMBB.pred_size() == 1) && "Expect a single predecessor during jump table discovery", file d:\llvm-project\llvm\tools\llvm-mctoll\x86\x86jumptables.cpp, line 221
from llvm-mctoll.
Another problem raising CMOV which is issue #41.
from llvm-mctoll.
Related Issues (20)
- Wrong lift result for nested "for" loops. HOT 2
- Unable to raise arm binary containing an array HOT 3
- Adapt mctoll to use Opaque pointers HOT 1
- This repo is missing important files
- Unknown prototype for function : _ZNSaIcEC1Ev HOT 1
- Failing to lift binaries HOT 2
- TEST8rr instruction failing to lift properly HOT 1
- Failed to lift binary (core dumped) HOT 1
- Failed to lift simple ARM binary HOT 1
- Build without LLVM source? HOT 1
- Supported LLVM version HOT 1
- assert failed at X86FuncPrototypeDiscovery.cpp:227 HOT 2
- Does Mctoll Translator support Weak Memory Model Architectures ? HOT 1
- cannot compile mctoll without assertions HOT 7
- Error while lifting. HOT 6
- Error when lifting. HOT 1
- is this project still on-going? HOT 1
- i need to install llvm mctoll HOT 3
- generate invalid llir instructions HOT 4
- Cannot get step #4 to work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llvm-mctoll.