Identification of Misleading Location Information in Compiler Diagnoses

Miaoying Wang, Weixing Ji*, Dejiang Jing, Hui Liu

*此作品的通讯作者

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

The location of compilation errors are usually reported by compilers to facilitate quick fixing of such compiler errors. However, sometimes such location information could be incorrect or misleading, which significantly reduces the chance of quick fixing. To this end, in this paper, we propose an automated approach, called iMiLi, to identify misleading location information in compiler diagnoses. We generate potentially illegal programs (called mutants) by mutating legal programs, and compile such mutants. If the compiler generates error diagnoses on a mutant, we extract the location information from the resulting diagnoses. The location information is suspicious if it does not point to the source code where the associated mutation is conducted. Then we propose heuristics for each kind of mutation operators to exclude such suspicious but correct location information. We evaluate the proposed approach on a state-of-the-practice compiler (i.e., Eclipse Compiler for Java, known as ECJ). iMiLi successfully identifies seven categories of incorrect/misleading location information in diagnoses of ECJ.

源语言英语
主期刊名Proceedings - 2020 27th Asia-Pacific Software Engineering Conference, APSEC 2020
出版商IEEE Computer Society
460-464
页数5
ISBN(电子版)9781728195537
DOI
出版状态已出版 - 12月 2020
活动27th Asia-Pacific Software Engineering Conference, APSEC 2020 - Singapore, 新加坡
期限: 1 12月 20204 12月 2020

出版系列

姓名Proceedings - Asia-Pacific Software Engineering Conference, APSEC
2020-December
ISSN(印刷版)1530-1362

会议

会议27th Asia-Pacific Software Engineering Conference, APSEC 2020
国家/地区新加坡
Singapore
时期1/12/204/12/20

指纹

探究 'Identification of Misleading Location Information in Compiler Diagnoses' 的科研主题。它们共同构成独一无二的指纹。

引用此