Debug crashes, segfaults, and memory errors using valgrind integration with nextest through pre-configured profiles
When you encounter crashes, segfaults, or memory errors in tests, use valgrind for proper debugging.
# Run a specific test under valgrind
cargo nextest run --profile valgrind -p PACKAGE --test TEST_FILE TEST_NAME
# Example
cargo nextest run --profile valgrind -p facet-format-json --test jit_deserialize test_jit_option_some
The project has valgrind pre-configured in .config/nextest.toml:
Wrapper script: Defined as [scripts.wrapper.valgrind]
valgrind --leak-check=full --show-leak-kinds=all ...Profile: [profile.valgrind] applies the wrapper to all tests on Linux
Running: Use --profile valgrind flag with nextest
❌ Running valgrind manually: valgrind ./target/debug/deps/test-binary
❌ Using raw --no-run + valgrind commands
❌ Playing hunt-the-segfault without proper tools
✅ Use the pre-configured profile: cargo nextest run --profile valgrind <filters>
✅ Let nextest handle the wrapper script integration
✅ Get clean, actionable valgrind output immediately
cargo nextest run --profile valgrind -p PACKAGE --test FILE TEST_NAME.config/nextest.tomlSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer