Tagged articles
glibc
30 articles · Page 1 of 1
A comprehensive guide to diagnosing and recovering from DNS resolution failures that cause service outages, covering real-world incident analysis, layered troubleshooting steps, runtime-specific behaviors, configuration tuning, monitoring strategies, and preventive design patterns for Linux and Kubernetes environments.
CoreDNSDNSKubernetes
0 likes · 53 min read

This tutorial establishes a verifiable baseline for installing MySQL 8.0.46 on Kylin Linux V11 (x86_64), covering system checks (glibc 2.38, architecture), resource validation (3.3 GiB RAM, 21 GiB disk), port 3307 availability, and a structured directory layout separating downloads, config, data, logs, runtime, and SQL scripts.
Kylin OSLinuxMySQL
0 likes · 15 min read

This comprehensive guide traces the full execution path of a Linux program from user-space glibc calls through system calls into the kernel, covering process management, memory allocation, threading, I/O buffering, dynamic linking, and practical debugging techniques.
DebuggingLinux internalsLinux kernel
0 likes · 61 min read

The article lists and categorises the most destructive Linux commands—like deleting glibc, running rm -rf /, misusing chmod or dd—and shares personal anecdotes that illustrate why careless use of these “cyber lightbulb” operations can instantly cripple a system.
Embedded LinuxLinuxchmod
0 likes · 6 min read

This comprehensive guide explains the inner workings of the C malloc function, covering memory layout, stack vs heap, glibc memory pools, system calls like brk/sbrk and mmap, allocation strategies, fragmentation, alignment, multithreading safety, and comparisons with calloc, realloc, and C++ new.
c-programmingglibcheap management
0 likes · 53 min read

This guide explains the limitations of the static swoole‑cli build, introduces the new glibc‑linked version in v6.1.3, and provides step‑by‑step commands for installing the .deb or .rpm packages, running PHP‑FPM, starting the CLI HTTP server, using Composer, and loading additional PHP extensions.
DebDockerPHP-FPM
0 likes · 15 min read

This article details a step‑by‑step rescue of a CentOS 7 server that failed with GLIBC errors after mixing CentOS 7 and CentOS 8 packages, showing how to mount the ISO, reinstall glibc, fix broken symlinks, restore PAM, Python, and other core components until the system boots normally.
CentOSLinuxRPM
0 likes · 13 min read

This article explains why Linux gives each thread its own stack, describes the historical evolution from LinuxThreads to NPTL, and walks through the glibc implementation that allocates, sizes, and releases thread‑stack memory using mmap and related kernel calls.
LinuxNPTLThread Stack
0 likes · 10 min read

This article provides a comprehensive overview of glibc's heap memory management, explaining the role of brk and mmap, the organization of arenas, heaps, chunks, bin structures, allocation and deallocation strategies, and how these concepts are applied in security research and exploit development.
C++freeglibc
0 likes · 29 min read

This article explains the role of glibc malloc in dynamic memory allocation, describes its internal data structures and allocation/free algorithms, provides a C code example, and offers practical optimization tips and common pitfalls for safe and efficient memory management.
c-programmingdynamic allocationglibc
0 likes · 13 min read

The article examines a production RocksDB memory‑usage problem where two instances consumed 59 GB on a 32‑CPU, 64‑GB server, identifies glibc ptmalloc’s unreclaimed free memory as the main cause, and shows that switching to jemalloc cuts usage by roughly 25 % while improving I/O and CPU efficiency.
Linux memory managementRocksDBglibc
0 likes · 11 min read

The article examines a real‑world memory alarm in a Vivo service, explains how glibc’s ptmalloc allocator manages heap memory via brk, sbrk, and mmap, shows why freed chunks stay in bins, and recommends limiting heap growth or switching to jemalloc for faster reclamation.
C runtimebackend developmentglibc
0 likes · 20 min read

The article dissects glibc's ptmalloc implementation, explaining malloc_state, malloc_chunk, fastbins, bins, and top chunk, then analyzes lock contention and fragmentation in multithreaded scenarios through a custom stress test, and concludes with recommendations for high‑performance memory management.
Concurrencyglibchigh-performance
0 likes · 12 min read

The article details the complete process of porting QQ's NTRTC audio/video SDK to Linux, covering platform surveys, packaging, build‑time issues like GLIBC mismatches and fPIC errors, debugging steps, Qt/Electron demos, GPU blocklist workarounds, and future compatibility plans.
AudioVideoCMakeDebugging
0 likes · 30 min read

This article recounts a failed Node.js installation on an older Ubuntu server caused by a missing GLIBC 2.28 library, details the attempted GLIBC upgrade script that led to system-wide segmentation faults, and explains how reinstalling a newer Ubuntu version resolved the issue while emphasizing careful backup practices.
Node.jsUbuntudeployment
0 likes · 4 min read

This article explains the glibc CVE‑2024‑2961 buffer overflow in ISO‑2022‑CN‑EXT conversion, how it can be exploited through PHP's iconv extension, and provides practical mitigation steps such as applying distro patches, validating charset inputs, and removing vulnerable modules when patches are unavailable.
CVE-2024-2961IConvLinux
0 likes · 4 min read

This article explains how Baidu Cloud’s Btune performance‑diagnostic tool helps identify CPU, memory and NUMA bottlenecks, provides automatic optimization suggestions, and demonstrates a real‑world test that improves a memory‑intensive program’s runtime by up to 36.8% after applying the recommended changes.
BtuneNUMAcloud computing
0 likes · 10 min read

This article explains how the glibc malloc implementation (ptmalloc) manages memory by using arenas, chunks, and various bin structures such as fastbins, smallbins, largebins, and unsorted bins, and describes the step‑by‑step allocation process performed by public_mALLOc and its helper functions.
Heapglibcmalloc
0 likes · 14 min read

The article explains how glibc’s default ptmalloc allocator structures memory into main and non‑main arenas, uses chunk‑based bins (fast, unsorted, small, large) for allocation and deallocation, details its locking and OS‑interaction mechanisms, and evaluates its design trade‑offs versus modern allocators.
C++Linuxfree
0 likes · 12 min read

Starting from mysterious Java Agent errors in Alibaba Cloud environments, this article traces the failure through the JVM’s Instrumentation.appendToSystemClassLoaderSearch call, examines glibc’s stat and iconv conversions, reveals thread‑local storage issues, and presents concrete fixes using pthread TLS and proxy wrappers.
IConvJVMJava Agent
0 likes · 12 min read

This article explores the inner workings of Linux's glibc malloc, detailing how heap memory is requested from the kernel, how multithreaded support is implemented with per‑thread arenas, and the structures such as arenas, bins, and chunks that together determine allocation efficiency.
LinuxMemory AllocatorMultithreading
0 likes · 26 min read


ITPUBDec 7, 2020 · Fundamentals
This guide explains how to resolve glibc version errors on CentOS 6 by analyzing ELF symbol tables with objdump and readelf, editing .gnu.version_r entries via a hex editor, and using patchelf to add needed libraries, allowing older systems to run newer binaries safely.
ELFbinary compatibilitycentos6
0 likes · 15 min read

This guide explains why a third‑party program compiled against glibc 2.14/2.17 fails on CentOS 6, how to inspect the ELF symbol versions with objdump and readelf, and how to patch the binary using a hex editor and patchelf so it can run with the system's older glibc.
ELFbinary compatibilitycentos6
0 likes · 16 min read

This article explains CPU registers, stack layout, function call conventions, and provides detailed explanations of how glibc implements memcpy and memset both in C and in low‑level assembly, including code snippets and the handling of remaining bytes.
Function CallLow-Level ProgrammingMemcpy
0 likes · 8 min read

An investigation reveals that Java 8 processes can report virtual memory usage exceeding 50 GB due to extensive address space allocation by glibc’s arena mechanism, not actual physical memory, and explains how environment variables like MALLOC_ARENA_MAX can limit this VIRT growth.
MALLOC_ARENA_MAXVIRTglibc
0 likes · 5 min read


ITPUBMay 23, 2018 · Fundamentals
This article explains three ways to perform Linux system calls—using glibc wrapper functions, the low‑level syscall interface, and inline assembly with the int 0x80 instruction—illustrating each method with a chmod example, error handling, and code snippets.
Linuxassemblyglibc
0 likes · 7 min read


ITPUBSep 15, 2017 · Fundamentals
This article explains Linux's two‑level memory model, lazy physical allocation, the glibc malloc implementation, chunk metadata, large‑vs‑small allocations, memory holes, debugging hooks, leak detection with mtrace, and practical ways to measure a process's memory usage via /proc.
Debuggingglibcmalloc
0 likes · 15 min read

The article explains how salt‑minion’s DNS resolution can become stale after a data‑center migration because each Linux process caches resolver settings in a private _res structure initialized by glibc’s res_init(), and it offers practical ways to force a refresh or redesign the lookup mechanism.
DNSLinuxOperations
0 likes · 8 min read


ITPUBFeb 27, 2016 · Information Security
A critical heap‑based buffer overflow in glibc's getaddrinfo() DNS resolver (CVE‑2015‑7547) can let attackers execute remote code on Linux systems, affecting most distributions that use glibc 2.9 or newer, and the article explains the bug, its impact, and mitigation steps.
CVE-2015-7547DNSLinux-security
0 likes · 8 min read

This article explains why Node.js throws errors like ETIMEDOUT and EADDRINUSE, detailing the underlying glibc connect() function, its error codes, and how non‑blocking sockets and thread cancellation affect resource handling.
Node.jsSocketconnect
0 likes · 4 min read
