Skip to content

feat: debug assert use logs to LogAndAbortTracer#800

Closed
heinwessels (heinwessels-philips) wants to merge 1 commit into
mainfrom
feat/asserts-use-log-and-abort-tracer
Closed

feat: debug assert use logs to LogAndAbortTracer#800
heinwessels (heinwessels-philips) wants to merge 1 commit into
mainfrom
feat/asserts-use-log-and-abort-tracer

Conversation

@heinwessels-philips

Copy link
Copy Markdown
Contributor

Now, when a debug assert is triggered it will first attempt to trace the assert through the LogAndAbort tracer, instead of crashing with only a stack trace.

Additionally, it will not always store the full assert failure path in Flash. This is now changed to follow the rules given to ReallyAssert, or at least mostly. If any logging of path is configured for ReallyAssert (both full path or only file name), then an assert will also compile in the full path. It's not possible to only get the file name (I think).

@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

⚠️MegaLinter analysis: Success with warnings

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 7 0 0 0.08s
✅ CPP clang-format 15 2 0 0 1.48s
✅ CPP cppcheck 15 0 0 0.96s
✅ DOCKERFILE hadolint 1 0 0 0.03s
✅ JSON jsonlint 7 0 0 0.45s
✅ JSON prettier 7 2 0 0 1.91s
⚠️ MARKDOWN markdownlint 6 1 10 0 2.24s
✅ MARKDOWN markdown-table-formatter 6 1 0 0 1.68s
✅ REPOSITORY checkov yes no no 39.04s
✅ REPOSITORY git_diff yes no no 1.12s
✅ REPOSITORY grype yes no no 69.96s
✅ REPOSITORY ls-lint yes no no 0.08s
✅ REPOSITORY secretlint yes no no 81.09s
✅ REPOSITORY syft yes no no 1.94s
✅ REPOSITORY trivy yes no no 27.4s
✅ REPOSITORY trivy-sbom yes no no 2.1s
✅ REPOSITORY trufflehog yes no no 13.68s
⚠️ SPELL lychee 34 2 0 59.4s
✅ YAML prettier 10 1 0 0 2.08s
✅ YAML v8r 10 0 0 8.43s
✅ YAML yamllint 10 0 0 0.64s

Detailed Issues

⚠️ SPELL / lychee - 2 errors
[IGNORED] tcp://localhost:1234/target/echo/programmer | Unsupported: Error creating request client: builder error for url (tcp://localhost:1234/target/echo/programmer)
[ERROR] http://mcd.rou.st.com/modules.php?name=mcu | Network error: error sending request for url (http://mcd.rou.st.com/modules.php?name=mcu) Maybe a certificate error?
[ERROR] https://www.contributor-covenant.org/ | Network error: error sending request for url (https://www.contributor-covenant.org/)
[TIMEOUT] https://st.com/ | Timeout
📝 Summary
---------------------
🔍 Total..........239
✅ Successful.....235
⏳ Timeouts.........1
🔀 Redirected.......0
👻 Excluded.........0
❓ Unknown..........0
🚫 Errors...........2

Errors in CODE_OF_CONDUCT.md
[ERROR] https://www.contributor-covenant.org/ | Network error: error sending request for url (https://www.contributor-covenant.org/)

Errors in README.md
[TIMEOUT] https://st.com/ | Timeout

Errors in .github/ISSUE_TEMPLATE/add-or-update-hal-driver.md
[ERROR] http://mcd.rou.st.com/modules.php?name=mcu | Network error: error sending request for url (http://mcd.rou.st.com/modules.php?name=mcu) Maybe a certificate error?
⚠️ MARKDOWN / markdownlint - 10 errors
.github/ISSUE_TEMPLATE/add-or-update-hal-driver.md:10 error MD025/single-title/single-h1 Multiple top-level headings in the same document [Context: "How to import a HAL driver"]
CHANGELOG.md:83 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "⚠ BREAKING CHANGES"]
CHANGELOG.md:87 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:94 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Bug Fixes"]
CHANGELOG.md:103 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:122 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Bug Fixes"]
CHANGELOG.md:140 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "⚠ BREAKING CHANGES"]
CHANGELOG.md:144 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:151 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Features"]
CHANGELOG.md:162 error MD024/no-duplicate-heading Multiple headings with the same content [Context: "Bug Fixes"]

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@9.4.0 --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,CPP_CPPCHECK,CPP_CLANG_FORMAT,DOCKERFILE_HADOLINT,JSON_JSONLINT,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_GRYPE,REPOSITORY_LS_LINT,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,SPELL_LYCHEE,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security
Show us your support by starring ⭐ the repository

@heinwessels-philips

Copy link
Copy Markdown
Contributor Author

Eh, not gonna add this because it won't work anyway. Need LTO, but that will slow down builds, etc. Don't want to deal with that now.

@heinwessels-philips heinwessels (heinwessels-philips) deleted the feat/asserts-use-log-and-abort-tracer branch July 6, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant