Giter VIP home page Giter VIP logo

Comments (6)

bharadwajy avatar bharadwajy commented on July 28, 2024 2

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.

bharadwajy avatar bharadwajy commented on July 28, 2024

Thanks for reporting the failure. Will look at it.

from llvm-mctoll.

AndybnACT avatar AndybnACT commented on July 28, 2024

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.

archerbroler avatar archerbroler commented on July 28, 2024

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.

aaronsm avatar aaronsm commented on July 28, 2024

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.

aaronsm avatar aaronsm commented on July 28, 2024

Another problem raising CMOV which is issue #41.

from llvm-mctoll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.