arrow
Return

Will Dependency Conflicts Affect My Program's Semantics?

delete2022-07-01
delete14
delete
OA
AI
Y
Ying Wang
吴
吴荣新 (Rongxin Wu)
C
Chao Wang
文
文明 (Ming Wen)
Y
Yepang Liu
S
Shing-Chi Cheung
H
Hai Yu *
C
Chang Xu
Z
Zhiliang Zhu
DOI:10.1109/TSE.2021.3057767delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Java projects are often built on top of various third-party libraries. If multiple versions of a library exist on the classpath, JVM will only load one version and shadow the others, which we refer to as dependency conflicts. This would give rise to semantic conflict (SC) issues, if the library APIs referenced by a project have identical method signatures but inconsistent semantics across the loaded and shadowed versions of libraries. SC issues are difficult for developers to diagnose in practice, since understanding them typically requires domain knowledge. Although adapting the existing test generation technique for dependency conflict issues, RIDDLE, to detect SC issues is feasible, its effectiveness is greatly compromised. This is mainly because RIDDLE randomly generates test inputs, while the SC issues typically require specific arguments in the tests to be exposed. To address that, we conducted an empirical study of 316 real SC issues to understand the characteristics of such specific arguments in the test cases that can capture the SC issues. Inspired by our empirical findings, we propose an automated testing technique SENSOR, which synthesizes test cases using ingredients from the project under test to trigger inconsistent behaviors of the APIs with the same signatures in conflicting library versions. Our evaluation results show that SENSOR is effective and useful: it achieved a Precision of 0.898 and a Recall of 0.725 on open-source projects and a Precision of 0.821 on industrial projects; it detected 306 semantic conflict issues in 50 projects, 70.4 percent of which had been confirmed as real bugs, and 84.2 percent of the confirmed issues have been fixed quickly.
Keywords:
Third-party libraries
test generation
empirical study
Automated Localization of Affected Libraries and Versions from Vulnerability Reports
err2026-04-29
err0
PREAI
errJinwei Xu; He Zhang; Xin Zhou; Yanjing Yang; Jinghao Hu; Xiaokang Li; Lanxin Yang; Bohan Liu
errShare
errSave
Why is my code change abandoned?
err2019-06-01
err14
errOAAI
errWang, Qingye; Xia, Xin; Lo, David; Li, Shanping
errShare
errSave
Out of sight, out of mind? How vulnerable dependencies affect open-source projects
err2021-04-21
err40
PREAI
errPrana, Gede Artha Azriadi; Sharma, Abhishek; Shar, Lwin Khin; Foo, Darius; Santosa, Andrew E.; Sharma, Asankhaya; Lo, David
errShare
errSave
Automated Infrastructure as Code Program Testing
err2024-06-01
err1
PREAI
errSokolowski, Daniel; Spielmann, David; Salvaneschi, Guido
errShare
errSave
My Fuzzers Won't Build: An Empirical Study of Fuzzing Build Failures
err2025-01-20
err0
errOAAI
errNourry, Olivier; Kashiwa, Yutaro; Shang, Weiyi; Shu, Honglin; Kamei, Yasutaka
errShare
errSave

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
3.0K
Citations:
1.3W

Organization

xia men university cover
xia men university
Scholars:
620
Papers: 174
Citations: 3.1W
Nanjing University cover
Nanjing University
Scholars:
6.8K
Papers: 1.9K
Citations: 4.4W
Cited Papers

Cited Papers

Quality of Life and Psychopathology in Adults Who Underwent Hematopoietic Stem Cell Transplantation (HSCT) in Childhood: A Qualitative and Quantitative Analysis
err2017-08-08
err0
errOAAI
errFrancesco Sinatora; Annalisa Traverso; Silvia Zanato; Nicoletta Di Florio; Alessio Porreca; Marta Tremolada; Valentina Boscolo; Antonio Marzollo; Chiara Mainardi; Elisabetta Calore; Marta Pillon; Chiara Cattelan; Giuseppe Basso; Chiara Messina
errShare
errSave
A transcriptional response atlas of Chrysanthemum morifolium to dodder invasion
err2021-01-01
err0
PREAI
errYe Liu; Lina Liu; Wenqian Zhao; Zhiyong Guan; Jiafu Jiang; Weimin Fang; Fadi Chen
errShare
errSave
FaceDrive: Facial Expression Driven Operation to Control Virtual Supernumerary Robotic Arms
err2019-11-17
err0
PREAI
errMasaaki Fukuoka; Adrien Verhulst; Fumihiko Nakamura; Ryo Takizawa; Katsutoshi Masai; Maki Sugimoto
errShare
errSave
Electroanalytical overview: the use of laser-induced graphene sensors
err2025-01-01
err0
errOAAI
errRobert D. Crapnell; Elena Bernalte; Rodrigo A. A. Muñoz; Craig E. Banks
errShare
errSave
errShare
errSave
Acid modified multiwalled carbon nanotubes condition by reflux
err2019-09-25
err0
PREAI
errKittimon Jirakittidul; Naratip Vittayakorn; Rawijee Manrean; Natchanun Pornteeranawapat; Saichon Neamyooyong
errShare
errSave
researcher View more