Symbols
Symbolicate native stack addresses to function, file and line from DWARF and PDB debug info
- Connector software
- Free and open source
- Service credentials
- Not needed
- Query Farm hosting
- Available · $10/month organization minimum
Use with an agent
Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.
npx skills add Query-farm/vgi-skills --skill orchard
Copy this request into your coding agent to get started.
Use https://query.farm/products/orchard/connectors/symbols/index.md to help me query Symbols with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.
Turn C++ symbols into readable function names
Example output · captured
- Connector release
- v0.5.0
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
SELECT symbol, symbols.main.demangle(symbol) AS function_name
FROM (VALUES ('_ZN3foo3barEv'), ('_Z3fooi')) AS input(symbol);
| symbol | function_name |
|---|---|
| _ZN3foo3barEv | foo::bar |
| _Z3fooi | foo |
Quick start
Choose where to run Symbols, then follow the steps below.
The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.
1. Install the vgi extension
Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
2. Attach the connector
Attach the release directly
Downloads the latest release for your platform and caches it locally.
ATTACH 'symbols' AS symbols (
TYPE vgi,
LOCATION 'github-auto://Query-farm/vgi-symbols'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'symbols' AS symbols (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-symbols:0.5.0'
);
3. Run a query
SELECT symbol, symbols.main.demangle(symbol) AS function_name
FROM (VALUES ('_ZN3foo3barEv'), ('_Z3fooi')) AS input(symbol);
Run the connector on a server you manage. You operate the service and choose who can connect.
1. Deploy the connector on your server
Follow the connector’s deployment instructions. Use its supported HTTP transport, or launch it remotely over SSH. The connection guide explains both options.
2. Install the vgi extension
Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach the connector
For an HTTP deployment, replace the example URL with your endpoint. Add the authentication options your deployment requires. For SSH, use the SSH connection instructions.
ATTACH 'symbols' AS symbols
(TYPE vgi, LOCATION 'https://your-connector.example.com');
4. Run a query
SELECT symbol, symbols.main.demangle(symbol) AS function_name
FROM (VALUES ('_ZN3foo3barEv'), ('_Z3fooi')) AS input(symbol);
Query Farm operates Symbols for your team. Hosting has a $10 monthly minimum per organization; usage counts toward it. From $2.97 per instance-month ($10 monthly minimum).
1. Create your hosted connector
Open the console, choose your organization and deployment size, and add any service credentials there.
2. Install the vgi extension
SET allow_extension_repositories = 'allowed';
CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
WITH PREFIX 'https://duckdb-extensions.query.farm';
INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach your deployment
Copy the ATTACH statement from your deployment in the console and run it in DuckDB or Haybarn. Use symbols as the catalog alias for the query below.
4. Run a query
SELECT symbol, symbols.main.demangle(symbol) AS function_name
FROM (VALUES ('_ZN3foo3barEv'), ('_Z3fooi')) AS input(symbol);
Technical details
- Verified connector release
- v0.5.0
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
- Verified on
- December 1, 2026
Pin a version for production
When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.
Attach the release directly
Uses the verified release each time you attach the connector.
ATTACH 'symbols' AS symbols (
TYPE vgi,
LOCATION 'github-auto://Query-farm/[email protected]'
);
Attach the signed image
Needs Docker, Podman or another OCI runtime. The extension runs the container and talks to it over stdio.
ATTACH 'symbols' AS symbols (
TYPE vgi,
LOCATION 'oci://ghcr.io/query-farm/vgi-symbols:0.5.0'
);
Overview
Native (DWARF/PDB) symbolication as a bulk SQL JOIN over (build_id, address) frames, backed by a persistent build-id-keyed debug-info cache.
Native symbolication as a SQL JOIN: turn a column of (build_id, address) stack frames into function + file + line plus the inlined call chain, by parsing DWARF (ELF / Mach-O / dSYM) and Windows PDB — the same resolution as addr2line / llvm-symbolizer, but over millions of frames in-engine and backed by a persistent, build-id-keyed debug-info cache so each debug module is parsed exactly once.
Reach for it to make stack traces, CPU/heap profiles, and crash dumps readable directly in SQL. Addresses are module-relative (the caller subtracts the load base); local symbol sources are zero-egress while remote ones (debuginfod / s3 / http) are opt-in and off by default; and resolution is total — a missing or malformed module yields a per-row status, never a dropped row. The upstream feeders are vgi-minidump, vgi-pprof, and vgi-perf.
Sources and references
- DWARF Debugging Information Format — the debug-info standard read from ELF, Mach-O and dSYM files.
- The PDB File Format (LLVM) — the Windows program-database format used for PE modules.
- debuginfod — the build-id-keyed debug-info server protocol behind the opt-in
debuginfodsource kind. addr2line/gimliandpdb-addr2line— the Rust DWARF and PDB resolvers the engine is built on.
Catalog
Everything symbols exposes once attached — read straight from the worker's
released build.
main 1 view · 10 functions
Symbolication functions: symbolicate frames, demangle names, inspect modules, manage the debug-info cache and symbol sources.
Schema examples (6)
Register a local, zero-egress directory of debug files and capture its source_id.
SELECT source_id FROM symbols.main.add_source('dir', path => '/srv/debug');
Symbolicate one module-relative frame to its function name and resolution status.
SELECT (symbols.main.symbolicate('e4c1f2b9', 303600)).function AS function,
(symbols.main.symbolicate('e4c1f2b9', 303600)).status AS status;
Bulk-symbolicate a frame column: resolve each (build_id, address) to its innermost function name for a flamegraph or GROUP BY key.
SELECT f.build_id, f.address,
symbols.main.function_name(f.build_id, f.address) AS function
FROM stack_frames f;
Demangle a raw Itanium C++ linkage name to its readable form.
SELECT symbols.main.demangle('_ZN3foo3barEv') AS name;
2 more examples
Watch the build-id-keyed cache: the hottest resident debug modules first.
SELECT debug_id, name, bytes_resident
FROM symbols.main.cache_status()
ORDER BY bytes_resident DESC;
Find the local, zero-egress source kinds that are not registered yet (source_kinds anti-joined to sources()), with the add_source argument each one needs; returns dir and glob on a fresh worker, and only glob once a dir source is added.
SELECT k.kind, k.locator_arg
FROM symbols.main.source_kinds AS k
WHERE k.egress = false AND k.kind NOT IN (SELECT s.kind FROM symbols.main.sources() AS s)
ORDER BY k.kind;
source_kinds
Reference registry of the five symbol-source kinds add_source accepts, with each kind's locality, egress posture, and locator argument.
List the local, zero-egress source kinds and the add_source argument that locates each.
SELECT kind, locator_arg
FROM symbols.main.source_kinds
WHERE egress = false
ORDER BY kind;
Show every source kind with whether registering it crosses the trust boundary.
SELECT kind, locality, egress
FROM symbols.main.source_kinds
ORDER BY egress, kind;
Find the local, zero-egress source kinds that are not registered yet (source_kinds anti-joined to sources()), with the add_source argument each one needs; returns dir and glob on a fresh worker, and only glob once a dir source is added.
SELECT k.kind, k.locator_arg
FROM symbols.main.source_kinds AS k
WHERE k.egress = false AND k.kind NOT IN (SELECT s.kind FROM symbols.main.sources() AS s)
ORDER BY k.kind;
demangle (mangled ANY, lang VARCHAR) +1 overload
Demangle a raw linkage/symbol name into a readable function name (scheme auto-detected)
demangle(mangled ANY) → VARCHARdemangle(mangled ANY, lang VARCHAR) → VARCHAR
Demangle an Itanium C++ linkage name into its readable form ('foo::bar').
SELECT symbols.main.demangle('_ZN3foo3barEv') AS name;
function_name (build_id VARCHAR, address UBIGINT)
Resolve a (build_id, address) frame to the innermost function name only
Resolve a frame (build-id 'e4c1f2b9', module-relative address 303600) to just its innermost function name; returns NULL until a symbol source for that build-id is registered with add_source.
SELECT symbols.main.function_name('e4c1f2b9', 303600) AS function;
inline_frames (build_id VARCHAR, address UBIGINT)
Resolve a (build_id, address) frame to its inline chain only (a list of STRUCT(function, file, line))
Get the length of the inlined call chain (innermost-first, physical frame excluded) at module-relative address 303600 in build-id 'e4c1f2b9'; 0 until the address has both symbols and inlining.
SELECT length(symbols.main.inline_frames('e4c1f2b9', 303600)) AS inline_depth;
symbolicate (build_id VARCHAR, address UBIGINT)
Resolve one (build_id, address) frame to a STRUCT with the inline chain collapsed into a list
-
functionVARCHAR
-
fileVARCHAR
-
lineINTEGER
-
inlinedSTRUCT[]STRUCT[] 3 fields
-
functionVARCHAR
-
fileVARCHAR
-
lineINTEGER
-
-
moduleVARCHAR
-
debug_idVARCHAR
-
statusVARCHAR
Symbolicate one module-relative frame (build-id 'e4c1f2b9', address 303600) and read the resolved function name and status off the returned struct; status is 'not_found' until a matching symbol source is registered with add_source.
SELECT (symbols.main.symbolicate('e4c1f2b9', 303600)).function AS function,
(symbols.main.symbolicate('e4c1f2b9', 303600)).status AS status;
add_source (kind VARCHAR, path := VARCHAR, url := VARCHAR, bucket := VARCHAR, enabled := BOOLEAN, secret := VARCHAR)
Register a symbol source (dir/glob/debuginfod/s3/http); returns its source_id
SELECT source_id FROM symbols.main.add_source('dir', path => '/srv/debug');
cache_evict (debug_id := VARCHAR)
Force-evict one module (or the whole resident set) from the cache; returns bytes freed
Clear the entire resident cache (keeping the manifest) and report the bytes reclaimed; 0 on a cold worker with nothing resident.
SELECT bytes_freed FROM symbols.main.cache_evict();
cache_status (resident_only := BOOLEAN)
Report the parsed/resident debug modules (the build-id-keyed cache state)
SELECT debug_id, name, bytes_resident, rows_resolved
FROM symbols.main.cache_status()
ORDER BY bytes_resident DESC;
drop_source (source_id VARCHAR)
Remove a registered symbol source by id; returns whether one was removed
Deregister the symbol source with id 'src0'; dropped is false if no such source was registered.
SELECT dropped FROM symbols.main.drop_source('src0');
module_info (blob BLOB) +1 overload
Inspect a debug file given inline as a BLOB (format, debug-id, line info) without resolving
module_info(blob BLOB)module_info(path VARCHAR)
COPY (SELECT content FROM read_blob('https://raw.githubusercontent.com/Query-farm/vgi-symbols/v0.4.2/crates/symbols-core/tests/fixtures/macho_inline.dwarf')) TO 'macho_inline.dwarf' (FORMAT blob);
SELECT format, debug_id, has_line_table FROM symbols.main.module_info('macho_inline.dwarf');
SET VARIABLE symbols_debug_file = (SELECT content FROM read_blob('https://raw.githubusercontent.com/Query-farm/vgi-symbols/v0.4.2/crates/symbols-core/tests/fixtures/macho_inline.dwarf'));
SELECT crash.crash_module, coalesce(d.debug_id = crash.debug_id, false) AS matches, d.debug_id AS debug_file_debug_id, d.format, d.arch, d.has_line_table FROM (VALUES ('compute', '4930eb84c7b63ef6a97fbdcdd473f5a30'), ('inline', '76ff8518da153e64a8403892fcbf11250')) AS crash(crash_module, debug_id) LEFT JOIN symbols.main.module_info(getvariable('symbols_debug_file')) AS d ON true ORDER BY crash.crash_module;
sources (enabled_only := BOOLEAN)
List the registered symbol sources (source_id, kind, location, enabled, egress)
Find the local, zero-egress source kinds that are not registered yet (source_kinds anti-joined to sources()), with the add_source argument each one needs; returns dir and glob on a fresh worker, and only glob once a dir source is added.
SELECT k.kind, k.locator_arg
FROM symbols.main.source_kinds AS k
WHERE k.egress = false AND k.kind NOT IN (SELECT s.kind FROM symbols.main.sources() AS s)
ORDER BY k.kind;
SELECT source_id, kind, location, enabled, egress
FROM symbols.main.sources();
Try these queries
Register a local, zero-egress directory of debug files and capture its source_id.
SELECT source_id FROM symbols.main.add_source('dir', path => '/srv/debug')
Uses add_source
Symbolicate one module-relative frame to its function name and resolution status.
SELECT (symbols.main.symbolicate('e4c1f2b9', 303600)).function AS function,
(symbols.main.symbolicate('e4c1f2b9', 303600)).status AS status
Uses symbolicate
Bulk-symbolicate a frame column: resolve each (build_id, address) to its innermost function name for a flamegraph or GROUP BY key.
SELECT f.build_id, f.address,
symbols.main.function_name(f.build_id, f.address) AS function
FROM stack_frames f
Uses function_name
Demangle a raw Itanium C++ linkage name to its readable form.
SELECT symbols.main.demangle('_ZN3foo3barEv') AS name
Uses demangle
Watch the build-id-keyed cache: the hottest resident debug modules first.
SELECT debug_id, name, bytes_resident
FROM symbols.main.cache_status()
ORDER BY bytes_resident DESC
Uses cache_status
Find the local, zero-egress source kinds that are not registered yet (source_kinds anti-joined to sources()), with the add_source argument each one needs; returns dir and glob on a fresh worker, and only glob once a dir source is added.
SELECT k.kind, k.locator_arg
FROM symbols.main.source_kinds AS k
WHERE k.egress = false AND k.kind NOT IN (SELECT s.kind FROM symbols.main.sources() AS s)
ORDER BY k.kind
Uses source_kindssources
10 more examples in the Catalog, each listed under the table or function it uses.
Symbols is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.
Related workers
Perf
Developer & networking
Decode Linux perf.data captures into SQL tables of samples, memory mappings, and event metadata for bulk profile analysis
pprof
Developer & networking
Decode Go, gperftools, Parca and py-spy pprof profiles into SQL rows for flamegraph diffs and CI performance-regression gates
BGP
Developer & networking
Query RouteViews and RIPE RIS MRT archives (RIB snapshots and BGP updates) as SQL rows, with AS-path and community helpers