Skip to content

Cannot use funcs table #3

Description

@Grazfather

Claude seems to think it's some version mismatch?

I tried running headless as well as via the GUI in the tools menu. Other endpoints work.

Running ghidra 12.1.2

⏺ RPC host is up. Let me connect via ghidrasql.

⏺ Bash(env -u GHIDRA_INSTALL_DIR /Users/graziano/bin/ghidrasql --url http://127.0.0.1:18080 -q "SELECT * FROM db_info;")
  ⎿  Using libghidra source at http://127.0.0.1:18080
     +----------------+----------------+----------------+-------------+---------------+---------------+-----+------
     --+------------+-------------+----------+
     … +9 lines (ctrl+o to expand)

⏺ Bash(env -u GHIDRA_INSTALL_DIR /Users/graziano/bin/ghidrasql --url http://127.0.0.1:18080 -q "SELECT COUNT(*) AS n
      FROM funcs;")
  ⎿  Using libghidra source at http://127.0.0.1:18080
     +---+
     | n |
     … +4 lines (ctrl+o to expand)

⏺ Connected successfully, but we're hitting the same version mismatch issue as before — funcs returns 0 rows while
  db_info shows active-program placeholders. The decompile() function and pseudocode table should still work though. Let
   me verify.

⏺ Bash(env -u GHIDRA_INSTALL_DIR /Users/graziano/bin/ghidrasql --url http://127.0.0.1:18080 -q "SELECT
      decompile(0x401334);" 2>&1 | head -20)
  ⎿  Using libghidra source at http://127.0.0.1:18080
     +-------------------------------------------------------------------------------------------------------------
     --------------------------------------------------------------------------------------------------------------
     … +43 lines (ctrl+o to expand)

⏺ Connected and working. The RPC on port 18080 is live, decompile() works, and all the function renames from the
  previous session are persisted (you can see main, __write, __fork, __setsid, etc. in the decompiled output). The funcs
   table returning 0 is the known ghidrasql 0.0.2 / LibGhidraHost 12.1.2 version mismatch — the workaround is to use
  decompile(addr) and pseudocode table directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions