Toolverse
All skills

debug-with-valgrind

by facet-rs

Debug crashes, segfaults, and memory errors using valgrind integration with nextest through pre-configured profiles

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
facet-rs
Category
Testing

About this skill

Debug crashes, segfaults, and memory errors using valgrind integration with nextest through pre-configured profiles

How to use

  1. Upewnij się, że masz zainstalowany valgrind w swoim systemie oraz że projekt zawiera plik konfiguracyjny .config/nextest.toml z zdefiniowanym profilem valgrind i skryptem wrappera. Skill zakłada, że ta konfiguracja jest już przygotowana w repozytorium.

  2. Gdy test ulegnie awarii z błędem typu SIGSEGV lub podejrzewasz wyciek pamięci, otwórz terminal w katalogu projektu i uruchom test pod valgrind za pomocą komendy cargo nextest run --profile valgrind -p NAZWA_PAKIETU --test NAZWA_PLIKU_TESTÓW NAZWA_TESTU. Zastąp NAZWA_PAKIETU nazwą pakietu zawierającego test, NAZWA_PLIKU_TESTÓW nazwą pliku testów, a NAZWA_TESTU nazwą konkretnego testu, który chcesz debugować.

  3. Valgrind automatycznie przeanalizuje wykonanie testu i wykaże dokładną linię kodu, w której doszło do nieprawidłowego odczytu lub zapisu do pamięci. Nextest sformatuje i wyświetli wyniki w czytelny sposób, wskazując typ błędu i jego lokalizację.

  4. Przeanalizuj raport valgrinda, zidentyfikuj źródło problemu w kodzie i wprowadź niezbędne poprawki w logice zarządzania pamięcią lub dostępu do zmiennych.

  5. Po naprawie uruchom test ponownie z profilem valgrind, aby potwierdzić, że błąd został usunięty i nie pojawiają się nowe problemy z pamięcią.

  6. Dla pełnej weryfikacji uruchom test również bez profilu valgrind, używając standardowego polecenia cargo nextest run, aby upewnić się, że naprawa nie wprowadził nowych problemów w normalnym trybie wykonania.

Related skills

powershell-windows

by davila7

PowerShell Windows patterns. Critical pitfalls, operator syntax, error handling.

Testing
1074

langchain

by zechenzhangAGI

Framework for building LLM-powered applications with agents, chains, and RAG. Supports multiple providers (OpenAI, Anthropic, Google), 500+ integrations, ReAct agents, tool calling, memory management, and vector store retrieval. Use for building chatbots, question-answering

Testing
21123

pair-trade-screener

by tradermonty

Statistical arbitrage tool for identifying and analyzing pair trading opportunities. Detects cointegrated stock pairs within sectors, analyzes spread behavior, calculates z-scores, and provides entry/exit recommendations for market-neutral strategies. Use when user requests pair

Testing
994

performing-penetration-testing

by jeremylongshore

This skill enables automated penetration testing of web applications. It uses the penetration-tester plugin to identify vulnerabilities, including OWASP Top 10 threats, and suggests exploitation techniques. Use this skill when the user requests a \

Testing
1546

webapp-testing

by anthropics

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

Testing
130255

python-testing-patterns

by wshobson

Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.

Testing
46146