Analysis of a Non-Deterministic .NET Crash Caused by Memory Corruption
Investigation Overview
A .NET application, primarily used for industrial machine vision, encountered a sponteneous crash. An analysis of the memory dump revealed critical instability within the managed heap.
Diagnosing the Crash
Using WinDbg to inspect the dump, the initial exception indicated an access violation during garbage collection:
(bf8 ...
Posted on Tue, 04 Aug 2026 16:03:45 +0000 by TCovert
Python Exception Handling, Testing, and Debugging Techniques
Understanding ExceptionsExceptions are runtime errors that disrupt the normal flow of a program. These disruptions can occur for various reasons, such as dividing by zero, accessing an out-of-bounds index, missing files, network failures, type mismatches, undefined variables, missing dictionary keys, or insufficient disk space.Without proper ha ...
Posted on Sat, 25 Jul 2026 16:52:11 +0000 by smp
Analyzing Pipe Capacity in Linux Splice with perf
When debugging kernel-level issues, traditional approaches like eBPF might not be available on older kernel versions. In such cases, perf probe provides a practical alternative for tracing kernel functions without writing custom kernel modules. Before adding probes, identify available symbols through /proc/kallsyms. For instance, to trace splic ...
Posted on Sun, 19 Jul 2026 17:01:14 +0000 by KissMyBrain
Resolving TensorBoard ModuleNotFoundError in Conda Environments
When executing Python scripts that rely on TensorBoard, developers may encounter a ModuleNotFoundError indicating the absence of the tensorboard module. This issue typically stems from two primary causes within conda-managed environments: the package is missing from the current enviroment, or the shell session is pointing to a different environ ...
Posted on Sun, 19 Jul 2026 16:28:32 +0000 by ShawnD
Using Arthas for Java Debugging and Common Commands
This article demonstrates how to use Arthas, a popular diagnostic tool for Java appplications, to troubleshoot common production issues. We'll walk through a sample project with three problematic endpoints and then show how Arthas commands help identify and fix them.
Setting Up a Demo Application
First, create a Spring Boot application with thr ...
Posted on Wed, 15 Jul 2026 16:13:33 +0000 by marco839
Procedural Programming, Object-Oriented Concepts, Classes and Objects
Table of Contents- Procedural Programming - Function-level comments can be extracted
Procedural Programming: Facing (towards) --> Process (flow/steps) --> Programming (writing code)
IPO
Programming
Object-Oriented Programming
Classes and Objects
Customizing Object Properties
LeetCode Testing Mechanism
Classes and Data Types
Procedura ...
Posted on Sat, 11 Jul 2026 16:41:56 +0000 by soto134
Generating and Analyzing DMP Files for C# Application Debugging
When troubleshooting frequant crashes in legacy C# applications, generating memory dump (DMP) files can provide valuable debugging informasion. The following implementation demonstrates how to create DMP files programmatically:
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
public class CrashDump ...
Posted on Fri, 10 Jul 2026 17:38:33 +0000 by Bookmark
Debugging Techniques for DiffTest Between NEMU and QEMU
Logging Execution Traces
QEMU Logging
Enable instruction logging in QEMU with these launch parameters:
-d in_asm -D ./qemu.log
For additional CPU register output, include the cpu parameter: -d in_asm,cpu.
NEMU Logging
Configure NEMU during compilation via make menuconfig:
Testing and Debugging -> [*] Enable debug features: instruction traci ...
Posted on Fri, 19 Jun 2026 17:51:47 +0000 by carsale
Resolving Unresolved Function Names (??()) in GDB Stack Traces
When GDB displays function names as ??() in stack traces, it indicates that the function names cannot be resolved. This typically occurs due to several reasons:
Missing Symbol Table Information: If the executable lacks symbol table information or GDB fails to load it, function names and code locations become unavailable. This can happen if deb ...
Posted on Tue, 16 Jun 2026 16:43:35 +0000 by SharkBait
Approaching Redis Source Code: A Practical Guide
Overview of Redis
Redis (Remote Dictionary Server) is an open-source, high-performance key-value store written in C by Salvatore Sanfilippo. Licensed under the BSD license, it stands out from other caching systems like Memcached due to several core features:
Persistence: Supports saving in-memory data to disk for recovery after restarts.
Ri ...
Posted on Tue, 02 Jun 2026 17:25:32 +0000 by phpgeek17