CatOS icon indicating copy to clipboard operation
CatOS copied to clipboard

使用ghidra反解析riscv程序时,x86程序反编译器崩了

Open LunaticLegacy opened this issue 7 months ago • 0 comments

来自CatOS的报错日志:

           PID: 326390 (decompile)
           UID: 1000 (luna)
           GID: 1000 (luna)
        Signal: 8 (FPE)
     Timestamp: Tue 2026-04-07 19:18:44 CST (13s ago)
  Command Line: /opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile
    Executable: /opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile
 Control Group: /user.slice/user-1000.slice/[email protected]/app.slice/[email protected]
          Unit: [email protected]
     User Unit: [email protected]
         Slice: user-1000.slice
     Owner UID: 1000 (luna)
       Boot ID: 8d403e4d61e0406d99d8b41bcebaf9dd
    Machine ID: d9a9248957e6466ab79002811c327845
      Hostname: lunablade
       Storage: /var/lib/systemd/coredump/core.decompile.1000.8d403e4d61e0406d99d8b41bcebaf9dd.326390.1775560724000000.zst (present)
  Size on Disk: 107.3M
       Message: Process 326390 (decompile) of user 1000 dumped core.
                
                Stack trace of thread 326390:
                #0  0x00005611785257cc _ZNK6ghidra17OpBehaviorIntSdiv14evaluateBinaryEiimm (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x1777cc)
                #1  0x0000561178521d44 _ZNK6ghidra7PcodeOp13executeSimpleEPmRb (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x173d44)
                #2  0x00005611784603ca _ZN6ghidra22ActionConditionalConst12pushConstantERNSt7__cxx114listINS0_10ConstPointESaIS3_EEEPNS_7PcodeOpE (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0xb23ca)
                #3  0x00005611784741bb _ZN6ghidra22ActionConditionalConst17propagateConstantERNSt7__cxx114listINS0_10ConstPointESaIS3_EEEbRNS_8FuncdataE (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0xc61bb)
                #4  0x00005611784745b8 _ZN6ghidra22ActionConditionalConst5applyERNS_8FuncdataE (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0xc65b8)
                #5  0x000056117842b536 _ZN6ghidra6Action7performERNS_8FuncdataE (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x7d536)
                #6  0x000056117842b62e _ZN6ghidra11ActionGroup5applyERNS_8FuncdataE (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x7d62e)
                #7  0x000056117842b536 _ZN6ghidra6Action7performERNS_8FuncdataE (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x7d536)
                #8  0x000056117842b62e _ZN6ghidra11ActionGroup5applyERNS_8FuncdataE (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x7d62e)
                #9  0x000056117842b536 _ZN6ghidra6Action7performERNS_8FuncdataE (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x7d536)
                #10 0x000056117842b62e _ZN6ghidra11ActionGroup5applyERNS_8FuncdataE (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x7d62e)
                #11 0x000056117842b6c6 _ZN6ghidra18ActionRestartGroup5applyERNS_8FuncdataE (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x7d6c6)
                #12 0x000056117842b536 _ZN6ghidra6Action7performERNS_8FuncdataE (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x7d536)
                #13 0x00005611784e6275 _ZN6ghidra11DecompileAt9rawActionEv (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x138275)
                #14 0x00005611784e5f4a _ZN6ghidra13GhidraCommand4doitEv (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x137f4a)
                #15 0x00005611784e60d5 _ZN6ghidra16GhidraCapability11readCommandERSiRSo (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x1380d5)
                #16 0x0000561178422193 main (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x74193)
                #17 0x00007fd5e57186c1 n/a (libc.so.6 + 0x276c1)
                #18 0x00007fd5e57187f9 __libc_start_main (libc.so.6 + 0x277f9)
                #19 0x0000561178428df5 _start (/opt/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile + 0x7adf5)
                ELF object binary architecture: AMD x86-64

Ghidra版本:12.0.4 Java版本:OpenJDK Java 25 架构:x86_64

LunaticLegacy avatar Apr 07 '26 11:04 LunaticLegacy