Add script to analyze core dumps with gdb
Introduces analyze_core_dumps.sh to automate core dump analysis using GDB.
The script provides stack traces and register information for analyzing
crashes in executables, with particular focus on Postgres/Cloudberry.
Features:
- Automatic core dump detection and analysis
- Detailed stack traces and register info via GDB
- Comprehensive logging of analysis results
- Dependency checking for required tools
- Clear return codes for automation:
0: No cores found
1: Cores processed successfully
2: Errors (missing deps or processing failures)
The script is designed to integrate with automated testing and CI/CD
pipelines while also being useful for manual debugging sessions.
1 file changed