Shopify

Adventures in Production Rails Debugging - Shopify

Mar 8, 2016
Adventures in Production Rails Debugging - Shopify
SummaryAI, from the source post

This post details the use of gdb to debug a production Rails warning related to ASCII regex matching on UTF-8 strings. It explains how to attach gdb to a running process, set breakpoints in C source files (requiring debug symbols), generate core dumps for offline analysis, and use Python scripts to extract Ruby call stacks from core dumps. The post also demonstrates how to inspect Ruby string objects' internal representation to identify problematic data, leading to a monkey patch to suppress warnings.

More from the Production Rails Debugging Tools trail