Tag

signal

0 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Apr 1, 2025 · Backend Development

Enforcing Python Function Timeouts: Libraries, Multiprocessing & Subprocess

This article explains why limiting a function's execution time is crucial for stability, and demonstrates multiple Python techniques—including the func-timeout library, custom multiprocessing, subprocess.run, and signal handling—to set and manage timeouts effectively.

Pythonerror handlingfunction timeout
0 likes · 8 min read
Enforcing Python Function Timeouts: Libraries, Multiprocessing & Subprocess
Deepin Linux
Deepin Linux
Feb 18, 2025 · Fundamentals

Using backtrace to Diagnose Linux Program Crashes

This article explains common causes of unexpected Linux program termination and demonstrates how to employ the backtrace utility, along with signal handling and related functions, to capture and analyze stack traces, enabling precise identification and resolution of issues such as memory overflows, null pointer dereferences, and other runtime errors.

C++backtracedebugging
0 likes · 24 min read
Using backtrace to Diagnose Linux Program Crashes
Sohu Tech Products
Sohu Tech Products
Jan 11, 2023 · Mobile Development

Understanding Android ANR: Causes, Trigger Process, Monitoring Techniques, and Analysis

This comprehensive article explains what Android ANR (Application Not Responding) is, details its various causes and trigger scenarios, walks through the internal service‑side workflow, and presents practical monitoring solutions—including a watchdog thread and SIGQUIT signal interception—along with code samples, trace analysis methods, and mitigation strategies for developers.

ANRAndroidMobile
0 likes · 48 min read
Understanding Android ANR: Causes, Trigger Process, Monitoring Techniques, and Analysis
Sohu Tech Products
Sohu Tech Products
Sep 7, 2022 · Fundamentals

Understanding Mach Tasks, Threads, Processes and Exception Handling on iOS/macOS

The article explains how iOS/macOS uses the XNU kernel's Mach micro‑kernel to represent processes, tasks and threads, describes the relationship between them, classifies hardware and software exceptions, shows how Mach exceptions are translated into Unix signals, and provides practical code examples for capturing both Mach exceptions and signals in a crash‑reporting framework.

Crash ReportingException HandlingiOS
0 likes · 28 min read
Understanding Mach Tasks, Threads, Processes and Exception Handling on iOS/macOS
Python Programming Learning Circle
Python Programming Learning Circle
Nov 17, 2021 · Backend Development

Using Blinker for Signal Handling in Python and Flask

This article introduces the concept of signals, explains how the Python Blinker library implements them with named, anonymous, and multicast signals, demonstrates various usage patterns including decorators and receiver checks, and shows how to integrate Blinker with Flask for request‑level event handling.

BlinkerFlaskbackend
0 likes · 10 min read
Using Blinker for Signal Handling in Python and Flask
Beike Product & Technology
Beike Product & Technology
Sep 8, 2021 · Mobile Development

iOS Crash Analysis and Mitigation: Principles, Mechanisms, and a Case Study of WebView Container Crash on iOS 15

This article explains the fundamentals of iOS crashes, describes exception types such as Mach and Signal, details stack memory layout and recovery techniques, and walks through several real‑world crash investigations—including WKWebView, ImageIO, and fishhook issues—culminating in practical mitigation steps that reduced crash rates by over 60%.

MachExceptionWebViewcrash
0 likes · 17 min read
iOS Crash Analysis and Mitigation: Principles, Mechanisms, and a Case Study of WebView Container Crash on iOS 15
Tencent Music Tech Team
Tencent Music Tech Team
Jun 11, 2021 · Mobile Development

iOS Crash Interception, Reporting, and Post‑Crash Handling

The article explains how iOS crash interception must comprehensively and stably capture Mach, exception and signal crashes using combined signal‑and‑exception handlers, details stack‑trace symbolication via Mach‑O image lookup, and outlines safe post‑crash processing with a limited run‑loop while avoiding handler conflicts.

Crash HandlingMach ExceptionRunLoop
0 likes · 11 min read
iOS Crash Interception, Reporting, and Post‑Crash Handling