-
Notifications
You must be signed in to change notification settings - Fork 123
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
/bin/ls, /bin/cat/, /bin/... - raising doesn't work at all. #75
Comments
With /bin/echo I trigger a different assertion:
|
also got this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I have build everything according to the github instructions (I did use the right LLVM version). I build everything on Ubuntu 20. My mctoll checkout was based on following commit:
ff877f4
I have tried to raise any binary from /bin/* but it doesn't work. I always get following error:
`test@ubuntu:~/Desktop/llvm-project/build/bin$ ./llvm-mctoll -print-after-all -d /bin/cat
; /bin/cat: file format elf64-x86-64
Disassembling section
Function :
Parsed MCInst List
Generated CFG
llvm-mctoll: /home/test/Desktop/llvm-project/llvm/tools/llvm-mctoll/X86/X86JumpTables.cpp:259: bool X86MachineInstructionRaiser::raiseMachineJumpTable(): Assertion
JmpTblBaseCalcMBBTermInst != nullptr && "Branch instruction terminating basic block computing jump table " "base not found"' failed. #0 0x000055f3cc99ca7e llvm::sys::PrintStackTrace(llvm::raw_ostream&) (./llvm-mctoll+0xf80a7e) #1 0x000055f3cc99a9e4 llvm::sys::RunSignalHandlers() (./llvm-mctoll+0xf7e9e4) #2 0x000055f3cc99ab28 SignalHandler(int) (./llvm-mctoll+0xf7eb28) #3 0x00007f04633e33c0 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x153c0) #4 0x00007f0462ed518b raise /build/glibc-YYA7BZ/glibc-2.31/signal/../sysdeps/unix/sysv/linux/raise.c:51:1 #5 0x00007f0462eb4859 abort /build/glibc-YYA7BZ/glibc-2.31/stdlib/abort.c:81:7 #6 0x00007f0462eb4729 get_sysdep_segment_value /build/glibc-YYA7BZ/glibc-2.31/intl/loadmsgcat.c:509:8 #7 0x00007f0462eb4729 _nl_load_domain /build/glibc-YYA7BZ/glibc-2.31/intl/loadmsgcat.c:970:34 #8 0x00007f0462ec5f36 (/lib/x86_64-linux-gnu/libc.so.6+0x36f36) #9 0x000055f3cc9bd35e X86MachineInstructionRaiser::raiseMachineJumpTable() (./llvm-mctoll+0xfa135e) #10 0x000055f3cc9c8430 X86MachineInstructionRaiser::getRaisedFunctionPrototype() (./llvm-mctoll+0xfac430) #11 0x000055f3cbc8d8e2 ModuleRaiser::runMachineFunctionPasses() (./llvm-mctoll+0x2718e2) #12 0x000055f3cbc4fb48 DisassembleObject(llvm::object::ObjectFile const*, bool) (.constprop.0) (./llvm-mctoll+0x233b48) #13 0x000055f3cbc0758c main (./llvm-mctoll+0x1eb58c) #14 0x00007f0462eb60b3 __libc_start_main /build/glibc-YYA7BZ/glibc-2.31/csu/../csu/libc-start.c:342:3 #15 0x000055f3cbc3c82e _start (./llvm-mctoll+0x22082e) PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace. Stack dump: 0. Program arguments: ./llvm-mctoll -print-after-all -d /bin/cat Aborted (core dumped)
Any other binary, than cat will result in a similar looking core dump.
Is this know behaviour? What can I do to make it work?
mitp0sh
The text was updated successfully, but these errors were encountered: