2017 · 48 citations · 36 references
ComputingComputer ScienceComputer SystemsDistributed SystemsOperating SystemsSystems ProgrammingConcurrency AnalysisConcurrency ControlEvent-driven ArchitectureAsynchronous I/oAsynchronous ProgrammingAtomicityAtomicity ViolationsConcurrency Bug DetectionConcurrency BugsRoot CausesTransaction Atomicity
Node.js becomes increasingly popular in building server-side JavaScript applications. It adopts an event-driven model, which supports asynchronous I/O and non-deterministic event processing. This asynchrony and non-determinism can introduce intricate concurrency bugs, and leads to unpredictable behaviors. An in-depth understanding of real world concurrency bugs in Node.js applications will significantly promote effective techniques in bug detection, testing and fixing for Node.js. In this paper, we present NodeCB, a comprehensive study on real world concurrency bugs in Node.js applications. Specifically, we have carefully studied 57 real bug cases from open-source Node.js applications, and have analyzed their bug characteristics, e.g., bug patterns and root causes, bug impacts, bug manifestation, and fix strategies. Through this study, we obtain several interesting findings, which may open up many new research directions in combating concurrency bugs in Node.js. For example, one finding is that two thirds of the bugs are caused by atomicity violation. However, due to lack of locks and transaction mechanism, Node.js cannot easily express and guarantee the atomic intention.
36
Stefan Savage, Michael T. Burrows, Greg Nelson et al. · ACM Transactions on Computer Systems · 1997 · 1.6K citations · Full text
Shan Lu, Soyeon Park, Eunsoo Seo et al. · 2008 · 892 citations
Language support for lightweight transactions
Tim Harris, Keir Fraser · ACM SIGPLAN Notices · 2014 · 638 citations
Using GUI ripping for automated testing of Android applications
Domenico Amalfitano, Anna Rita Fasolino, Porfirio Tramontana et al. · 2012 · 515 citations
Automated concolic testing of smartphone apps
Saswat Anand, Mayur Naik, Mary Jean Harrold et al. · 2012 · 402 citations