IDEAS home Printed from https://ideas.repec.org/a/spr/jcomop/vyid10.1007_s10878-019-00398-x.html
   My bibliography  Save this article

A dynamic approach to detecting, eliminating and fixing memory leaks

Author

Listed:
  • Bin Yu

    (Xidian University)

  • Cong Tian

    (Xidian University)

  • Nan Zhang

    (Xidian University)

  • Zhenhua Duan

    (Xidian University)

  • Hongwei Du

    (Harbin Institute of Technology Shenzhen Graduate School)

Abstract

This paper presents a dynamic approach to detecting, eliminating and fixing memory leaks. With our approach, a program to be analyzed is instrumented before its execution. Dynamic symbolic execution is employed so as to expose memory leaks occurring in all execution paths. During the program execution, information about each allocated memory area is updated when corresponding statements are executed. Based on this information, a back-end leak checker records the changes of variables pointing to each memory area, detects memory leaks and deallocates leaked memory areas. After the program execution, a fixed program containing deallocation statements is generated. We have implemented our approach in a tool called DEF_LEAK based on Low Level Virtual Machine compiler infrastructure. Experiments show that DEF_LEAK can detect more leaks than the existing dynamic detection tools for programs with user inputs. Moreover, DEF_LEAK is more effective for helping programmers understand and fix memory leaks than other detection tools.

Suggested Citation

  • Bin Yu & Cong Tian & Nan Zhang & Zhenhua Duan & Hongwei Du, 0. "A dynamic approach to detecting, eliminating and fixing memory leaks," Journal of Combinatorial Optimization, Springer, vol. 0, pages 1-18.
  • Handle: RePEc:spr:jcomop:v::y::i::d:10.1007_s10878-019-00398-x
    DOI: 10.1007/s10878-019-00398-x
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10878-019-00398-x
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10878-019-00398-x?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Donghyun Kim & Wei Wang & Deying Li & Joong-Lyul Lee & Weili Wu & Alade O. Tokuta, 2016. "A joint optimization of data ferry trajectories and communication powers of ground sensors for long-term environmental monitoring," Journal of Combinatorial Optimization, Springer, vol. 31(4), pages 1550-1568, May.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Bin Yu & Cong Tian & Nan Zhang & Zhenhua Duan & Hongwei Du, 2021. "A dynamic approach to detecting, eliminating and fixing memory leaks," Journal of Combinatorial Optimization, Springer, vol. 42(3), pages 409-426, October.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:spr:jcomop:v::y::i::d:10.1007_s10878-019-00398-x. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.