arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2506.00693cs.SE
收藏

C 程序中内存错误定位时的人类注意力

Human Attention During Localization of Memory Bugs in C Programs

University of Notre Dame(圣母大学);Vanderbilt University(范德堡大学)

Emory Michaels, Robert Wallace, Matthew Robison, Yu Huang, Collin McMillan

AI总结:

研究人类在 C 程序中定位内存错误时的视觉注意力,招募 21 名程序员在三个程序中定位内存错误,收集 31 小时观察数据,分析成功率等任务结果、总体视觉注意力模式及成败案例中视觉注意力模式差异。

摘要:

本文介绍了一项关于人类在 C 程序中定位内存错误时视觉注意力的研究。人类视觉注意力是我们选择性处理信息并确定优先级的机制。研究视觉注意力很重要,因为它是有视力的人用于解决特定问题的信息的核心。内存错误是 C 程序中最常见的错误类型之一,表现为各种程序故障。我们招募了 21 名程序员,让他们在三个 C 程序中定位 1 到 8 个内存错误,每人用时 1.5 至 2 小时,共收集了 31 小时的程序员工作观察数据。研究中的错误涵盖内存泄漏、溢出和双重释放等常见内存错误。我们从成功率及相关因素、总体视觉注意力模式(如读取的代码行和函数)以及成功与失败案例中视觉注意力模式的差异等方面分析任务结果。

英文摘要:

This paper presents a study of human visual attention during localization of memory bugs in C. Human visual attention refers to the mechanical processes by which we selectively process and prioritize information. Visual attention is important to study because it is central to what information people (who are sighted) use to solve a particular problem. Meanwhile, memory bugs are among the most common types of bugs in C programs that manifest as a variety of program faults. In this paper, we study human visual attention while people attempt to locate memory bugs in code. We recruit 21 programmers to locate between one and eight memory bugs in three C programs for 1.5-2 hours each. In total we collected observations of 31 hours of programmer effort. The bugs in our study cover memory leaks, overflows, and double frees, which are among the most common memory bugs. We analyze the task outcomes in terms of success rate and related factors, patterns of visual attention overall such as what lines and functions are read, and finally we explore differences of visual attention patterns during success versus failure cases.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑