跳转到主要内容
在 ClickHouse Cloud 中查询此系统表中的数据分别保存在 ClickHouse Cloud 各节点的本地。因此,如需查看所有数据的完整情况,需要使用 clusterAllReplicas 函数。更多详情请参见此处

描述

包含致命错误的堆栈跟踪信息。默认情况下,数据库中不存在此表,只有在发生致命错误时才会创建。

  • hostname (LowCardinality(String)) — 发生崩溃的主机名。
  • event_date (Date) — 崩溃发生的日期。
  • event_time (DateTime) — 崩溃发生的时间。
  • timestamp_ns (UInt64) — 事件的纳秒级时间戳。
  • signal (Int32) — 信号编号。
  • signal_code (Int32) — 信号代码,提供有关信号成因的额外上下文。
  • thread_id (UInt64) — 线程 ID。
  • query_id (String) — 查询 ID。
  • query (String) — 崩溃发生时正在执行的查询文本。
  • trace (Array(UInt64)) — 崩溃发生瞬间的堆栈跟踪。每个元素都是 ClickHouse server 进程中的一个虚拟内存地址。
  • trace_full (Array(String)) — 崩溃发生瞬间的堆栈跟踪。每个元素都包含 ClickHouse server 进程中的一个被调用方法。
  • fault_address (Nullable(UInt64)) — 导致故障的内存地址。
  • fault_access_type (String) — 导致故障的内存访问类型 (例如 ‘read’、‘write’) 。
  • signal_description (String) — 基于 signal_code 的可读描述 (例如 ‘Address not mapped to object’) 。
  • current_exception_trace_full (Array(String)) — 当前异常的完整堆栈跟踪,栈帧中的符号已解析 (仅适用于 std::terminate 崩溃) 。
  • version (String) — ClickHouse server 版本。
  • revision (UInt32) — ClickHouse server 修订号。
  • build_id (String) — 由编译器生成的 BuildID。
  • git_hash (String) — ClickHouse 源代码的 Git 提交哈希。
  • architecture (String) — CPU 架构 (例如 x86_64、aarch64) 。

示例

Query
SELECT * FROM system.crash_log ORDER BY event_time DESC LIMIT 1;
Response
Row 1:
──────
hostname:     clickhouse.eu-central1.internal
event_date:   2020-10-14
event_time:   2020-10-14 15:47:40
timestamp_ns: 1602679660271312710
signal:       11
thread_id:    23624
query_id:     428aab7c-8f5c-44e9-9607-d16b44467e69
trace:        [188531193,...]
trace_full:   ['3. DB::(anonymous namespace)::FunctionFormatReadableTimeDelta::executeImpl(std::__1::vector<DB::ColumnWithTypeAndName, std::__1::allocator<DB::ColumnWithTypeAndName> >&, std::__1::vector<unsigned long, std::__1::allocator<unsigned long> > const&, unsigned long, unsigned long) const @ 0xb3cc1f9 in /home/username/work/ClickHouse/build/programs/clickhouse',...]
version:      ClickHouse 20.11.1.1
revision:     54442
build_id:

另请参见

最后修改于 2026年6月10日