Skip to content

feat boost.stacktrace: C++20 modules support#1

Open
fdr400 wants to merge 46 commits into
feature/stacktrace-dump-libraryfrom
feature/cxx20-modules
Open

feat boost.stacktrace: C++20 modules support#1
fdr400 wants to merge 46 commits into
feature/stacktrace-dump-libraryfrom
feature/cxx20-modules

Conversation

@fdr400
Copy link
Copy Markdown
Owner

@fdr400 fdr400 commented Mar 3, 2026

  • Introduce boost.stacktrace_dump module for safe_dump interface
  • Introduce boost.stacktrace_<backend> module for each unwind/collect implementation method
  • Introduce boost.stacktrace module exposing best available backend implementation

Also many tests was added for checking all available backend build and also header only library version
Moreover, there are some checks for Boost::stacktrace_<backend> and Boost::stacktrace_from_exception compatibility

All the tests added to Github CI

@fdr400 fdr400 changed the base branch from develop to feature/stacktrace-dump-library March 17, 2026 18:05
@coveralls
Copy link
Copy Markdown

coveralls commented Mar 22, 2026

Coverage Report for CI Build 25069465920

Coverage remained the same at 86.35%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 62 coverage regressions across 8 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

62 previously-covered lines in 8 files lost coverage.

File Lines Losing Coverage Coverage
../boost-root/boost/stacktrace/stacktrace.hpp 17 84.0%
../boost-root/boost/stacktrace/detail/addr2line_impls.hpp 15 86.52%
../boost-root/boost/stacktrace/safe_dump_to.hpp 11 39.13%
../boost-root/boost/stacktrace/detail/addr_base.hpp 6 84.09%
../boost-root/boost/stacktrace/detail/safe_dump_posix.ipp 6 0.0%
../boost-root/boost/stacktrace/detail/libbacktrace_impls.hpp 4 94.67%
../boost-root/boost/stacktrace/detail/frame_unwind.ipp 2 95.56%
../boost-root/boost/stacktrace/detail/collect_unwind.ipp 1 95.45%

Coverage Stats

Coverage Status
Relevant Lines: 652
Covered Lines: 563
Line Coverage: 86.35%
Coverage Strength: 1593427.18 hits per line

💛 - Coveralls

fdr400 and others added 14 commits April 11, 2026 13:43
Fixes the following linker error:
from_exception:(.text+0x9b): undefined reference to `__current_exception'

Amends 23e1213.
Boost.StaticAssert has been merged into Boost.Config, so remove
the dependency.
This pull request introduces `boost_stacktrace_dump` library that is independent from backtrace implementations.
The purpose is to make `boost_stacktrace_from_exception` also independent from specific backtrace implementation to further introduce C++20 modules support.

As well, all stacktrace tests added to CMake CI. Header only library test also was added to CMake test.
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.

4 participants