feat(crash): meow_crash 系统级崩溃捕获 (agent-187) — svcd 服务异常退出上报(AF_UNIX best-effort,不崩svcd)+dmesg增量扫segfault/oops; 落盘 TF MeowOS/logs/crash_<bootts>.log 无卡回退/tmp+迁移; CLI dump/tail; S89 预置 crash.conf(主会话补)
meow_crash 62781084; meow_svcd da6ebc66→605646c4(仅+68行上报挂点); 宿主5场景全过(上报链路/dmesg增量/无卡迁移/铁律验证/CLI)
This commit is contained in:
1 parent
243148e440
commit
cf86cbd387
10 files changed
+885
-1
No files matched your search
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
# build_crash.sh — meow_crash 交叉编译(mipsel 静态)+ 宿主编译可选。
|
||||
#
|
||||
# 目标:R3 Pro II / MeowOS(mipsel-linux-muslsf,静态)。meow_crash 极简无外部依赖,
|
||||
# 仅 POSIX + Linux 基础接口(同一套自管道/poll/AF_UNIX 模式,同 meow_svcd)。
|
||||
#
|
||||
# 用法:
|
||||
# ./build_crash.sh # 交叉编译 → patch_v2/meow_crash/meow_crash(mipsel 静态)
|
||||
# ./build_crash.sh host # 宿主编译 → patch_v2/meow_crash/meow_crash_host(集成测试用)
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
ROOT="$HOME/Project/R3ProII"
|
||||
CC="$ROOT/.tools/zig-mipsel-cc"
|
||||
|
||||
if [ "$1" = "host" ]; then
|
||||
HOST_CC="${CC_HOST:-cc}"
|
||||
"$HOST_CC" -Os -Wall -Wextra meow_crash.c -o meow_crash_host
|
||||
echo "== host build =="
|
||||
ls -la meow_crash_host
|
||||
file meow_crash_host
|
||||
exit 0
|
||||
fi
|
||||
|
||||
"$CC" -Os -Wall -Wextra -static meow_crash.c -o meow_crash
|
||||
echo "== meow_crash (mipsel static) =="
|
||||
ls -la meow_crash
|
||||
md5sum meow_crash
|
||||
file meow_crash
|
||||
Reference in new issue
Block a user