• DocumentCode
    121082
  • Title

    PatBugs: A Pattern-Based Bug Detector for Cross-platform Mobile Applications

  • Author

    Guangtai Liang ; Jian Wang ; Shaochun Li ; Rong Chang

  • Author_Institution
    IBM Res. - China, Beijing, China
  • fYear
    2014
  • fDate
    June 27 2014-July 2 2014
  • Firstpage
    84
  • Lastpage
    91
  • Abstract
    Mobile app developers suffer a lot from the fragmentation of mobile platforms (e.g., needs to rewrite an app for a new platform). To alleviate this problem, cross-platform development techniques provide a cost-effective way (i.e., write-once-deploymany) to develop mobile applications. Such cross-platform techniques usually provide a set of relevant APIs to operate a native component (e.g., the accelerometer sensor) of a mobile device, and developers usually need to use these APIs under some certain temporal constraints (e.g., developers need to explicitly call the method clearWatch after the method watchAcceleration to safely release an accelerometer sensor). Once such constraints are violated, temporal bugs would be introduced (e.g., resulting in energy problems). Compared with traditional native apps (e.g., developed based on Java for Android or Objective-C for iOS), cross-platform apps are mostly based on cross-platform but dynamic languages (e.g., JavaScript). The syntax flexibility and the event-based programming nature of such dynamic languages pose difficulties for the automatic detection of temporal bugs in cross-platform applications. In this paper, we propose an effective pattern-based detection approach for temporal bugs in cross-platform applications. In our approach, we propose a Flexible Bug Pattern Specification Notation (FBPSN), which supports flexible specification of a bug pattern involving a set of relevant APIs with temporal constraints. Based on specified bug patterns, our approach supports to systematically detect related temporal bugs in cross-platform applications. Through the evaluations, we show that our approach is both effective and efficient.
  • Keywords
    application program interfaces; mobile computing; program debugging; API; FBPSN; JavaScript; accelerometer sensor; cross-platform apps; cross-platform development techniques; dynamic languages; event-based programming nature; flexible bug pattern specification notation; mobile app developers; mobile applications; mobile platforms; pattern-based detection approach; syntax flexibility; temporal bugs; temporal constraints; Acceleration; Accelerometers; Algorithm design and analysis; Computer bugs; Finite element analysis; Mobile communication; Navigation; bug detection; bug patterns; cross-platform techniques; mobile applications;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Mobile Services (MS), 2014 IEEE International Conference on
  • Conference_Location
    Anchorage, AK
  • Print_ISBN
    978-1-4799-5059-1
  • Type

    conf

  • DOI
    10.1109/MobServ.2014.21
  • Filename
    6924298