Tagged articles
12 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Oct 13, 2025 · Operations

Master Core Dumps: From Generation to Debugging with GDB on Linux

This article explains what a Core Dump is, how Linux generates the ELF‑based snapshot when a program crashes, common causes such as memory errors or signal mishandling, essential system configurations, and step‑by‑step GDB techniques for analyzing and fixing the underlying bugs.

core dumpgdblinux debugging
0 likes · 35 min read
Master Core Dumps: From Generation to Debugging with GDB on Linux
php Courses
php Courses
Sep 24, 2025 · Fundamentals

Master C++ Debugging: GDB and Valgrind from Basics to Advanced

This article provides a comprehensive guide to C++ debugging, covering the installation, core commands, and practical examples of GDB and Valgrind, along with advanced techniques, common pitfalls, and best‑practice recommendations to help developers efficiently locate and fix memory and segmentation errors.

C++Debugginggdb
0 likes · 9 min read
Master C++ Debugging: GDB and Valgrind from Basics to Advanced
Liangxu Linux
Liangxu Linux
Sep 6, 2025 · Fundamentals

13 Typical C Segmentation Fault Cases Every Programmer Should Know

This guide enumerates thirteen classic C segmentation fault patterns—including null pointer dereference, illegal memory access, stack overflow, buffer overrun, and misuse of dynamic memory—provides concise code examples for each, explains the underlying cause, and offers practical tips to prevent such crashes.

CMemory Managementpointers
0 likes · 9 min read
13 Typical C Segmentation Fault Cases Every Programmer Should Know
Liangxu Linux
Liangxu Linux
Aug 26, 2025 · Fundamentals

17 Common C Segmentation Fault Pitfalls and How to Avoid Them

This article walks through seventeen classic C programming mistakes that cause segmentation faults—such as null pointers, out‑of‑bounds array access, wild pointers, double frees, and format string bugs—and provides safe, production‑ready code examples to prevent each crash.

CMemory Managementpointers
0 likes · 18 min read
17 Common C Segmentation Fault Pitfalls and How to Avoid Them
Liangxu Linux
Liangxu Linux
Apr 19, 2025 · Fundamentals

Why Does Your C++ Program’s Memory Look Like This? From Punch Cards to Virtual Memory

This article traces the evolution of memory layout from early punched‑card computers through assembly‑level innovations, segment‑based designs, and virtual memory, then demonstrates a real 32‑bit Linux C++ program showing where globals, stack, heap, and mapped regions reside, and explains how this knowledge helps debug segmentation faults, stack overflows, and memory leaks.

BSSC++Virtual Memory
0 likes · 13 min read
Why Does Your C++ Program’s Memory Look Like This? From Punch Cards to Virtual Memory
IT Services Circle
IT Services Circle
Mar 5, 2024 · Fundamentals

Why Adding printf Can Hide Segmentation Faults: A Debugging Tale

An amusing yet instructive narrative shows how a C program that crashes with a segmentation fault can appear to work after inserting a printf, explaining that uninitialized local variables contain leftover stack data and that debugging tools like GDB reveal the true cause.

C programminggdbprintf
0 likes · 8 min read
Why Adding printf Can Hide Segmentation Faults: A Debugging Tale
Liangxu Linux
Liangxu Linux
Dec 9, 2023 · Fundamentals

Why Adding a printf Can “Bless” a Crashing C Program

A humorous tale reveals how an uninitialized stack variable caused a segmentation fault in C, how inserting a printf unintentionally altered memory to hide the bug, and why proper debugging with GDB is essential to understand such hidden issues.

CDebuggingprintf side effect
0 likes · 9 min read
Why Adding a printf Can “Bless” a Crashing C Program
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 31, 2022 · Databases

Resolving MySQL 8.0.21 Client Segmentation Fault Caused by Missing ncurses and Implicit Function Declarations

This article details the investigation and resolution of a MySQL 8.0.21 client segmentation fault on CentOS 8.4, covering missing ncurses libraries, implicit function declaration warnings, pointer truncation on 64‑bit systems, core‑file generation, gdb analysis, and the steps required to rebuild the client without crashes.

CDebuggingLinux
0 likes · 13 min read
Resolving MySQL 8.0.21 Client Segmentation Fault Caused by Missing ncurses and Implicit Function Declarations
Baidu Intelligent Testing
Baidu Intelligent Testing
Mar 26, 2018 · Fundamentals

C/C++ Segment Fault Case Analysis and Debugging Techniques

This article presents a comprehensive analysis of real-world C/C++ core dump cases, categorizing common causes such as stack integrity, memory leaks, multithreading issues, and misuse of system libraries, and offers practical debugging strategies and code examples to help developers prevent and resolve such crashes.

core dumpmemory issuesmultithreading
0 likes · 17 min read
C/C++ Segment Fault Case Analysis and Debugging Techniques
ITPUB
ITPUB
Nov 4, 2016 · Fundamentals

Locate Segmentation Faults Quickly with Core Dumps and GDB

This guide explains what core dumps are, how to enable their generation on Linux, where the core file is created, and step‑by‑step usage of GDB to pinpoint the exact location of a segmentation fault in C programs.

core dumpgdblinux debugging
0 likes · 4 min read
Locate Segmentation Faults Quickly with Core Dumps and GDB
ITPUB
ITPUB
Aug 3, 2016 · Fundamentals

Why Do Linux Segmentation Faults Occur? ELF Layout, Memory Mapping & Debugging

This article explains how Linux programs are loaded, the distinction between ELF sections and segments, virtual‑to‑physical address translation, the role of the MMU, brk/sbrk usage, address‑space layout, and practical steps to reproduce and avoid segmentation faults.

ELFLinuxmemory layout
0 likes · 15 min read
Why Do Linux Segmentation Faults Occur? ELF Layout, Memory Mapping & Debugging