tech:notes_segmentation_fault
Différences
Ci-dessous, les différences entre deux révisions de la page.
| tech:notes_segmentation_fault [2026/10/27 22:12] – créée Jean-Baptiste | tech:notes_segmentation_fault [2026/11/03 16:49] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| # Notes segmentation fault | # Notes segmentation fault | ||
| + | |||
| + | Pour comprendre et analyser l' | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | ## Common Causes | ||
| + | |||
| + | * Null or Uninitialized Pointers: Dereferencing a pointer that points to a random memory address instead of a valid allocation. | ||
| + | * Buffer Overflow / Out-of-Bounds Access: Writing or reading past the end of an array or buffer. | ||
| + | * Stack Overflow: Allocating too much memory on the stack (such as a massive local array) instead of the heap (using `std:: | ||
| + | * Use-After-Free: | ||
| + | |||
| + | |||
| + | ## How to Debug It | ||
| + | |||
| + | * Use GDB: Run your program inside the GNU Debugger (gdb ./ | ||
| + | * Check Memory with Valgrind: Run valgrind --leak-check=yes ./ | ||
| + | * Inspect Array and Stack Sizes: If working in C/C++, replace raw fixed-size arrays with safe containers like std:: | ||
| + | If you want to troubleshoot further, let me know: | ||
| + | * What programming language or tool are you running? | ||
| + | * Can you share the code snippet or stack trace around where the crash happens? | ||
tech/notes_segmentation_fault.1793135572.txt.gz · Dernière modification : de Jean-Baptiste
