With the rapid increase of public code repositories, developers maintain a great desire to retrieve precise code snippets by using natural language. Despite existing deep learning-based approaches that provide end-to-end solutions (i.e., accept natural language as queries and show related code fragments), the performance of code search in the large-scale repositories is still low in accuracy because of the code representation (e.g., AST) and modeling (e.g., directly fusing features in the attention stage). In this paper, we propose a novel learnable de ep G raph for C ode S earch (called deGraphCS ) to transfer source code into variable-based flow graphs based on an intermediate representation technique, which can model code semantics more precisely than directly processing the code as text or using the syntax tree representation. Furthermore, we propose a graph optimization mechanism to refine the code representation and apply an improved gated graph neural network to model variable-based flow graphs. To evaluate the effectiveness of deGraphCS , we collect a large-scale dataset from GitHub containing 41,152 code snippets written in the C language and reproduce several typical deep code search methods for comparison. The experimental results show that deGraphCS can achieve state-of-the-art performance and accurately retrieve code snippets satisfying the needs of the users.
19 June 2025 in Proceedings of the ACM on Software Engineering
Error handling is critical for software reliability. In software systems, error handling may be delayed to other functions. Such propagated error handling (PEH) could easily be missed and lead to bugs. Our research reveals that PEH bugs are prevalent in software systems and, on average, take 44.1 days to fully address. Existing approaches have primarily focused on the error-handling bug within individual functions, which makes it difficult to fully address PEH bugs. In this paper, we conducted the first in-depth study on PEH bugs in 11 mature software systems, examining how errors propagate and how they should be handled. We introduce EH-Fixer, an LLM-based tool for automated program repair specifically designed to address PEH bugs. For each PEH bug, EH-Fixer constructs its propagation path, and repairs them through retrieval-augmented generation. To assess the performance of our approach, we collected 89 historical PEH bugs from the Linux Kernel as well as 9 widely used applications. The experimental results show that EH-Fixer can fix 83.1% (74/89) of PEH bugs.
Persisting tail latency in storage systems poses critical challenges to cloud computing and real-time applications. While existing software solutions predominantly target transient latency spikes through single-operation prediction, their effectiveness diminishes significantly when confronting persisting performance degradation in modern SSDs. We present LatVision , an operating system (OS) kernel-level monitoring framework that integrates dual-layer prediction and attention mechanisms for cross-storage latency analysis. Leveraging eBPF to capture I/O performance metrics at the OS kernel level, LatVision implements a dual-layer detection pipeline: a lightweight classifier initially filters normal operations, while suspicious data failing the Layer-1 screening are routed to Layer-2 prediction model for double check. This hierarchical architecture reduces average computational overhead by 75.3% compared with monolithic prediction models. An attention-enhanced neural network further improves persisting tail latency prediction precision by prioritizing critical temporal patterns. Experimental evaluations across six SSD and HDD configurations demonstrate LatVision’s generalization capability, achieving prediction accuracy exceeding 90% across all test cases. Heuristic algorithm integration with the prediction results enhances operational stability under diverse workload conditions. The framework achieves real-time, lightweight, and high-precision persisting tail latency prediction for low-latency SSDs while maintaining minor latency overhead.