avast / avast/retdec

catched std::bad_alloc

Open
#1,216 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Running phase: Unpacking ( 0.01s )
No matching plugins found for 'gold 1.11'
No matching plugins found for 'GCC 4.9'
No matching plugins found for 'GCC 4.8'
Running phase: Initialization ( 0.21s )
Running phase: Providers initialization ( 0.21s )
Running phase: Input binary to LLVM IR decoding ( 0.65s )
Running phase: LLVM ( 1250.06s )
Running phase: x86 address spaces optimization ( 1251.55s )
Running phase: x87 fpu register analysis ( 1251.55s )
Running phase: Main function identification optimization ( 1251.55s )
Running phase: Libgcc idioms optimization ( 1251.62s )
Running phase: LLVM instruction optimization ( 1252.32s )
Running phase: Conditional branch optimization ( 1253.04s )
Running phase: Syscalls optimization ( 1271.55s )
Running phase: Stack optimization ( 1272.32s )
catched std::bad_alloc

same problem on stable version v 5.0 and newest build

./retdec-decompiler --version
RetDec version :  v5.0-67-g04df6def
Commit hash    :  04df6def8862ab5fa47e889516c34435f7413cac
Build date     :  2025-03-06T15:49:42Z
Input file               : /home/blessedq/com.djuvler.fkkfle-Pzjc2kuEiUGv7xQV5Tvthg==/lib/arm/libloader.so
Telfhash                 : T13C414F06A93C12ED98D25C15CC342BC25293D33A7260EE0AFF59CDC0695E986F659C4F
CRC32                    : a33793c4
MD5                      : 15b662f11f9deb9a4d28179c4c4f9391
SHA256                   : 8d31382ba64fa634172434bc0db89cfec05bb1e37696eb0726a864dd6ed8dd80
File format              : ELF
File class               : 32-bit
File type                : DLL
Architecture             : ARM
Endianness               : Little endian
Detected tool            : gold (1.11) (linker), .note section heuristic
Detected tool            : GCC (4.9) (compiler), .comment section heuristic
Detected tool            : GCC (4.8) (compiler), .comment section heuristic
Original language        : C++

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with retdec-decompiler on the reported ARM ELF file and observe the LLVM, optimization, and std::bad_alloc stages. Trace the failing allocation or processing path in the decompiler and add a regression check if an existing test area is identified. Done means the input no longer terminates with std::bad_alloc, or the issue has a documented resource limitation.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.