avast / avast/retdec

retdec-llvmir2hll crashes in phase "removing code that is not reachable in a CFG"

Open
#659 2 comments 0 reactions 0 assignees View on GitHub
bug C-llvmir2hll P-run
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Command being used:
```
"RETDEC_PATH\bin\retdec-llvmir2hll" -target-hll=c -var-renamer=readable -var-name-gen=fruit -var-name-gen-prefix= -call-info-obtainer=optim -arithm-expr-evaluator=c -validate-module -o "CONTAINING_FOLDER\libchoicesapp.so.c" "CONTAINING_FOLDER\libchoicesapp.so.bc" -enable-debug -emit-debug-comments -config-path="CONTAINING_FOLDER\libchoicesapp.so.json"
```
Command output:
[retdec-out.txt](https://github.com/avast/retdec/files/3637459/retdec-out.txt)

Files:
[libchoicesapp.so.zip.001.zip](https://github.com/avast/retdec/files/3637493/libchoicesapp.so.zip.001.zip)
[libchoicesapp.so.zip.002.zip](https://github.com/avast/retdec/files/3637498/libchoicesapp.so.zip.002.zip)
[libchoicesapp.so.zip.003.zip](https://github.com/avast/retdec/files/3637501/libchoicesapp.so.zip.003.zip)

[libchoicesapp.so.json.zip](https://github.com/avast/retdec/files/3637474/libchoicesapp.so.json.zip)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the crash with retdec-llvmir2hll using the command, libchoicesapp.so inputs, and configuration archive attached to the issue. Start with retdec-out.txt and the reported phase, “removing code that is not reachable in a CFG,” to identify the failing condition. Done means the supplied case completes that phase without crashing.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers, reverse-engineering
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.