HERO: On the Chaos When PATH Meets Modules
Ying Wang, Liang Qiao, Chang Xu, Yepang Liu, Shing-Chi Cheung, Na Meng, Hai Yu, Zhiliang Zhu
摘要
Ever since its first release in 2009, the Go programming language (Golang) has been well received by software communities. A major reason for its success is the powerful support of library-based development, where a Golang project can be conveniently built on top of other projects by referencing them as libraries. As Golang evolves, it recommends the use of a new library-referencing mode to overcome the limitations of the original one. While these two library modes are incompatible, both are supported by the Golang ecosystem. The heterogeneous use of library-referencing modes across Golang projects has caused numerous dependency management (DM) issues, incurring reference inconsistencies and even build failures. Motivated by the problem, we conducted an empirical study to characterize the DM issues, understand their root causes, and examine their fixing solutions. Based on our findings, we developed Hero, an automated technique to detect DM issues and suggest proper fixing solutions. We applied Hero to 19,000 popular Golang projects. The results showed that Hero achieved a high detection rate of 98.5% on a DM issue benchmark and found 2,422 new DM issues in 2,356 popular Golang projects. We reported 280 issues, among which 181 (64.6%) issues have been confirmed, and 160 of them (88.4%) have been fixed or are under fixing. Almost all the fixes have adopted our fixing suggestions.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Demystifying Dependency Bugs in Deep Learning Stack 引用了 Watchman: monitoring dependency conflicts for Python library ecosystem
- Demystifying Dependency Bugs in Deep Learning Stack 引用了 Interactive, effort-aware library version harmonization
- Less is More? An Empirical Study on Configuration Issues in Python PyPI Ecosystem 引用了 Watchman: monitoring dependency conflicts for Python library ecosystem
- Less is More? An Empirical Study on Configuration Issues in Python PyPI Ecosystem 引用了 Small World with High Risks: A Study of Security Threats in the npm Ecosystem
- Less is More? An Empirical Study on Configuration Issues in Python PyPI Ecosystem 引用了 Interactive, effort-aware library version harmonization
- Extracting taint specifications for JavaScript libraries 引用了 Small World with High Risks: A Study of Security Threats in the npm Ecosystem
- Towards Understanding Third-party Library Dependency in C/C++ Ecosystem 引用了 Watchman: monitoring dependency conflicts for Python library ecosystem
- Towards Understanding Third-party Library Dependency in C/C++ Ecosystem 引用了 Small World with High Risks: A Study of Security Threats in the npm Ecosystem
- Towards Understanding Third-party Library Dependency in C/C++ Ecosystem 引用了 Interactive, effort-aware library version harmonization
- Interactive, effort-aware library version harmonization 引用了 Keep me Updated: An Empirical Study of Third-Party Library Updatability on Android
- Interactive, effort-aware library version harmonization 引用了 Small World with High Risks: A Study of Security Threats in the npm Ecosystem
- Empirical Analysis of Vulnerabilities Life Cycle in Golang Ecosystem 引用了 Towards Understanding Third-party Library Dependency in C/C++ Ecosystem
- Empirical Analysis of Vulnerabilities Life Cycle in Golang Ecosystem 引用了 Small World with High Risks: A Study of Security Threats in the npm Ecosystem
- Empirical Analysis of Vulnerabilities Life Cycle in Golang Ecosystem 引用了 Demystifying Compiler Unstable Feature Usage and Impacts in the Rust Ecosystem
- Demystifying Compiler Unstable Feature Usage and Impacts in the Rust Ecosystem 引用了 Watchman: monitoring dependency conflicts for Python library ecosystem
- Demystifying Compiler Unstable Feature Usage and Impacts in the Rust Ecosystem 引用了 Small World with High Risks: A Study of Security Threats in the npm Ecosystem
引用它的顶会 Paper6
- Towards Understanding Third-party Library Dependency in C/C++ EcosystemWei Tang, Zhengzi Xu, Chengwei Liu, Jiahui Wu 等ASE 2022 · 64 次引用
- Demystifying Dependency Bugs in Deep Learning StackKaifeng Huang, Bihuan Chen, Susheng Wu, Junming Cao 等FSE 2023 · 20 次引用
- Empirical Analysis of Vulnerabilities Life Cycle in Golang EcosystemJinchang Hu, Lyuye Zhang, Chengwei Liu, Sen Yang 等ICSE 2024 · 10 次引用
- Demystifying Compiler Unstable Feature Usage and Impacts in the Rust EcosystemChenghao Li, Yifei Wu, Wenbo Shen, Zichen Zhao 等ICSE 2024 · 6 次引用
- Less is More? An Empirical Study on Configuration Issues in Python PyPI EcosystemYun Peng, Ruida Hu, Ruoke Wang, Cuiyun Gao 等ICSE 2024 · 5 次引用
它引用的 Paper5
- Small World with High Risks: A Study of Security Threats in the npm EcosystemMarkus Zimmermann, Cristian-Alexandru Staicu, Cam Tenny, Michael PradelUSENIX Security 2019 · 281 次引用
- Keep me Updated: An Empirical Study of Third-Party Library Updatability on AndroidErik Derr, Sven Bugiel, Sascha Fahl, Yasemin Acar 等CCS 2017 · 196 次引用
- Watchman: monitoring dependency conflicts for Python library ecosystemYing Wang, Ming Wen, Yepang Liu, Yibo Wang 等ICSE 2020 · 65 次引用
- Extracting taint specifications for JavaScript librariesCristian-Alexandru Staicu, Martin Toldam Torp, Max Schäfer, Anders Møller 等ICSE 2020 · 34 次引用
- Interactive, effort-aware library version harmonizationKaifeng Huang, Bihuan Chen, Bowen Shi, Ying Wang 等FSE 2020 · 32 次引用
相关 Paper
- A Large-Scale Empirical Study on Semantic Versioning in Golang EcosystemWenke Li, Feng Wu, Cai Fu, Fan ZhouASE 2023 · 7 次引用
- How to Pet a Two-Headed Snake? Solving Cross-Repository Compatibility Issues with HeraYifan Xie, Zhouyang Jia, Shanshan Li, Ying Wang 等ASE 2024 · 2 次引用
- Understanding and Detecting Disordered Error Handling with Precise Function PairingQiushi Wu, Aditya Pakki, Navid Emamdoost, Stephen McCamant 等USENIX Security 2021 · 31 次引用
- Automatically detecting and fixing concurrency bugs in go software systemsZiheng Liu, Shuofei Zhu, Boqin Qin, Hao Chen 等ASPLOS 2021 · 32 次引用
- A study of real-world data races in GolangMilind Chabbi, Murali Krishna RamanathanPLDI 2022 · 34 次引用
