Ray's Knowledge Base
Unlock

Topic

cpp

?? followed by ', (, ) and others in a C++ string is a trigraphcpp27 Sep 2026[[maybe_unused]] on one structured binding name is a C++26 extensioncpp27 Sep 2026A consumer that stops reading a bounded channel on error leaves its producers blocked forevercpp27 Sep 2026A range-for over a member of a temporary reads freed memorycpp28 Sep 2026A raw string literal ends at the first )", even inside a quoted patterncpp28 Sep 2026An unfiltered logging wrapper on munmap, madvise or mprotect crashes programs whose allocator calls them, such as jemalloc with aggressive purgingcpp7 Oct 2026Apple clang can leave an abbreviated-template member undefined when only a generic lambda in std::visit calls itcpp5 Oct 2026Assigning an empty value in a shutdown hook frees nothing on libstdc++cpp5 Nov 2026Avoid ARG_MAX as a C++ enumerator on macOScpp30 Sep 2026Benchmark dftracer-utils in the Release build treecpp5 Oct 2026Build docs without the compiled extension to test the stubcpp5 Oct 2026C++ argument evaluation order differs between clang and GCC, so RNG draws inside one call are not portablecpp6 Oct 2026Callback state must outlive the object that releases the borrowed buffercpp3 Oct 2026Callgrind does not cost vDSO time calls; time them nativelycpp9 Oct 2026Calling a SIMD search engine once per row makes short-string matching slower than an inline loopcpp29 Sep 2026Clang calls this unused in a generic lambda that calls a member without this->cpp28 Sep 2026Clear stale dfanalyzer indexes after switching library buildscpp5 Oct 2026dftracer-utils constants: a split rule between knobs and format valuescpp2 Oct 2026Export LD_PRELOAD only for the debugged program, not for gdb itselfcpp9 Oct 2026GCC-only warnings that clang on a Mac hides: missing-declarations, __int128, vector reservecpp6 Oct 2026GOTCHA 1.0.10 fails to build with gcc 14 on glibc 2.34 or newer: getpagesize is undeclaredcpp7 Oct 2026Heaptrack shows 0x0 in ?? frames on stripped arm64 libraries; use valgrind DHATcpp9 Oct 2026Keep interface versions in VERSION and release versions on tagscpp5 Oct 2026Layer modules by dependencies and bundle shared libraries sparinglycpp5 Oct 2026libstdc++ before GCC 13 has no std::hash for a string with a custom allocatorcpp5 Nov 2026Name module layers for their contents, not reusabilitycpp5 Oct 2026On older macOS std::from_chars for double is unavailable; parse with strtodcpp29 Sep 2026Per-function template chains make 2000 generated wrappers compile three times slowercpp5 Nov 2026Public headers expose only approved third-party typescpp5 Oct 2026Put internal headers under each module's src directorycpp5 Oct 2026Rebuild plugins after changing fingerprinted ABI headerscpp5 Oct 2026Redeclaring an inline-only libc function as weak makes every call in that file jump to null on glibc before 2.33cpp7 Oct 2026Reproduce Valgrind leak reports on macOS with MallocStackLogging and leakscpp7 Oct 2026Run the pinned clang-format through uvx when the local one differscpp2 Oct 2026std::stoll parses "1.5" as 1 and stoull("-5") wraps, so a truncated literal corrupts a filtercpp29 Sep 2026To get the per-call cost of an LD_PRELOAD tracer, subtract two callgrind runs of different length and read self costcpp7 Oct 2026Treat missing as a duql keyword only after iscpp5 Oct 2026Valgrind 3.25 cannot start on Arch Linux glibc 2.44, so run it in the CI containercpp8 Oct 2026Variance from raw sums of squares loses all its digits when the mean is largecpp1 Oct 2026Version duql syntax as MAJOR.MINORcpp5 Oct 2026Windows max macro breaks std::numeric_limits<T>::max() in headerscpp29 Sep 2026