avast / avast/retdec

Failure to decompile after Conditional branch optimization

Open
#595 6 comments 0 reactions 1 assignee Claimed by @PeterMatula View on GitHub
C-bin2llvmir P-output T-memory
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Attempting to decompile a 9MB `.so` on arm arch.

First attempts failed with OOMs, so I gave it another go with `--no-memory-limit`, and it spent a while (and >24GB of memory) before failing like this:
```
...
Running phase: Initialization ( 0.01s )
Running phase: LLVM ( 0.01s )
Running phase: Providers initialization ( 0.01s )
Running phase: Input binary to LLVM IR decoding ( 1.11s )
Running phase: LLVM ( 1722.96s )
Running phase: x87 fpu register analysis ( 1725.97s )
Running phase: Main function identification optimization ( 1725.97s )
Running phase: Libgcc idioms optimization ( 1726.02s )
Running phase: LLVM instruction optimization ( 1727.33s )
Running phase: Conditional branch optimization ( 1728.64s )
Wrote crash dump file "C:\Users\Admin\AppData\Local\Temp\retdec-bin2llvmir.exe-4ee9e0.dmp"
0x00007FFDDEB4A388 (0x00007FF7A8AE6637 0x0000000AAE18E048 0x0000019300000100 0x0000000AAE18CEF8), RaiseException() + 0x68 bytes(s)
0x00007FFDCD4D2A86 (0x0000019491B3BC60 0x0000019300000000 0x0000000AAE18F0F0 0x0000000000000000), __FrameUnwindFilter() + 0x496 bytes(s)
0x00007FFDE27DED63 (0x000001949F65DFE0 0x0000000AAE18F3F8 0x000001949F6293C8 0x00007FF7A82E64B4)
0x00007FF7A834AB92 (0x000001949F65DFE0 0x0000019A50E22B70 0x0000019A518548A0 0x0000019493378FF0)
0x00007FF7A834DD0A (0x000001935CF5E548 0x000001949ECA91C0 0x0000000000000000 0x0000019564E85070)
0x00007FF7A834EBCE (0x000001949F93DF38 0x0000019359205DD0 0x0000000AAE18F548 0x0000019359205DD0)
0x00007FF7A834EDBC (0x0000019359288BB0 0x0000000000000000 0x0000019359297BF0 0x0000019359297760)
0x00007FF7A833787F (0x0000019359288BB0 0x0000000000000001 0x0000019359205EE8 0x0000019359288BB0)
0x00007FF7A8A1F853 (0x0000019300000011 0x0000000000000000 0x0000000000000000 0x0000019359205E10)
0x00007FF7A8A1EF69 (0x000001935ABC7380 0x0000000AAE18F7E0 0x0000000000000000 0x000001935ABC7380)
0x00007FF7A82A0F7A (0x00007FF7A8B13E18 0x00007FF7A8AC8BB5 0x00007FFDDF659570 0x00000000000003F5)
0x00007FF7A82A2DC2 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF7A8AC933C (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FFDDFBE4034 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FFDE27B3691 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
Error: Decompilation to LLVM IR failed
```

Willing to supply both the input file and crash dump via email on request.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.