SlideShare a Scribd company logo
1 of 26
Download to read offline
Systema(c*Tes(ng*for*Resource*Leaks*in*Android*
Applica(ons*

Dacong (Tony) Yan, Shengqian Yang, Atanas Rountev
Ohio State University
PRESTO:(Program(Analyses(and(So5ware(Tools(Research(Group,(Ohio(State(University(
Background(
•  Android(devices(

•  Currently(lead(the(smartphone(market(
•  Direct(impact(on(millions(of(users(
•  Require(novel(techniques(for(improved(so5ware(quality(

•  Resource(leaks(

•  Examples(of(resources:(memory((managed(or(naIve),(
database(cursors,(binders,(bitmaps,(etc.(
•  Slowdowns(and(crashes(
•  Limited(resources(on(handheld(devices(

**
An(Example:(APV(

Open PDF

Close PDF

**
NaIve(Memory(ConsumpIon(Comparison(

**
Our(Proposal(
•  Challenges:(developing(leakQtriggering(test(cases(
and(test(inputs(
•  Insight(
•  Leaks(triggered(by(repeated(operaIons(
•  Focus(on(neutral(cycles,(repeated(operaIons(that(

should(not(increase(resource(usage(

•  ModelQbased(test(generaIon(

•  Input:(a(model(for(applicaIon(GUI,(called(GUI(model(
•  Generate(test(cases(to(cover(neutral(cycles(in(the(GUI(

model(for(leak(discovery(

**
GUI(Model(
•  DefiniIon(

•  A(directed(graph(G=(N,(E)(
•  N:(GUI(states,(i.e.(GUI(enIIes(and(their(relaIonships(
•  E:(transiIons(between(states(triggered(by(events(

**
GUI(Model(for(APV(
GUI(Model(for(APV(
GUI(Model(for(APV(
GUI(Model(
•  DefiniIon(

•  A(directed(graph(G=(N,(E)(
•  N:(GUI(states,(i.e.(GUI(enIIes(and(their(relaIonships(
•  E:(transiIons(between(states(triggered(by(events(

•  Two(categories(of(transiIons(
•  ApplicaIonQindependent(
•  ApplicaIonQdependent(

**
GUI(Model(for(APV(

Applica5on(Independent(Transi5ons(
GUI(Model(for(APV(

Applica5on(Dependent(Transi5ons(
Coverage(Criteria(
• ApplicaIonQindependent(cycles(
• Events(defined(by(the(plaVorm,(and(not(specific(to(
individual(applicaIons(
• Example:(ROTATE,(HOME,(POWER(

• Cycles(with(BACK(transiIons(
• BACK(transiIon:(going(back(to(a(previous(acIvity(
• Opportunity(for(forming(a(cycle(

• ApplicaIonQspecific(neutral(operaIons(
• Pairs(of(operaIons(that(“neutralize”(each(other(
• Example:(zoomQin(followed(by(zoomQout(
Example(of(a(Generated(Test(Case(
Example(of(a(Generated(Test(Case(

n1

n3)k

(n2
BACK
GUI(Model(for(APV(
GUI(Model(for(APV(
Example(of(a(Generated(Test(Case(
Example(of(a(Generated(Test(Case(
Example(of(a(Generated(Test(Case(
Example(of(a(Generated(Test(Case(
Example(of(a(Generated(Test(Case(
Approach(
● 

Generate(automaIcally(test(cases(based(on(the(
GUI(model,(and(the(targeted(coverage(criteria(
● 

● 

Collect(resource(usage(measurements(as(the(tests(
are(being(executed(
● 

● 

● 
**

Followed(by(manual(steps,(e.g.,(to(provide(a(PDF(file(to(
be(opened,(and(to(place(it(at(posiIon(3(of(the(file(list(

Examples:(managed(heap(size,(naIve(heap(size,(
binders,(threads(
Drop(“nonQpromising”(cases(for(shorter(execuIon(Ime(

Report(crashing(execuIons(for(possible(resource(
leaks(
Experimental(Studies(
● 
● 

8(openQsource(Android(applicaIons(
The(generated(test(cases(exposed(18(resource(leak(
defects((12(newlyQdiscovered)(
● 

● 

Detailed(case(studies(to(understand(diversified(
causes(of(resource(leaks(
● 
● 

● 
**

InvesIgated(manually(the(crashing(test(cases(to(
determine(their(root(causes(

TradiIonal(leaks((e.g.,(container(leak)(
Leaking(AndroidQspecific(objects((e.g.,(database(cursors,(
binders,(bitmaps)(
Leaks(caused(by(naIve(code((e.g.,(improper(
management(of(naIve(memory,(hang(in(naIve(code)(
Conclusions(

● 

● 

● 

Resource(leaks(are(an(important(problem(for(
Android(
ModelQbased(test(generaIon(focusing(on(neutral(
cycles(is(effecIve(in(detecIng(resource(leaks(
Future(work(
● 

● 

● 

**

● 

Automated(debugging(of(uncovered(leaks,(using(heap(
analysis(
Automated(GUI(model(construcIon((iniIal(work(to(
appear(at(CGO(2014)(
Program(analysis(to(detect(and(diagnose(leaks(staIcally(

So5ware(release(
● 

hfp://www.cse.ohioQstate.edu/presto/so5ware/(
(

(

Thank((you(

(((((((((((((((((

**

More Related Content

Similar to Systematic Testing for Resource Leaks in Android Applications

[153] apache reef
[153] apache reef[153] apache reef
[153] apache reefNAVER D2
 
Sattose keynote 2015: Managing Socio-Technical Dependencies in Dsitributed So...
Sattose keynote 2015: Managing Socio-Technical Dependencies in Dsitributed So...Sattose keynote 2015: Managing Socio-Technical Dependencies in Dsitributed So...
Sattose keynote 2015: Managing Socio-Technical Dependencies in Dsitributed So...anita_sarma
 
MOD2014-Mens-Lecture1
MOD2014-Mens-Lecture1MOD2014-Mens-Lecture1
MOD2014-Mens-Lecture1Tom Mens
 
Joshua information systems
Joshua information systemsJoshua information systems
Joshua information systemscecfoundation
 
Hadoop con 2016_9_10_王經篤(Jing-Doo Wang)
Hadoop con 2016_9_10_王經篤(Jing-Doo Wang)Hadoop con 2016_9_10_王經篤(Jing-Doo Wang)
Hadoop con 2016_9_10_王經篤(Jing-Doo Wang)Jing-Doo Wang
 
MOD2014-Mens-Lecture4
MOD2014-Mens-Lecture4MOD2014-Mens-Lecture4
MOD2014-Mens-Lecture4Tom Mens
 
Getting to Know Your Data with R
Getting to Know Your Data with RGetting to Know Your Data with R
Getting to Know Your Data with RStephen Withington
 
SETTA'18 Keynote: Intelligent Software Engineering: Synergy between AI and So...
SETTA'18 Keynote: Intelligent Software Engineering: Synergy between AI and So...SETTA'18 Keynote: Intelligent Software Engineering: Synergy between AI and So...
SETTA'18 Keynote: Intelligent Software Engineering: Synergy between AI and So...Tao Xie
 
Software Architecture and Predictive Models in R
Software Architecture and Predictive Models in RSoftware Architecture and Predictive Models in R
Software Architecture and Predictive Models in RHarlan Harris
 
GNU R in Clinical Research and Evidence-Based Medicine
GNU R in Clinical Research and Evidence-Based MedicineGNU R in Clinical Research and Evidence-Based Medicine
GNU R in Clinical Research and Evidence-Based MedicineAdrian Olszewski
 
Open Analytics Environment
Open Analytics EnvironmentOpen Analytics Environment
Open Analytics EnvironmentIan Foster
 
Principles of Scientific Writing for an International Audience
Principles of Scientific Writing for an International AudiencePrinciples of Scientific Writing for an International Audience
Principles of Scientific Writing for an International Audiencemanderschulte
 
Mining Software Repositories
Mining Software RepositoriesMining Software Repositories
Mining Software RepositoriesIsrael Herraiz
 
FIWARE Wednesday Webinars - Performing Big Data Analysis Using Cosmos With Sp...
FIWARE Wednesday Webinars - Performing Big Data Analysis Using Cosmos With Sp...FIWARE Wednesday Webinars - Performing Big Data Analysis Using Cosmos With Sp...
FIWARE Wednesday Webinars - Performing Big Data Analysis Using Cosmos With Sp...FIWARE
 
X-­PERT: Accurate Identification of Cross-Browser Issues in Web Applications
X-­PERT: Accurate Identification of Cross-Browser Issues in Web ApplicationsX-­PERT: Accurate Identification of Cross-Browser Issues in Web Applications
X-­PERT: Accurate Identification of Cross-Browser Issues in Web ApplicationsAlex Orso
 
Training in Analytics, R and Social Media Analytics
Training in Analytics, R and Social Media AnalyticsTraining in Analytics, R and Social Media Analytics
Training in Analytics, R and Social Media AnalyticsAjay Ohri
 
From Data to Visualization, what happens in between?
From Data to Visualization, what happens in between?From Data to Visualization, what happens in between?
From Data to Visualization, what happens in between?Krist Wongsuphasawat
 
2015 09 rda-pre-meeting_jk
2015 09 rda-pre-meeting_jk2015 09 rda-pre-meeting_jk
2015 09 rda-pre-meeting_jkJohannes Keizer
 
Data Science Provenance: From Drug Discovery to Fake Fans
Data Science Provenance: From Drug Discovery to Fake FansData Science Provenance: From Drug Discovery to Fake Fans
Data Science Provenance: From Drug Discovery to Fake FansJameel Syed
 

Similar to Systematic Testing for Resource Leaks in Android Applications (20)

[153] apache reef
[153] apache reef[153] apache reef
[153] apache reef
 
Sattose keynote 2015: Managing Socio-Technical Dependencies in Dsitributed So...
Sattose keynote 2015: Managing Socio-Technical Dependencies in Dsitributed So...Sattose keynote 2015: Managing Socio-Technical Dependencies in Dsitributed So...
Sattose keynote 2015: Managing Socio-Technical Dependencies in Dsitributed So...
 
MOD2014-Mens-Lecture1
MOD2014-Mens-Lecture1MOD2014-Mens-Lecture1
MOD2014-Mens-Lecture1
 
Joshua information systems
Joshua information systemsJoshua information systems
Joshua information systems
 
Hadoop con 2016_9_10_王經篤(Jing-Doo Wang)
Hadoop con 2016_9_10_王經篤(Jing-Doo Wang)Hadoop con 2016_9_10_王經篤(Jing-Doo Wang)
Hadoop con 2016_9_10_王經篤(Jing-Doo Wang)
 
MOD2014-Mens-Lecture4
MOD2014-Mens-Lecture4MOD2014-Mens-Lecture4
MOD2014-Mens-Lecture4
 
Getting to Know Your Data with R
Getting to Know Your Data with RGetting to Know Your Data with R
Getting to Know Your Data with R
 
SETTA'18 Keynote: Intelligent Software Engineering: Synergy between AI and So...
SETTA'18 Keynote: Intelligent Software Engineering: Synergy between AI and So...SETTA'18 Keynote: Intelligent Software Engineering: Synergy between AI and So...
SETTA'18 Keynote: Intelligent Software Engineering: Synergy between AI and So...
 
Software Architecture and Predictive Models in R
Software Architecture and Predictive Models in RSoftware Architecture and Predictive Models in R
Software Architecture and Predictive Models in R
 
Keller geo edu
Keller geo eduKeller geo edu
Keller geo edu
 
GNU R in Clinical Research and Evidence-Based Medicine
GNU R in Clinical Research and Evidence-Based MedicineGNU R in Clinical Research and Evidence-Based Medicine
GNU R in Clinical Research and Evidence-Based Medicine
 
Open Analytics Environment
Open Analytics EnvironmentOpen Analytics Environment
Open Analytics Environment
 
Principles of Scientific Writing for an International Audience
Principles of Scientific Writing for an International AudiencePrinciples of Scientific Writing for an International Audience
Principles of Scientific Writing for an International Audience
 
Mining Software Repositories
Mining Software RepositoriesMining Software Repositories
Mining Software Repositories
 
FIWARE Wednesday Webinars - Performing Big Data Analysis Using Cosmos With Sp...
FIWARE Wednesday Webinars - Performing Big Data Analysis Using Cosmos With Sp...FIWARE Wednesday Webinars - Performing Big Data Analysis Using Cosmos With Sp...
FIWARE Wednesday Webinars - Performing Big Data Analysis Using Cosmos With Sp...
 
X-­PERT: Accurate Identification of Cross-Browser Issues in Web Applications
X-­PERT: Accurate Identification of Cross-Browser Issues in Web ApplicationsX-­PERT: Accurate Identification of Cross-Browser Issues in Web Applications
X-­PERT: Accurate Identification of Cross-Browser Issues in Web Applications
 
Training in Analytics, R and Social Media Analytics
Training in Analytics, R and Social Media AnalyticsTraining in Analytics, R and Social Media Analytics
Training in Analytics, R and Social Media Analytics
 
From Data to Visualization, what happens in between?
From Data to Visualization, what happens in between?From Data to Visualization, what happens in between?
From Data to Visualization, what happens in between?
 
2015 09 rda-pre-meeting_jk
2015 09 rda-pre-meeting_jk2015 09 rda-pre-meeting_jk
2015 09 rda-pre-meeting_jk
 
Data Science Provenance: From Drug Discovery to Fake Fans
Data Science Provenance: From Drug Discovery to Fake FansData Science Provenance: From Drug Discovery to Fake Fans
Data Science Provenance: From Drug Discovery to Fake Fans
 

Recently uploaded

MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 

Recently uploaded (20)

MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

Systematic Testing for Resource Leaks in Android Applications