-
Notifications
You must be signed in to change notification settings - Fork 4
Crashupload Compiled Code
gomathishankar37 edited this page Jun 30, 2026
·
4 revisions
This page covers the C implementation under c_sourcecode/.
From repo root:
./cov_build.shL2 test-mode build:
./cov_build.sh --l2-testNotes:
-
cov_build.shinstalls to/usr/local/bin/crashupload -
--l2-testadds-DL2_TESTso uptime is read from/opt/uptime
Current positional pattern:
crashupload <arg1> <dump_type> [secure] [wait_for_lock]-
<dump_type>:0minidump,1coredump -
secure: use/opt/secure/*paths -
wait_for_lock: wait for lock instead of immediate exit
-
c_sourcecode/src/main.c: high-level orchestration -
c_sourcecode/src/config/config_manager.c: config loading and dump mode -
c_sourcecode/src/scanner/: dump discovery -
c_sourcecode/src/archive/: archive creation -
c_sourcecode/src/upload/: upload pipeline -
c_sourcecode/src/ratelimit/: rate limiting
- Global cooldown gate:
/tmp/.deny_dump_uploads_till- Checked first by
ratelimit_check_unified(). - If active, upload processing is blocked for both minidump and coredump runs.
- Checked first by
- Minidump counter gate:
/tmp/.minidump_upload_timestamps- Checked only for minidump mode.
- Used to trigger the global cooldown when threshold conditions are met.
Even when C binary exists, uploadDumps.sh currently routes:
-
mediaclient: binary-first -
broadbandandextender: legacy script path
See Crashupload - Script Method for legacy behavior.
- L1 unit tests:
./run_ut.sh - L2 functional tests:
./run_l2.sh(after./cov_build.sh --l2-test) - L2 mapping details:
test/L2_TESTS.md