Zum Inhalt springen
Kitbay
Einreichen
Skill

decompress-binary

Apache-2.0Aktualisiert am 11. Nov. 202650.877GitHub-SterneEnthält Skripte

A maintainer skill in the ClickHouse repository for getting the real program out of a self-extracting ClickHouse binary without running it, for example to read a core dump from an ARM CI machine on an x86 workstation.

Was der Skill vermittelt

A maintainer skill in the ClickHouse repository for getting the real program out of a self-extracting ClickHouse binary without running it, for example to read a core dump from an ARM CI machine on an x86 workstation. It explains the packed layout: a small decompressor, zstd-compressed files, a file table and a 16-byte trailer. The agent downloads the binary for the exact commit from CI artifacts and checks the size, runs a bundled Python script to extract the inner ELF, confirms it has debug info and that its build ID matches the crash, then loads the core in gdb or lldb. It warns that truncated downloads are the usual failure and that sanitizer builds need several gigabytes.

Funktionen

  • Download a ClickHouse binary from CI artifacts
  • Extract the inner ELF without running it
  • Match the build ID to a crash report
  • Load a core dump in gdb or lldb